Common Constants lists common constants used in computing the mathematical functions. Real and, where necessary, double-precision values are given for each of the constants. Because fewer double-precision functions than real functions exist, some of the constants are unnecessary in the double-precision cases.
Table 68. Common Constants
Constant |
Single-Precision Value |
Double-Precision Value |
---|---|---|
pi |
3.14159265359 |
3.1415926535897932384626 |
pi/2 |
1.57079632697 |
1.5707963267948966192313 |
pi/4 |
0.785298163397 |
|
pi/6 |
0.523598775598 |
0.52359877559829887307711 |
3(pi)/4 |
2.35619449019 |
|
SQRT(3) |
1.732050807570 |
1.7320508075688772935275 |
SQRT(2)/2 |
0.707106781187 |
|
LN(2) |
0.693147180560 |
0.69314718055994530941723 |
LN(SQRT(2pi)) |
0.91893853321 |
|
e |
2.71828182846 |
2.7182818284590452353603 |
LOG(e) |
0.434294481903 |
0.43429448190325182765113 |
LOG2(e) |
1.4426950409 |
|
TAN(pi/40) |
0.0787017068246 |
|
TAN(pi/20) |
0.158384440326 |
|
TAN(3pi/40) |
0.240078759080 |
|
TAN(pi/10) |
0.324919696234 |