legacy/internal API
The legacy/internal package holds the machine constants that the other packages use to choose step sizes and to bound roundoff error. It contains no functions. The constants are those of gsl_machine.h in the GNU Scientific Library.
Machine constants
Every constant is a Double named machine_<prefix><quantity>. The quantity names a limit of a floating-point format:
| Quantity | Meaning |
|---|---|
dbl_epsilon | The machine epsilon of double precision, . |
dbl_min | The smallest positive normal double, . |
dbl_max | The largest finite double, . |
flt_epsilon | The machine epsilon of single precision, . |
flt_min | The smallest positive normal single-precision value. |
flt_max | The largest finite single-precision value. |
sflt_epsilon | The machine epsilon of the short float format of GSL, . |
eps | The rounded machine tolerances of GSL_MACH_EPS, which exist only with a prefix. |
The prefix names a function of that quantity:
| Prefix | Value | Available for |
|---|---|---|
| none | the quantity itself | dbl_*, flt_*, sflt_epsilon |
sqrt_ | its square root | all quantities |
root_3_ to root_6_ | its third to sixth root | all quantities |
log_ | its natural logarithm | all quantities |
For example, machine_sqrt_dbl_epsilon is and machine_log_dbl_max is . The rounded eps values are machine_sqrt_eps (), machine_root_3_eps (), machine_root_4_eps (), machine_root_5_eps (), machine_root_6_eps () and machine_log_eps ().