1SLAMCH  ‐ single precision machine parameters REAL FUNCTION SLAM‐
2CH( CMACH )
3    CHARACTER CMACH SLAMCH determines  single  precision  machine
4parameters.
5
6CMACH   (input) CHARACTER*1 Specifies the value to be returned by
7SLAMCH:
8= 'E' or 'e',   SLAMCH := eps
9= 'S' or 's ,   SLAMCH := sfmin
10= 'B' or 'b',   SLAMCH := base
11= 'P' or 'p',   SLAMCH := eps*base
12= 'N' or 'n',   SLAMCH := t
13= 'R' or 'r',   SLAMCH := rnd
14= 'M' or 'm',   SLAMCH := emin
15= 'U' or 'u',   SLAMCH := rmin
16= 'L' or 'l',   SLAMCH := emax
17= 'O' or 'o',   SLAMCH := rmax
18
19where eps   = relative machine precision sfmin  =  safe  minimum,
20such  that  1/sfmin does not overflow base  = base of the machine
21prec  = eps*base t     = number of (base) digits in the  mantissa
22rnd    = 1.0 when rounding occurs in addition, 0.0 otherwise emin
23= minimum exponent before (gradual) underflow rmin   =  underflow
24threshold  ‐ base**(emin‐1) emax  = largest exponent before over‐
25flow rmax  = overflow threshold  ‐ (base**emax)*(1‐eps)
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Impressum