LALConstants.h File Reference

Author:
Creighton, T.Provides standard numerical constants for LAL.
More...

#include <lal/LALRCSID.h>

Include dependency graph for LALConstants.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Floating-point constants
The following constants define the precision and range of floating-point arithmetic in LAL.

They are taken from the IEEE standard 754 for binary arithmetic. All numbers are dimensionless.

#define LAL_REAL4_MANT   24
 Bits of precision in the mantissa of a REAL4.
#define LAL_REAL4_MAX   3.40282347e+38
 Largest REAL4.
#define LAL_REAL4_MIN   1.17549435e-38
 Smallest nonzero REAL4.
#define LAL_REAL4_EPS   1.19209290e-07
 0.5^(LAL_REAL4_MANT-1), i.e.
#define LAL_REAL8_MANT   53
 Bits of precision in the mantissa of a REAL8.
#define LAL_REAL8_MAX   1.7976931348623157e+308
 Largest REAL8.
#define LAL_REAL8_MIN   2.2250738585072014e-308
 Smallest nonzero REAL8.
#define LAL_REAL8_EPS   2.2204460492503131e-16
 0.5^(LAL_REAL8_MANT-1), i.e.
Mathematical constants
The following are fundamental mathematical constants.

They are mostly taken from the GNU C math.h header (with the exception of LAL_TWOPI, which was computed using Maple). All numbers are dimensionless.

#define LAL_E   2.7182818284590452353602874713526625
 e
#define LAL_LOG2E   1.4426950408889634073599246810018922
 log_2 e
#define LAL_LOG10E   0.4342944819032518276511289189166051
 log_10 e
#define LAL_LN2   0.6931471805599453094172321214581766
 log_e 2
#define LAL_LN10   2.3025850929940456840179914546843642
 log_e 10
#define LAL_SQRT2   1.4142135623730950488016887242096981
 sqrt(2)
#define LAL_SQRT1_2   0.7071067811865475244008443621048490
 1/sqrt(2)
#define LAL_GAMMA   0.5772156649015328606065120900824024
 gamma
#define LAL_PI   3.1415926535897932384626433832795029
 pi
#define LAL_TWOPI   6.2831853071795864769252867665590058
 2*pi
#define LAL_PI_2   1.5707963267948966192313216916397514
 pi/2
#define LAL_PI_4   0.7853981633974483096156608458198757
 pi/4
#define LAL_1_PI   0.3183098861837906715377675267450287
 1/pi
#define LAL_2_PI   0.6366197723675813430755350534900574
 2/pi
#define LAL_2_SQRTPI   1.1283791670955125738961589031215452
 2/sqrt(pi)
#define LAL_PI_180   1.7453292519943295769236907684886127e-2
 pi/180
#define LAL_180_PI   57.295779513082320876798154814105170
 180/pi
Exact physical constants
The following physical constants are defined to have exact values.

The values of $c$ and $g$ are taken from Barnet (1996), $p_\mathrm{atm}$ is from Lang (1992), while $\epsilon_0$ and $\mu_0$ are computed from $c$ using exact formulae. They are given in the SI units shown.

#define LAL_C_SI   299792458
 Speed of light in vacuo, m s^-1.
#define LAL_EPSILON0_SI   8.8541878176203898505365630317107503e-12
 Permittivity of free space, C^2 N^-1 m^-2.
#define LAL_MU0_SI   1.2566370614359172953850573533118012e-6
 Permeability of free space, N A^-2.
#define LAL_GEARTH_SI   9.80665
 Standard gravity, m s^-2.
#define LAL_PATM_SI   101325
 Standard atmosphere, Pa.
Physical constants
The following are measured fundamental physical constants, with values given in Barnet (1996).

When not dimensionless, they are given in the SI units shown.

#define LAL_G_SI   6.67259e-11
 Gravitational constant, N m^2 kg^-2.
#define LAL_H_SI   6.6260755e-34
 Planck constant, J s.
#define LAL_HBAR_SI   1.05457266e-34
 Reduced Planck constant, J s.
#define LAL_MPL_SI   2.17671e-8
 Planck mass, kg.
