Rev | Line | |
---|
[2218] | 1 | MODULE nrtype |
---|
| 2 | |
---|
| 3 | implicit none |
---|
| 4 | |
---|
[2228] | 5 | integer, parameter:: k8 = selected_real_kind(13) |
---|
[2218] | 6 | |
---|
| 7 | ! Frequently used mathematical constants (with precision to spare): |
---|
| 8 | |
---|
| 9 | REAL, PARAMETER :: PI=3.141592653589793238462643383279502884197 |
---|
| 10 | REAL, PARAMETER :: PIO2=1.57079632679489661923132169163975144209858 |
---|
| 11 | REAL, PARAMETER :: TWOPI=6.283185307179586476925286766559005768394 |
---|
| 12 | REAL, PARAMETER :: SQRT2=1.41421356237309504880168872420969807856967 |
---|
| 13 | REAL, PARAMETER :: EULER=0.5772156649015328606065120900824024310422 |
---|
| 14 | |
---|
[2228] | 15 | REAL(K8), PARAMETER:: & |
---|
| 16 | PI_D = 3.141592653589793238462643383279502884197_k8 |
---|
| 17 | REAL(K8), PARAMETER:: & |
---|
| 18 | PIO2_D=1.57079632679489661923132169163975144209858_k8 |
---|
| 19 | REAL(K8), PARAMETER:: & |
---|
| 20 | TWOPI_D=6.283185307179586476925286766559005768394_k8 |
---|
[2218] | 21 | |
---|
| 22 | END MODULE nrtype |
---|
Note: See
TracBrowser
for help on using the repository browser.