lamch#

Functions

f32 slamch(
    const char* cmach
);
f32 slamch(const char *cmach)#

SLAMCH determines single precision machine parameters.

Parameters

in
cmach

Specifies the value to be returned by slamch: cmach='E': eps (relative machine precision). cmach='S': sfmin (safe minimum, such that 1/sfmin does not overflow). cmach='B': base (base of the machine). cmach='P': eps*base. cmach='N': t (number of digits in the mantissa). cmach='R': rnd (1.0 when rounding occurs in addition, 0.0 otherwise). cmach='M': emin (minimum exponent before underflow). cmach='U': rmin (underflow threshold). cmach='L': emax (largest exponent before overflow). cmach='O': rmax (overflow threshold).

Returns:

The requested machine parameter.

Functions

f64 dlamch(
    const char* cmach
);
f64 dlamch(const char *cmach)#

DLAMCH determines double precision machine parameters.

Parameters

in
cmach

Specifies the value to be returned by dlamch: cmach='E': eps (relative machine precision). cmach='S': sfmin (safe minimum, such that 1/sfmin does not overflow). cmach='B': base (base of the machine). cmach='P': eps*base. cmach='N': t (number of digits in the mantissa). cmach='R': rnd (1.0 when rounding occurs in addition, 0.0 otherwise). cmach='M': emin (minimum exponent before underflow). cmach='U': rmin (underflow threshold). cmach='L': emax (largest exponent before overflow). cmach='O': rmax (overflow threshold).

Returns:

The requested machine parameter.