#define LAL_LPL_SI   1.61605e-35
 Planck length, m.
#define LAL_TPL_SI   5.39056e-44
 Planck time, s.
#define LAL_K_SI   1.380658e-23
 Boltzmann constant, J K^-1.
#define LAL_R_SI   8.314511
 Ideal gas constant, J K^-1.
#define LAL_MOL   6.0221367e23
 Avogadro constant, dimensionless.
#define LAL_BWIEN_SI   2.897756e-3
 Wien displacement law constant, m K.
#define LAL_SIGMA_SI   5.67051e-8
 Stefan-Boltzmann constant, W m^-2 K^-4.
#define LAL_AMU_SI   1.6605402e-27
 Atomic mass unit, kg.
#define LAL_MP_SI   1.6726231e-27
 Proton mass, kg.
#define LAL_ME_SI   9.1093897e-31
 Electron mass, kg.
#define LAL_QE_SI   1.60217733e-19
 Electron charge, C.
#define LAL_ALPHA   7.297354677e-3
 Fine structure constant, dimensionless.
#define LAL_RE_SI   2.81794092e-15
 Classical electron radius, m.
#define LAL_LAMBDAE_SI   3.86159323e-13
 Electron Compton wavelength, m.
#define LAL_AB_SI   5.29177249e-11
 Bohr radius, m.
#define LAL_MUB_SI   9.27401543e-24
 Bohr magneton, J T^-1.
#define LAL_MUN_SI   5.05078658e-27
 Nuclear magneton, J T^-1.
Astrophysical parameters
The following parameters are derived from measured properties of the Earth and Sun.

The values are taken from Barnet (1996), except for the obliquity of the ecliptic plane and the eccentricity of Earth's orbit, which are taken from Lang (1992). All values are given in the SI units shown.

#define LAL_REARTH_SI   6.378140e6
 Earth equatorial radius, m.
#define LAL_AWGS84_SI   6.378137e6
 Semimajor axis of WGS-84 Reference Ellipsoid, m.
#define LAL_BWGS84_SI   6.356752314e6
 Semiminor axis of WGS-84 Reference Ellipsoid, m.
#define LAL_MEARTH_SI   5.97370e24
 Earth mass, kg.
#define LAL_IEARTH   0.409092804
 Earth inclination (2000), radians.
#define LAL_EEARTH   0.0167
 Earth orbital eccentricity.
#define LAL_RSUN_SI   6.960e8
 Solar equatorial radius, m.
#define LAL_MSUN_SI   1.98892e30
 Solar mass, kg.
#define LAL_MRSUN_SI   1.47662504e3
 Geometrized solar mass, m.
#define LAL_MTSUN_SI   4.92549095e-6
 Geometrized solar mass, s.
#define LAL_LSUN_SI   3.846e26
 Solar luminosity, W.
#define LAL_AU_SI   1.4959787066e11
 Astronomical unit, m.
#define LAL_PC_SI   3.0856775807e16
 Parsec, m.
#define LAL_YRTROP_SI   31556925.2
 Tropical year (1994), s.
#define LAL_YRSID_SI   31558149.8
 Sidereal year (1994), s.
#define LAL_DAYSID_SI   86164.09053
 Mean sidereal day, s.
#define LAL_LYR_SI   9.46052817e15
 ``Tropical'' lightyear (1994), m
Cosmological parameters
The following cosmological parameters are derived from measurements of the Hubble expansion rate and of the cosmic background radiation (CBR).

Data are taken from Barnet (1996). In what follows, the normalized Hubble constant $h_0$ is equal to the actual Hubble constant $H_0$ divided by $\langle H \rangle=100\,\mathrm{km}\,\mathrm{s}^{-1}\mathrm{Mpc}^{-1}$. Thus the Hubble constant can be written as: $H_0 = \langle H \rangle h_0$. Similarly, the critical energy density $\rho_c$ required for spatial flatness is given by: $\rho_c = \langle\rho\rangle h_0^2$. Current estimates give $h_0$ a value of around 0.65, which is what is assumed below. All values are in the SI units shown.

#define LAL_H0FAC_SI   3.2407792903e-18
 Hubble constant prefactor, s^-1.
