casacore
|
Variables | |
constexpr double | sqrt2 |
Mathematical constants. | |
constexpr double | sqrt3 |
sqrt(3) | |
constexpr double | _1_sqrt2 |
1/sqrt(2) | |
constexpr double | _1_sqrt3 |
1/sqrt(3) | |
constexpr double | pi |
Pi and functions thereof: | |
constexpr double | _2pi |
2*pi | |
constexpr double | pi_2 |
pi/2 | |
constexpr double | pi_4 |
pi/4 | |
constexpr double | _1_pi |
1/pi | |
constexpr double | _2_pi |
2/pi | |
constexpr double | _1_sqrtpi |
1/sqrt(pi) | |
constexpr double | _2_sqrtpi |
2/sqrt(pi) | |
constexpr double | e |
e and functions thereof: | |
constexpr double | ln2 |
ln(2) | |
constexpr double | ln10 |
ln(10) | |
constexpr double | log2e |
log2(e) | |
constexpr double | log10e |
log10(e) | |
constexpr double | gamma |
gamma and functions thereof: | |
constexpr double | lngamma |
ln(gamma) With C++20, could be deprecated and use std::log(std::numbers::gamma) instead | |
constexpr double | etogamma |
e**gamma With C++20, could be deprecated and use std::exp(std::numbers::gamma) instead | |
constexpr double | probit_3_4 |
statistics related 1/(Phi^(-1)(3/4), see https://en.wikipedia.org/wiki/Median_absolute_deviation#Relation_to_standard_deviation | |
constexpr double | flt_min |
Machine constants. | |
constexpr double | minfloat |
the minimum single precision floating point number, including denormalised numbers | |
constexpr double | dbl_min |
the minimum double precision floating point number, excluding denormalised numbers | |
constexpr double | mindouble |
the minimum double precision floating point number, including denormalised numbers | |
constexpr double | flt_max |
the maximum single precision floating point number | |
constexpr double | dbl_max |
the maximum double precision floating point number | |
constexpr double | flt_epsilon |
Minimum single precision floating point number X such that 1+X does not equal X. | |
constexpr double | dbl_epsilon |
Minimum double precision floating point number X such that 1+X does not equal X. | |
constexpr double | c |
Fundamental physical constants (SI units): | |
constexpr double | quetta |
Numerical conversion factors. | |
constexpr double | ronna |
e+27 (R) | |
constexpr double | yotta |
e+24 (Y) | |
constexpr double | zetta |
e+21 (Z) | |
constexpr double | exa |
e+18 (E) | |
constexpr double | peta |
e+15 (P) | |
constexpr double | tera |
e+12 (T) | |
constexpr double | giga |
e+09 (G) | |
constexpr double | mega |
e+06 (M) | |
constexpr double | kilo |
e+03 (k) | |
constexpr double | hecto |
e+02 (h) | |
constexpr double | deka |
e+01 (da) | |
constexpr double | deci |
e-01 (d) | |
constexpr double | centi |
e-02 (c) | |
constexpr double | milli |
e-03 (m) | |
constexpr double | micro |
e-06 (u) | |
constexpr double | nano |
e-09 (n) | |
constexpr double | pico |
e-12 (p) | |
constexpr double | femto |
e-15 (f) | |
constexpr double | atto |
e-18 (a) | |
constexpr double | zepto |
e-21 (z) | |
constexpr double | yocto |
e-24 (y) | |
constexpr double | ronto |
e-27 (r) | |
constexpr double | quecto |
e-30 (q) | |
constexpr double | radian |
Angular measure: | |
constexpr double | circle |
circle | |
constexpr double | degree |
degree | |
constexpr double | arcmin |
arcminute | |
constexpr double | arcsec |
arcsecond | |
constexpr double | steradian |
Solid angular measure: | |
constexpr double | sphere |
sphere | |
constexpr double | square_degree |
square degree | |
constexpr double | square_arcmin |
square arcminute | |
constexpr double | square_arcsec |
square arcsecond | |
constexpr double | second |
Time interval [T]: | |
constexpr double | minute |
minute | |
constexpr double | hour |
hour | |
constexpr double | day |
day | |
constexpr double | MJD0 |
Difference between Julian Day and Modified Julian Day. | |
Mathematical and numerical constants.
Public interface
The constants and conversion factors are defined here as double precision values. Where single precision calculations are done in a situation where processing speed is of concern, for example within the inner loop of an expensive algorithm, a separate single precision variable should be defined for use within the loop.
Warning: The following list is generated by hand, and may be incomplete; After future revision of ccx2html the real data will be displayed
Warning: Preserved for legacy reasons only; See QC class for other physical constants;
Implementation-defined limits usually defined in <limits.h>
, <float.h>
, and <values.h>
as preprocessor defines. They are Inclusion of <casa/BasicSL/Constants.h
is sufficient to ensure that they are defined for any particular implementation, and the correct functioning of the tConstants
test program guarantees this.
In future use will be made of the (standard) numeric_limits template from the <limits>
include file.
(these are part of the ANSI C and hence POSIX standards). Acceptable limits defined by the standard are quoted.
(these are part of the ANSI C and hence POSIX standards). Acceptable limits defined by the standard are quoted.
(not part of the POSIX standard).
Warning: These constants will disappear in the near future; Do not use them in new code;
|
inlineconstexpr |
1/pi
Definition at line 375 of file Constants.h.
|
inlineconstexpr |
1/sqrt(2)
Definition at line 354 of file Constants.h.
|
inlineconstexpr |
1/sqrt(3)
Definition at line 356 of file Constants.h.
|
inlineconstexpr |
1/sqrt(pi)
Definition at line 381 of file Constants.h.
|
inlineconstexpr |
2/pi
Definition at line 378 of file Constants.h.
|
inlineconstexpr |
2/sqrt(pi)
Definition at line 384 of file Constants.h.
|
inlineconstexpr |
2*pi
Definition at line 366 of file Constants.h.
|
inlineconstexpr |
arcminute
Definition at line 561 of file Constants.h.
|
inlineconstexpr |
arcsecond
Definition at line 563 of file Constants.h.
|
inlineconstexpr |
e-18 (a)
Definition at line 541 of file Constants.h.
|
inlineconstexpr |
Fundamental physical constants (SI units):
velocity of light – for legacy reasons only – refer to PC
Definition at line 480 of file Constants.h.
Referenced by casacore::QC::c(), and casacore::QC::epsilon0().
|
inlineconstexpr |
e-02 (c)
Definition at line 529 of file Constants.h.
|
inlineconstexpr |
circle
Definition at line 557 of file Constants.h.
|
inlineconstexpr |
day
Definition at line 600 of file Constants.h.
|
inlineconstexpr |
Minimum double precision floating point number X such that 1+X does not equal X.
Definition at line 464 of file Constants.h.
|
inlineconstexpr |
the maximum double precision floating point number
Definition at line 456 of file Constants.h.
|
inlineconstexpr |
the minimum double precision floating point number, excluding denormalised numbers
Definition at line 446 of file Constants.h.
|
inlineconstexpr |
e-01 (d)
Definition at line 527 of file Constants.h.
|
inlineconstexpr |
degree
Definition at line 559 of file Constants.h.
|
inlineconstexpr |
e+01 (da)
Definition at line 525 of file Constants.h.
|
inlineconstexpr |
|
inlineconstexpr |
e**gamma With C++20, could be deprecated and use std::exp(std::numbers::gamma) instead
Definition at line 416 of file Constants.h.
|
inlineconstexpr |
e+18 (E)
Definition at line 511 of file Constants.h.
|
inlineconstexpr |
e-15 (f)
Definition at line 539 of file Constants.h.
|
inlineconstexpr |
Minimum single precision floating point number X such that 1+X does not equal X.
Definition at line 460 of file Constants.h.
|
inlineconstexpr |
the maximum single precision floating point number
Definition at line 453 of file Constants.h.
|
inlineconstexpr |
Machine constants.
floating point limits
the minimum single precision floating point number, excluding denormalised numbers
Definition at line 438 of file Constants.h.
|
inlineconstexpr |
gamma and functions thereof:
gamma With C++20, could be deprecated and use std::numbers::gamma instead
Definition at line 410 of file Constants.h.
|
inlineconstexpr |
e+09 (G)
Definition at line 517 of file Constants.h.
|
inlineconstexpr |
e+02 (h)
Definition at line 523 of file Constants.h.
|
inlineconstexpr |
hour
Definition at line 598 of file Constants.h.
|
inlineconstexpr |
e+03 (k)
Definition at line 521 of file Constants.h.
|
inlineconstexpr |
ln(10)
Definition at line 397 of file Constants.h.
|
inlineconstexpr |
ln(2)
Definition at line 394 of file Constants.h.
|
inlineconstexpr |
ln(gamma) With C++20, could be deprecated and use std::log(std::numbers::gamma) instead
Definition at line 413 of file Constants.h.
|
inlineconstexpr |
log10(e)
Definition at line 403 of file Constants.h.
|
inlineconstexpr |
log2(e)
Definition at line 400 of file Constants.h.
|
inlineconstexpr |
e+06 (M)
Definition at line 519 of file Constants.h.
|
inlineconstexpr |
e-06 (u)
Definition at line 533 of file Constants.h.
|
inlineconstexpr |
e-03 (m)
Definition at line 531 of file Constants.h.
|
inlineconstexpr |
the minimum double precision floating point number, including denormalised numbers
Definition at line 450 of file Constants.h.
|
inlineconstexpr |
the minimum single precision floating point number, including denormalised numbers
Definition at line 442 of file Constants.h.
|
inlineconstexpr |
minute
Definition at line 596 of file Constants.h.
|
inlineconstexpr |
Difference between Julian Day and Modified Julian Day.
Definition at line 602 of file Constants.h.
|
inlineconstexpr |
e-09 (n)
Definition at line 535 of file Constants.h.
|
inlineconstexpr |
e+15 (P)
Definition at line 513 of file Constants.h.
|
inlineconstexpr |
|
inlineconstexpr |
pi/2
Definition at line 369 of file Constants.h.
Referenced by casacore::Fit2D::paFromGauss2D(), and casacore::Fit2D::paToGauss2D().
|
inlineconstexpr |
pi/4
Definition at line 372 of file Constants.h.
|
inlineconstexpr |
e-12 (p)
Definition at line 537 of file Constants.h.
|
inlineconstexpr |
statistics related 1/(Phi^(-1)(3/4), see https://en.wikipedia.org/wiki/Median_absolute_deviation#Relation_to_standard_deviation
Definition at line 421 of file Constants.h.
|
inlineconstexpr |
e-30 (q)
Definition at line 549 of file Constants.h.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
e+27 (R)
Definition at line 505 of file Constants.h.
|
inlineconstexpr |
e-27 (r)
Definition at line 547 of file Constants.h.
|
inlineconstexpr |
|
inlineconstexpr |
sphere
Definition at line 571 of file Constants.h.
|
inlineconstexpr |
|
inlineconstexpr |
sqrt(3)
Definition at line 351 of file Constants.h.
|
inlineconstexpr |
square arcminute
Definition at line 575 of file Constants.h.
|
inlineconstexpr |
square arcsecond
Definition at line 577 of file Constants.h.
|
inlineconstexpr |
square degree
Definition at line 573 of file Constants.h.
|
inlineconstexpr |
|
inlineconstexpr |
e+12 (T)
Definition at line 515 of file Constants.h.
|
inlineconstexpr |
e-24 (y)
Definition at line 545 of file Constants.h.
|
inlineconstexpr |
e+24 (Y)
Definition at line 507 of file Constants.h.
|
inlineconstexpr |
e-21 (z)
Definition at line 543 of file Constants.h.
|
inlineconstexpr |
e+21 (Z)
Definition at line 509 of file Constants.h.