#define LAL_H0_SI   2e-18
 Approximate Hubble constant, s^-1.
#define LAL_RHOCFAC_SI   1.68860e-9
 Critical density prefactor, J m^-3.
#define LAL_RHOC_SI   7e-10
 Approximate critical density, J m^-3.
#define LAL_TCBR_SI   2.726
 Cosmic background radiation temperature, K.
#define LAL_VCBR_SI   3.695e5
 Solar velocity with respect to CBR, m s^-1.
#define LAL_RHOCBR_SI   4.177e-14
 Energy density of CBR, J m^-3.
#define LAL_NCBR_SI   4.109e8
 Number density of CBR photons, m^-3.
#define LAL_SCBR_SI   3.993e-14
 Entropy density of CBR, J K^-1 m^-3.

Functions

 NRCSID (LALCONSTANTSH,"$Id: LALConstants.h,v 1.12 2007/06/08 14:41:52 bema Exp $")


Detailed Description

Author:
Creighton, T.Provides standard numerical constants for LAL.

D.

Date:
Id
LALConstants.h,v 1.12 2007/06/08 14:41:52 bema Exp
This header defines a number of useful numerical constants for use in LAL routines. These constants come in three basic flavours: arithmetic and mathematical constants, fundamental (or defined) physical constants, and measured astrophysical and cosmological parameters.

Note that this header is not included automatically by the header LALStdlib.h. Include it explicitly if you need any of these constants.

Definition in file LALConstants.h.


Define Documentation

#define LAL_REAL4_MANT   24

Bits of precision in the mantissa of a REAL4.

Definition at line 150 of file LALConstants.h.

#define LAL_REAL4_MAX   3.40282347e+38

Largest REAL4.

Definition at line 151 of file LALConstants.h.

#define LAL_REAL4_MIN   1.17549435e-38

Smallest nonzero REAL4.

Definition at line 152 of file LALConstants.h.

#define LAL_REAL4_EPS   1.19209290e-07

0.5^(LAL_REAL4_MANT-1), i.e.

the difference between 1 and the next resolveable REAL4

Definition at line 153 of file LALConstants.h.

#define LAL_REAL8_MANT   53

Bits of precision in the mantissa of a REAL8.

Definition at line 154 of file LALConstants.h.

#define LAL_REAL8_MAX   1.7976931348623157e+308

Largest REAL8.

Definition at line 155 of file LALConstants.h.

#define LAL_REAL8_MIN   2.2250738585072014e-308

Smallest nonzero REAL8.

Definition at line 156 of file LALConstants.h.

#define LAL_REAL8_EPS   2.2204460492503131e-16

0.5^(LAL_REAL8_MANT-1), i.e.

the difference between 1 and the next resolveable REAL8

Definition at line 157 of file LALConstants.h.

#define LAL_E   2.7182818284590452353602874713526625

e

Definition at line 202 of file LALConstants.h.

#define LAL_LOG2E   1.4426950408889634073599246810018922

log_2 e

Definition at line 203 of file LALConstants.h.

#define LAL_LOG10E   0.4342944819032518276511289189166051

log_10 e

Definition at line 204 of file LALConstants.h.

#define LAL_LN2   0.6931471805599453094172321214581766

log_e 2

Definition at line 205 of file LALConstants.h.

#define LAL_LN10   2.3025850929940456840179914546843642

log_e 10

Definition at line 206 of file LALConstants.h.

#define LAL_SQRT2   1.4142135623730950488016887242096981

sqrt(2)

Definition at line 207 of file LALConstants.h.

#define LAL_SQRT1_2   0.7071067811865475244008443621048490

1/sqrt(2)

Definition at line 208 of file LALConstants.h.

#define LAL_GAMMA   0.5772156649015328606065120900824024

gamma

Definition at line 209 of file LALConstants.h.

#define LAL_PI   3.1415926535897932384626433832795029

pi

Definition at line 211 of file LALConstants.h.

#define LAL_TWOPI   6.2831853071795864769252867665590058

2*pi

Definition at line 212 of file LALConstants.h.

#define LAL_PI_2   1.5707963267948966192313216916397514

pi/2

Definition at line 213 of file LALConstants.h.

#define LAL_PI_4   0.7853981633974483096156608458198757

pi/4

Definition at line 214 of file LALConstants.h.

#define LAL_1_PI   0.3183098861837906715377675267450287

1/pi

Definition at line 215 of file LALConstants.h.

#define LAL_2_PI   0.6366197723675813430755350534900574

2/pi

Definition at line 216 of file LALConstants.h.

#define LAL_2_SQRTPI   1.1283791670955125738961589031215452

2/sqrt(pi)

Definition at line 217 of file LALConstants.h.

#define LAL_PI_180   1.7453292519943295769236907684886127e-2

pi/180

Definition at line 218 of file LALConstants.h.

#define LAL_180_PI   57.295779513082320876798154814105170

180/pi

Definition at line 219 of file LALConstants.h.

#define LAL_C_SI   299792458

Speed of light in vacuo, m s^-1.

Definition at line 290 of file LALConstants.h.

#define LAL_EPSILON0_SI   8.8541878176203898505365630317107503e-12

Permittivity of free space, C^2 N^-1 m^-2.

Definition at line 291 of file LALConstants.h.

#define LAL_MU0_SI   1.2566370614359172953850573533118012e-6

Permeability of free space, N A^-2.

Definition at line 292 of file LALConstants.h.

#define LAL_GEARTH_SI   9.80665

Standard gravity, m s^-2.

Definition at line 293 of file LALConstants.h.

#define LAL_PATM_SI   101325

Standard atmosphere, Pa.

Definition at line 294 of file LALConstants.h.

#define LAL_G_SI   6.67259e-11

Gravitational constant, N m^2 kg^-2.

Definition at line 351 of file LALConstants.h.

#define LAL_H_SI   6.6260755e-34

Planck constant, J s.

Definition at line 352 of file LALConstants.h.

#define LAL_HBAR_SI   1.05457266e-34

Reduced Planck constant, J s.

Definition at line 353 of file LALConstants.h.

#define LAL_MPL_SI   2.17671e-8

Planck mass, kg.

Definition at line 354 of file LALConstants.h.

#define LAL_LPL_SI   1.61605e-35

Planck length, m.

Definition at line 355 of file LALConstants.h.

#define LAL_TPL_SI   5.39056e-44

Planck time, s.

Definition at line 356 of file LALConstants.h.

#define LAL_K_SI   1.380658e-23

Boltzmann constant, J K^-1.

Definition at line 357 of file LALConstants.h.

#define LAL_R_SI   8.314511

Ideal gas constant, J K^-1.

Definition at line 358 of file LALConstants.h.

#define LAL_MOL   6.0221367e23

Avogadro constant, dimensionless.

Definition at line 359 of file LALConstants.h.

#define LAL_BWIEN_SI   2.897756e-3

Wien displacement law constant, m K.

Definition at line 360 of file LALConstants.h.

#define LAL_SIGMA_SI   5.67051e-8

Stefan-Boltzmann constant, W m^-2 K^-4.

Definition at line 361 of file LALConstants.h.

#define LAL_AMU_SI   1.6605402e-27

Atomic mass unit, kg.

Definition at line 362 of file LALConstants.h.

#define LAL_MP_SI   1.6726231e-27

Proton mass, kg.

Definition at line 363 of file LALConstants.h.

#define LAL_ME_SI   9.1093897e-31

Electron mass, kg.

Definition at line 364 of file LALConstants.h.

#define LAL_QE_SI   1.60217733e-19

Electron charge, C.

Definition at line 365 of file LALConstants.h.

#define LAL_ALPHA   7.297354677e-3

Fine structure constant, dimensionless.

Definition at line 366 of file LALConstants.h.

#define LAL_RE_SI   2.81794092e-15

Classical electron radius, m.

Definition at line 367 of file LALConstants.h.

#define LAL_LAMBDAE_SI   3.86159323e-13

Electron Compton wavelength, m.

Definition at line 368 of file LALConstants.h.

#define LAL_AB_SI   5.29177249e-11

Bohr radius, m.

Definition at line 369 of file LALConstants.h.

#define LAL_MUB_SI   9.27401543e-24

Bohr magneton, J T^-1.

Definition at line 370 of file LALConstants.h.

#define LAL_MUN_SI   5.05078658e-27

Nuclear magneton, J T^-1.

Definition at line 371 of file LALConstants.h.

#define LAL_REARTH_SI   6.378140e6

Earth equatorial radius, m.

Definition at line 453 of file LALConstants.h.

#define LAL_AWGS84_SI   6.378137e6

Semimajor axis of WGS-84 Reference Ellipsoid, m.

Definition at line 454 of file LALConstants.h.

#define LAL_BWGS84_SI   6.356752314e6

Semiminor axis of WGS-84 Reference Ellipsoid, m.

Definition at line 455 of file LALConstants.h.

#define LAL_MEARTH_SI   5.97370e24

Earth mass, kg.

Definition at line 456 of file LALConstants.h.

#define LAL_IEARTH   0.409092804

Earth inclination (2000), radians.

Definition at line 457 of file LALConstants.h.

#define LAL_EEARTH   0.0167

Earth orbital eccentricity.

Definition at line 458 of file LALConstants.h.

#define LAL_RSUN_SI   6.960e8

Solar equatorial radius, m.

Definition at line 459 of file LALConstants.h.

#define LAL_MSUN_SI   1.98892e30

Solar mass, kg.

Definition at line 460 of file LALConstants.h.

#define LAL_MRSUN_SI   1.47662504e3

Geometrized solar mass, m.

Definition at line 461 of file LALConstants.h.

#define LAL_MTSUN_SI   4.92549095e-6

Geometrized solar mass, s.

Definition at line 462 of file LALConstants.h.

#define LAL_LSUN_SI   3.846e26

Solar luminosity, W.

Definition at line 463 of file LALConstants.h.

#define LAL_AU_SI   1.4959787066e11

Astronomical unit, m.

Definition at line 464 of file LALConstants.h.

#define LAL_PC_SI   3.0856775807e16

Parsec, m.

Definition at line 465 of file LALConstants.h.

#define LAL_YRTROP_SI   31556925.2

Tropical year (1994), s.

Definition at line 466 of file LALConstants.h.

#define LAL_YRSID_SI   31558149.8

Sidereal year (1994), s.

Definition at line 467 of file LALConstants.h.

#define LAL_DAYSID_SI   86164.09053

Mean sidereal day, s.

Definition at line 468 of file LALConstants.h.

#define LAL_LYR_SI   9.46052817e15

``Tropical'' lightyear (1994), m

Definition at line 469 of file LALConstants.h.

#define LAL_H0FAC_SI   3.2407792903e-18

Hubble constant prefactor, s^-1.

Definition at line 535 of file LALConstants.h.

#define LAL_H0_SI   2e-18

Approximate Hubble constant, s^-1.

Definition at line 536 of file LALConstants.h.

#define LAL_RHOCFAC_SI   1.68860e-9

Critical density prefactor, J m^-3.

Definition at line 538 of file LALConstants.h.

#define LAL_RHOC_SI   7e-10

Approximate critical density, J m^-3.

Definition at line 539 of file LALConstants.h.

#define LAL_TCBR_SI   2.726

Cosmic background radiation temperature, K.

Definition at line 541 of file LALConstants.h.

#define LAL_VCBR_SI   3.695e5

Solar velocity with respect to CBR, m s^-1.

Definition at line 542 of file LALConstants.h.

#define LAL_RHOCBR_SI   4.177e-14

Energy density of CBR, J m^-3.

Definition at line 543 of file LALConstants.h.

#define LAL_NCBR_SI   4.109e8

Number density of CBR photons, m^-3.

Definition at line 544 of file LALConstants.h.

#define LAL_SCBR_SI   3.993e-14

Entropy density of CBR, J K^-1 m^-3.

Definition at line 545 of file LALConstants.h.


Function Documentation

NRCSID ( LALCONSTANTSH  ,
"$Id: LALConstants.  h,
v 1.12 2007/06/08 14:41:52 bema Exp $"   
)


Generated on Sun Oct 12 02:33:07 2008 for LAL by  doxygen 1.5.2