LAL 7.7.0.1-678514e
LALConstants.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Jolien Creighton
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20/**
21 * @defgroup LALConstants_h Header LALConstants.h
22 * @ingroup lal_std
23 * @author Creighton, T. D.
24 * @brief Provides standard numerical constants for LAL.
25 *
26 * This header defines a number of useful numerical constants
27 * for use in LAL routines. These constants come in three basic
28 * flavours: arithmetic and mathematical constants, fundamental (or
29 * defined) physical constants, and measured astrophysical and
30 * cosmological parameters.
31 *
32 * Note that this header is not included automatically by the header
33 * <tt>LALStdlib.h</tt>. Include it explicitly if you need any of these
34 * constants.
35 *//** @{ */
36
37/** @{ */
38#ifndef _LALCONSTANTS_H
39#define _LALCONSTANTS_H
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45/**
46 * @name Floating-point constants
47 * The following constants define the precision and range of
48 * floating-point arithmetic in LAL. They are taken from the IEEE
49 * standard 754 for binary arithmetic. All numbers are dimensionless.
50 * @see http://dx.doi.org/10.1109/IEEESTD.2008.4610935
51 */
52/** @{ */
53#if __STDC_VERSION__ >= 199901L
54#define LAL_REAL4_MANT 24 /**< Bits of precision in the mantissa of a REAL4 */
55#define LAL_REAL4_MAX 0x1.fffffe0000000p+127 /**< Largest normalized REAL4 number (2-2^-23)*2^127 */
56#define LAL_REAL4_MIN 0x1.0000000000000p-126 /**< Smallest normalized REAL4 number 2^-126 */
57#define LAL_REAL4_EPS 0x1.0000000000000p-23 /**< Difference between 1 and the next resolvable REAL4 2^-23 */
58#define LAL_REAL8_MANT 53 /**< Bits of precision in the mantissa of a REAL8 */
59#define LAL_REAL8_MAX 0x1.fffffffffffffp+1023 /**< Largest normalized REAL8 number (2-2^-52)*2^1023 */
60#define LAL_REAL8_MIN 0x1.0000000000000p-1022 /**< Smallest normalized REAL8 number 2^-1022 */
61#define LAL_REAL8_EPS 0x1.0000000000000p-52 /**< Difference between 1 and the next resolvable REAL8 2^-52 */
62#else
63#define LAL_REAL4_MANT 24
64#define LAL_REAL4_MAX 3.4028234663852886e+38
65#define LAL_REAL4_MIN 1.1754943508222875e-38
66#define LAL_REAL4_EPS 1.1920928955078125e-07
67#define LAL_REAL8_MANT 53
68#define LAL_REAL8_MAX 1.797693134862315708145274237317043568e308
69#define LAL_REAL8_MIN 2.225073858507201383090232717332404064e-308
70#define LAL_REAL8_EPS 2.220446049250313080847263336181640625e-16
71#endif
72/** @} */
73
74/**
75 * @name Integer constants
76 * Extremal integer values, all expressed as unsigned long long.
77 */
78/** @{ */
79#define LAL_UINT8_MAX LAL_UINT8_C(18446744073709551615)
80#define LAL_UINT4_MAX LAL_UINT8_C(4294967295)
81#define LAL_UINT2_MAX LAL_UINT8_C(65535)
82#define LAL_INT8_MAX LAL_UINT8_C(9223372036854775807)
83#define LAL_INT4_MAX LAL_UINT8_C(2147483647)
84#define LAL_INT2_MAX LAL_UINT8_C(32767)
85/** @} */
86
87/**
88 * @name Mathematical constants
89 * All are dimensionless.
90 *
91 * @def LAL_E
92 * @brief Euler's constant, e
93 * @see https://oeis.org/A001113
94 *
95 * @def LAL_LOG2E
96 * @brief base-2 logarithm of e, log_2(e)
97 * @see http://oeis.org/A007525
98 *
99 * @def LAL_LOG10E
100 * @brief common logarithm of e, log_10(e)
101 * @see http://oeis.org/A002285
102 *
103 * @def LAL_LN2
104 * @brief natural log of 2, ln(2)
105 * @see http://oeis.org/A002162
106 *
107 * @def LAL_LN10
108 * @brief natural log of 10, ln(10)
109 * @see http://oeis.org/A002392
110 *
111 * @def LAL_SQRT2
112 * @brief Pythagoras's constant, sqrt(2)
113 * @see https://oeis.org/A002193
114 *
115 * @def LAL_SQRT1_2
116 * @brief 1/sqrt(2)
117 * @see https://oeis.org/A010503
118 *
119 * @def LAL_GAMMA
120 * @brief Euler-Mascheroni constant, gamma
121 * @see https://oeis.org/A001620
122 *
123 * @def LAL_EXPGAMMA
124 * @brief exp(gamma)
125 * @see https://oeis.org/A073004
126 *
127 * @def LAL_PI
128 * @brief Archimedes's constant, pi
129 * @see https://oeis.org/A000796
130 *
131 * @def LAL_TWOPI
132 * @brief 2*pi is circumference of a circle divided by its radius
133 * @see https://oeis.org/A019692
134 *
135 * @def LAL_PI_2
136 * @brief pi/2
137 * @see http://oeis.org/A019669
138 *
139 * @def LAL_PI_4
140 * @brief pi/4 is the least positive solution to sin(x) = cos(x)
141 * @see http://oeis.org/A003881
142 *
143 * @def LAL_1_PI
144 * @brief 1/pi is the ratio of the volume of a regular octahedron
145 * to the volume of the circumscribed sphere
146 * @see http://oeis.org/A049541
147 *
148 * @def LAL_2_PI
149 * @brief 2/pi is Buffon's constant
150 * @see http://oeis.org/A060294
151 *
152 * @def LAL_2_SQRTPI
153 * @brief 2/sqrt(pi)
154 * @see http://oeis.org/A190732
155 *
156 * @def LAL_PI_180
157 * @brief 180/pi is the number of degrees in one radian
158 * @see http://oeis.org/A072097
159 *
160 * @def LAL_180_PI
161 * @brief pi/180 is the number of radians in one degree
162 * @see http://oeis.org/A019685
163 *
164 * @def LAL_LNPI
165 * @brief natural log of pi, ln(pi)
166 * @see http://oeis.org/A053510
167 */
168/** @{ */
169#define LAL_E 2.718281828459045235360287471352662498
170#define LAL_LOG2E 1.442695040888963407359924681001892137
171#define LAL_LOG10E 0.434294481903251827651128918916605082
172#define LAL_LN2 0.693147180559945309417232121458176568
173#define LAL_LN10 2.302585092994045684017991454684364208
174#define LAL_SQRT2 1.414213562373095048801688724209698079
175#define LAL_SQRT1_2 0.707106781186547524400844362104849039
176#define LAL_GAMMA 0.577215664901532860606512090082402431
177#define LAL_EXPGAMMA 1.781072417990197985236504103107179549
178/* Assuming we're not near a black hole or in Tennessee... */
179#define LAL_PI 3.141592653589793238462643383279502884
180#define LAL_TWOPI 6.283185307179586476925286766559005768
181#define LAL_PI_2 1.570796326794896619231321691639751442
182#define LAL_PI_4 0.785398163397448309615660845819875721
183#define LAL_1_PI 0.318309886183790671537767526745028724
184#define LAL_2_PI 0.636619772367581343075535053490057448
185#define LAL_2_SQRTPI 1.128379167095512573896158903121545172
186#define LAL_PI_180 1.745329251994329576923690768488612713e-2
187#define LAL_180_PI 57.295779513082320876798154814105170332
188#define LAL_LNPI 1.144729885849400174143427351353058712
189/** @} */
190
191/**
192 * @name Exact physical constants
193 * The following physical constants are defined to have exact values.
194 * The dimensions in SI units are as shown.
195 * @see 2018 CODATA adjustment: http://physics.nist.gov/constants
196 */
197/** @{ */
198#define LAL_C_SI 299792458e0 /**< Speed of light in vacuum, m s^-1 */
199#define LAL_H_SI 6.62607015e-34 /**< Planck constant, J s */
200#define LAL_QE_SI 1.602176634e-19 /**< Electron charge, C */
201#define LAL_MOL 6.02214076e+23 /**< Avogadro constant, dimensionless */
202#define LAL_K_SI 1.380649e-23 /**< Boltzmann constant, J K^-1 */
203#define LAL_GEARTH_SI 9.80665 /**< Standard gravity, m s^-2 */
204#define LAL_PATM_SI 101325e0 /**< Standard atmosphere, Pa */
205
206/**
207 * @brief Reduced Planck constant, J s
208 * @details
209 * LAL_HBAR_SI = LAL_H_SI / (2 * LAL_PI)
210 */
211#define LAL_HBAR_SI 1.054571817646156391262428003302280745e-34
212
213/**
214 * @brief Molar gas constant, J mol^-1 K^-1
215 * @details
216 * LAL_R_SI = LAL_MOL * LAL_K_SI
217 */
218#define LAL_R_SI 8.31446261815324
219
220/**
221 * @brief Stefan-Boltzmann constant, W m^-2 K^-4
222 * @details
223 * LAL_SIGMA_SI = ((LAL_PI * LAL_PI * LAL_K_SI * LAL_K_SI * LAL_K_SI * LAL_K_SI) / (60 * LAL_HBAR_SI * LAL_HBAR_SI * LAL_HBAR_SI * LAL_C_SI * LAL_C_SI))
224 */
225#define LAL_SIGMA_SI 5.670374419184429453970996731889230876e-8
226
227/**
228 * @brief Second radiation constant, m K
229 * @details
230 * LAL_C2RAD_SI = (LAL_H_SI * LAL_C_SI / LAL_K_SI)
231 */
232#define LAL_C2RAD_SI 1.438776877503933802146671601543911595e-2
233
234/**
235 * @brief Wien displacement law constant, m K
236 * @details
237 * LAL_BWIEN_SI = (LAL_C2RAD_SI / X)
238 *
239 * where the factor X satisfies
240 *
241 * X * exp(X) = 5 * (exp(X) - 1)
242 */
243#define LAL_BWIEN_SI 2.897771955185172661478605448092884727e-3
244/** @} */
245
246/**
247 * @name Primary physical constants
248 * These physical constants are given to the precision
249 * to which they are known. Other physical constants
250 * derived from these are given in the next section.
251 * @see 2018 CODATA adjustment: http://physics.nist.gov/constants
252 */
253/** @{ */
254#define LAL_ALPHA 0.0072973525693 /**< Fine structure constant, dimensionless */
255#define LAL_RYD_SI 10973731.568160 /**< Rydberg constant, m^-1 */
256#define LAL_MP_ME 1836.15267343 /**< Proton-electron mass ratio, dimensionless */
257#define LAL_ME_AMU 0.000548579909065 /**< Electron mass, atomic mass units */
258#define LAL_G_SI 6.67430e-11 /**< Gravitational constant, N m^2 kg^-2 */
259/** @} */
260
261/**
262 * @name Derived physical constants
263 * The following constants are derived from the primary
264 * physical constants. When not dimensionless, they are
265 * given in the SI units shown. Precision beyond the
266 * accuracy is retained for these constants in order
267 * that equivalent combinations yield the same value.
268 */
269/** @{ */
270
271/**
272 * @brief Permeability of free space, N A^-2
273 * @details
274 * LAL_MU0_SI = 4 * LAL_PI * LAL_ALPHA * LAL_HBAR_SI / (LAL_QE_SI * LAL_QE_SI * LAL_C_SI)
275 */
276#define LAL_MU0_SI 1.256637062123837330602573817851770477e-6
277
278/**
279 * @brief Permittivity of free space, C^2 N^-1 m^-2
280 * @details
281 * LAL_EPSILON0_SI = 1 / (LAL_MU0_SI * LAL_C_SI * LAL_C_SI)
282 */
283#define LAL_EPSILON0_SI 8.854187812773347391812964575762341677e-12
284
285/**
286 * @brief Planck mass, kg
287 * @details
288 * LAL_MPL_SI = sqrt(LAL_HBAR_SI * LAL_C_SI / LAL_G_SI)
289 */
290#define LAL_MPL_SI 2.176434342717898213927914919024147041e-8
291
292/**
293 * @brief Planck length, m
294 * @details
295 * LAL_LPL_SI = (LAL_HBAR_SI / (LAL_MPL_SI * LAL_C_SI))
296 */
297#define LAL_LPL_SI 1.616255024423705286500047697249314157e-35
298
299/**
300 * @brief Planck time, s
301 * @details
302 * LAL_TPL_SI = (LAL_LPL_SI / LAL_C_SI)
303 */
304#define LAL_TPL_SI 5.391246448313603961644851309932934193e-44
305
306/**
307 * @brief Planck luminosity, J s^-1
308 * @details
309 * LAL_LUMPL_SI = (LAL_C_SI * LAL_C_SI * LAL_C_SI * LAL_C_SI * LAL_C_SI) / (LAL_G_SI)
310 */
311#define LAL_LUMPL_SI 3.628254904411280064474144638555430509e52
312
313/**
314 * @brief Proton mass, atomic mass units
315 * @details
316 * LAL_MP_AMU = (LAL_ME_AMU * LAL_MP_ME)
317 */
318#define LAL_MP_AMU 1.00727646661968604164295
319
320/**
321 * @brief Electron mass, kg
322 * @details
323 * LAL_ME_SI = ((2 * LAL_RYD_SI * LAL_H_SI) / (LAL_C_SI * LAL_ALPHA * LAL_ALPHA))
324 */
325#define LAL_ME_SI 9.109383701517728819842163772087735080e-31
326
327/**
328 * @brief Proton mass, kg
329 * @details
330 * LAL_MP_SI = (LAL_ME_SI * LAL_MP_ME)
331 */
332#define LAL_MP_SI 1.672621923684144692109494784075478798e-27
333
334/**
335 * @brief Atomic mass unit, kg
336 * @details
337 * LAL_AMU_SI = (LAL_ME_SI / LAL_ME_AMU)
338 */
339#define LAL_AMU_SI 1.660539066595378801332508797951914123e-27
340
341/**
342 * @brief Bohr radius, m
343 * @details
344 * LAL_AB_SI = (LAL_ALPHA / (4 * LAL_PI * LAL_RYD_SI))
345 */
346#define LAL_AB_SI 5.291772109034624983506063293620795401e-11
347
348/**
349 * @brief Electron Compton wavelength, m
350 * @details
351 * LAL_LAMBDAE_SI = (2 * LAL_PI * LAL_ALPHA * LAL_AB_SI)
352 */
353#define LAL_LAMBDAE_SI 2.426310238678370231942278247906312873e-12
354
355/**
356 * @brief Classical electron radius, m
357 * @details
358 * LAL_RE_SI = (LAL_ALPHA * LAL_ALPHA * LAL_AB_SI)
359 */
360#define LAL_RE_SI 2.817940326207927528347087481623789683e-15
361
362/**
363 * @brief Bohr magneton, J T^-1
364 * @details
365 * LAL_MUB_SI = (LAL_LAMBDAE_SI * LAL_C_SI * LAL_QE_SI / (4 * LAL_PI))
366 */
367#define LAL_MUB_SI 9.274010078344114556082608495144137435e-24
368
369/**
370 * @brief Nuclear magneton, J T^-1
371 * @details
372 * LAL_MUN_SI = (LAL_MUB_SI / LAL_MP_ME)
373 */
374#define LAL_MUN_SI 5.050783746114056140501321131006282803e-27
375/** @} */
376
377/**
378 * @name Exact astrophysical parameters
379 * The following astrophysical constants are defined to have exact values.
380 * The dimensions in SI units are as shown.
381 * @see http://asa.hmnao.com/SecK/Constants.html
382 * @see https://doi.org/10.3847/0004-6256/152/2/41
383 */
384/** @{ */
385#define LAL_ROT_DAY 1.00273781191135448 /**< Number of Earth rotations in one UT1 day, dimensionless */
386#define LAL_DAYJUL_SI 86400e0 /**< Julian day, s */
387#define LAL_YRJUL_SI 31557600e0 /**< Julian year, s */
388#define LAL_LYR_SI 9460730472580800e0 /**< (Julian) Lightyear, m */
389#define LAL_AU_SI 149597870700e0 /**< Astronomical unit, m */
390#define LAL_PC_SI 3.085677581491367278913937957796471611e16 /**< Parsec, m */
391#define LAL_GMEARTH_SI 3.986004e+14 /**< Nominal Earth mass parameter, m^3 s^-2 */
392#define LAL_REEARTH_SI 6.3781e+6 /**< Nominal Earth equatorial radius, m */
393#define LAL_RPEARTH_SI 6.3568e+6 /**< Nominal Earth polar radius, m */
394#define LAL_GMJUP_SI 1.2668653e+17 /**< Nominal Jupiter mass parameter, m^3 s^-2 */
395#define LAL_REJUP_SI 7.1492e+7 /**< Nominal Jupiter equatorial radius, m */
396#define LAL_RPJUP_SI 6.6854e+7 /**< Nominal Jupiter polar radius, m */
397#define LAL_GMSUN_SI 1.3271244e+20 /**< Nominal solar mass parameter, m^3 s^-2 */
398#define LAL_RSUN_SI 6.957e+8 /**< Nominal solar radius, m */
399#define LAL_SSUN_SI 1361e0 /**< Nominal total solar irradiance, W m^-2 */
400#define LAL_LSUN_SI 3.828e+26 /**< Nominal solar luminosity, W */
401#define LAL_TSUN_SI 5772e0 /**< Nominal solar effective temperature, K */
402/** @} */
403
404/**
405 * @name Primary astrophysical parameters
406 * These astrophysical constants are given to the precision
407 * to which they are known. Other physical constants
408 * derived from these are given in the next section.
409 */
410/** @{ */
411
412/**
413 * @brief Earth equatorial radius, m
414 * @see http://asa.hmnao.com/SecK/Constants.html
415 */
416#define LAL_REARTH_SI 6378136.6
417
418/**
419 * @brief Semimajor axis of WGS-84 Reference Ellipsoid, m
420 * @see Department of Defense World Geodedic System 1984 http://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf
421 */
422#define LAL_AWGS84_SI 6378137e0
423
424/**
425 * @brief Semiminor axis of WGS-84 Reference Ellipsoid, m
426 * @details
427 * LAL_BWGS84_SI = LAL_AWGS84_SI * (1 - f)
428 *
429 * where f is the flattening
430 *
431 * 1/f = 298.257223563
432 *
433 * @note This constant is not given to full precision for compatibility.
434 * @see Department of Defense World Geodedic System 1984 http://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf
435 */
436#define LAL_BWGS84_SI 6356752.314
437
438/**
439 * @brief Earth inclination (2000), radians
440 * @details
441 * This is the measured value of the mean obliquity of the
442 * ecliptic, 84381.406 arcseconds, converted to radians.
443 * @see http://asa.hmnao.com/SecK/Constants.html
444 */
445#define LAL_IEARTH 0.409092600600582871467239393761915655
446
447/**
448 * @brief Earth orbital eccentricity, dimensionless
449 * @see E. Myles Standish and James G. Williams, Orbital Ephemerides of the Sun, Moon, and Planets ftp://ssd.jpl.nasa.gov/pub/eph/planets/ioms/ExplSupplChap8.pdf
450 */
451#define LAL_EEARTH 0.0167
452
453/**
454 * @brief Rate of Earth precession (2000), Hz
455 * @details
456 * This is the rate of precession of the Earth,
457 * 4612.156534 arcseconds per Julian century,
458 * converted to cycles per second, at the epoch J2000.0
459 * (=2000-01-01T12:00:00Z):
460 *
461 * LAL_EPREC_SI = 4612.156534 / 36525 / 15 / 86400 / LAL_DAYJUL_SI
462 *
463 * @see Linear (in t) term in Eq. (42) of
464 * N. Capitaine, P. T. Wallace and J. Chapront
465 * "Expressions for IAU 2000 precession quantities",
466 * Astronomy & Astrophysics 412 567 (2003)
467 * https://doi.org/10.1051/0004-6361:20031539
468 */
469#define LAL_EPREC_SI 1.127703867758020059420250393792953007e-12
470
471/**
472 * @brief Earth mass parameter, m^3 s^-2 (TCB)
473 * @see http://asa.hmnao.com/SecK/Constants.html
474 */
475#define LAL_GMEARTH_TCB_SI 3.986004418e+14
476
477/**
478 * @brief Earth mass parameter, m^3 s^-2 (TDB)
479 * @see http://asa.hmnao.com/SecK/Constants.html
480 */
481#define LAL_GMEARTH_TDB_SI 3.986004356e+14
482
483/**
484 * @brief Earth mass parameter, m^3 s^-2 (TT)
485 * @see http://asa.hmnao.com/SecK/Constants.html
486 */
487#define LAL_GMEARTH_TT_SI 3.986004415e+14
488
489/**
490 * @brief Solar mass parameter, m^3 s^-2 (TCB)
491 * @see http://asa.hmnao.com/SecK/Constants.html
492 */
493#define LAL_GMSUN_TCB_SI 1.32712442099e+20
494
495/**
496 * @brief Solar mass parameter, m^3 s^-2 (TDB)
497 * @see http://asa.hmnao.com/SecK/Constants.html
498 */
499#define LAL_GMSUN_TDB_SI 1.32712440041e+20
500
501/**
502 * @brief Tropical year (2000), s
503 * @see Borkowski, K. M., The Tropical Year and Solar Calendar, Journal of the Royal Astronomical Society of Canada, Vol. 85, NO. 3/JUN, P.121, 1991 http://articles.adsabs.harvard.edu/cgi-bin/nph-iarticle_query?1991JRASC..85..121B&data_type=PDF_HIGH&whole_paper=YES&type=PRINTER&filetype=.pdf
504 */
505#define LAL_YRTROP_SI 31556925.1874707200
506
507/**
508 * @brief Sidereal year (2000), s
509 * @see http://hpiers.obspm.fr/eop-pc/models/constants.html
510 */
511#define LAL_YRSID_SI 31558149.763545600
512/** @} */
513
514/**
515 * @name Derived astrophysical parameters
516 * The following constants are derived from the primary
517 * astrophysical constants. When not dimensionless, they are
518 * given in the SI units shown. Precision beyond the
519 * accuracy is retained for these constants in order
520 * that equivalent combinations yield the same value.
521 */
522/** @{ */
523
524/**
525 * @brief Cosine of Earth inclination (2000)
526 * @details
527 * LAL_COSIEARTH = cos(LAL_IEARTH)
528 */
529#define LAL_COSIEARTH 0.917482143065241841533315838574859003
530
531/**
532 * @brief Sine of Earth inclination (2000)
533 * @details
534 * LAL_SINIEARTH = sin(LAL_IEARTH)
535 */
536#define LAL_SINIEARTH 0.397776969112605992551264763661918798
537
538/**
539 * @brief Nominal Earth mass, kg
540 * @details
541 * LAL_MEARTH_SI = LAL_GMEARTH_SI / LAL_G_SI
542 */
543#define LAL_MEARTH_SI 5.972167867791378871192484605127129437e24
544
545/**
546 * @brief Earth mass, kg (TCB)
547 * @details
548 * LAL_MEARTH_TCB_SI = LAL_GMEARTH_TCB_SI / LAL_G_SI
549 */
550#define LAL_MEARTH_TCB_SI 5.972168494074284943739418365970963247e24
551
552/**
553 * @brief Earth mass, kg (TDB)
554 * @details
555 * LAL_MEARTH_TDB_SI = LAL_GMEARTH_TDB_SI / LAL_G_SI
556 */
557#define LAL_MEARTH_TDB_SI 5.972168401180648157859251157424748663e24
558
559/**
560 * @brief Earth mass, kg (TT)
561 * @details
562 * LAL_MEARTH_TT_SI = LAL_GMEARTH_TT_SI / LAL_G_SI
563 */
564#define LAL_MEARTH_TT_SI 5.972168489579431550874248984912275445e24
565
566/**
567 * @brief Nominal Jupiter mass, kg
568 * @details
569 * LAL_MJUP_SI = LAL_GMJUP_SI / LAL_G_SI
570 */
571#define LAL_MJUP_SI 1.898124597336050222495242946825884362e27
572
573/**
574 * @brief Nominal solar mass, kg
575 * @details
576 * LAL_MSUN_SI = LAL_GMSUN_SI / LAL_G_SI
577 */
578#define LAL_MSUN_SI 1.988409870698050731911960804878414216e30
579
580/**
581 * @brief Geometrized nominal solar mass, m
582 * @details
583 * LAL_MRSUN_SI = LAL_GMSUN_SI / (LAL_C_SI * LAL_C_SI)
584 */
585#define LAL_MRSUN_SI 1.476625038050124729627979840144936351e3
586
587/**
588 * @brief Geometrized nominal solar mass, s
589 * @details
590 * LAL_MTSUN_SI = LAL_GMSUN_SI / (LAL_C_SI * LAL_C_SI * LAL_C_SI)
591 */
592#define LAL_MTSUN_SI 4.925490947641266978197229498498379006e-6
593
594/**
595 * @brief Solar mass, kg (TCB)
596 * @details
597 * LAL_MSUN_TCB_SI = LAL_GMSUN_TCB_SI / LAL_G_SI
598 */
599#define LAL_MSUN_TCB_SI 1.988409902147041637325262574352366540e30
600
601/**
602 * @brief Solar mass, kg (TDB)
603 * @details
604 * LAL_MSUN_TDB_SI = LAL_GMSUN_TDB_SI / LAL_G_SI
605 */
606#define LAL_MSUN_TDB_SI 1.988409871312347362270200620289768215e30
607
608/**
609 * @brief Ratio of mean solar day to sidereal day, dimensionless
610 * @details
611 * This quantity is evaluated at the epoch J2000.0 (=2000-01-01T12:00:00Z) as:
612 *
613 * LAL_SOL_SID = LAL_ROT_DAY + LAL_DAYJUL_SI * LAL_EPREC_SI
614 */
615#define LAL_SOL_SID 1.002737909344968654292933133909634024
616
617/**
618 * @brief Mean sidereal day, s
619 * @details
620 * This quantity is evaluated at the epoch J2000.0 (=2000-01-01T12:00:00Z) as:
621 *
622 * LAL_DAYSID_SI = LAL_DAYJUL_SI / LAL_SOL_SID
623 */
624#define LAL_DAYSID_SI 86164.090531333536768710524462700317733190
625/** @} */
626
627/**
628 * @name Cosmological parameters
629 * The following cosmological parameters are derived from measurements of
630 * the Hubble expansion rate and of the cosmic microwave background radiation.
631 * In what follows, the dimensionless Hubble constant \f$h_0\f$ is equal to the
632 * actual Hubble constant \f$H_0\f$ divided by
633 * \f$\langle H \rangle=100\,\mathrm{km}\,\mathrm{s}^{-1}\mathrm{Mpc}^{-1}\f$.
634 * Thus the Hubble constant can be written as:
635 * \f$H_0 = \langle H \rangle h_0\f$. Similarly, the critical energy density
636 * \f$\rho_c\f$ required for spatial flatness is given by:
637 * \f$\rho_c = \langle\rho\rangle h_0^2\f$.
638 *
639 * The current default cosmology is the 2015 Planck TT+lowP+lensing+ext
640 * Flat LambdaCDM cosmology with Hubble constant
641 * \f$H_0 = 67.90\,\mathrm{km}\,\mathrm{s}^{-1}\mathrm{Mpc}^{-1}\f$
642 * and matter density parameter
643 * \f$\Omega_{\mathrm{m}} = 0.3065\f$
644 * which is what is assumed below.
645 * All values are in the SI units shown.
646 * @see Table 4, column TT+lowP+lensing+ext of http://doi.org/10.1051/0004-6361/201525830
647 */
648/** @{ */
649#define LAL_H0_DIMENSIONLESS 0.679 /**< Default dimensionless Hubble constant, dimensionless */
650#define LAL_OMEGA_M 0.3065 /**< Default dimensionless Hubble constant, dimensionless */
651
652/**
653 * @brief Hubble constant prefactor, s^-1
654 * @details
655 * LAL_H0FAC_SI = 100 km s^-1 Mpc^-1
656 */
657#define LAL_H0FAC_SI 3.240779289444365023237687716352957261e-18
658
659/**
660 * @brief Default Hubble constant, s^-1
661 * @details
662 * LAL_H0_SI = LAL_H0_DIMENSIONLESS * LAL_H0FAC_SI
663 */
664#define LAL_H0_SI (LAL_H0_DIMENSIONLESS * LAL_H0FAC_SI)
665
666/**
667 * @brief Critical energy density prefactor, J m^-3
668 * @details
669 * LAL_RHOCFAC_SI = 3 * (LAL_H0FAC_SI * LAL_C_SI)^2 / (8 * LAL_PI * LAL_G_SI)
670 */
671#define LAL_RHOCFAC_SI 1.688169255655572064052978218230767915e-9
672
673/**
674 * @brief Approximate critical energy density, J m^-3
675 * @details
676 * LAL_RHOC_SI = LAL_H0_DIMENSIONLESS^2 * LAL_RHOCFAC_SI
677 */
678#define LAL_RHOC_SI (LAL_H0_DIMENSIONLESS * LAL_H0_DIMENSIONLESS * LAL_RHOCFAC_SI)
679
680/**
681 * @brief Cosmic microwave background radiation temperature, K
682 * @see http://dx.doi.org/10.1088/0004-637X/707/2/916
683 */
684#define LAL_TCMB_SI 2.72548
685
686/**
687 * @brief Solar velocity with respect to the cosmic microwave background radiation, m s^-1
688 * @details
689 * Adopted value is v/c = 0.0012338
690 * @see http://dx.doi.org/10.1088/0004-637X/707/2/916
691 */
692#define LAL_VCMB_SI 369883.9346804
693
694/**
695 * @brief Number density of cosmic microwave background radiation photons, m^-3
696 * @details
697 * LAL_NCMB_SI = 16 * zeta(3) * LAL_PI * (LAL_K_SI * LAL_TCMB_SI / (LAL_C_SI * LAL_H_SI))^3
698 *
699 * where zeta is the Riemann zeta function and zeta(3) is Apery's constant.
700 * @see http://oeis.org/A002117
701 */
702#define LAL_NCMB_SI 4.107178061233267795913602167900672966e8
703
704/**
705 * @brief Entropy density of cosmic microwave background radiation, J K^-1 m^-3
706 * @details
707 * LAL_SCMB_SI = 4 * LAL_PI^2 * LAL_K_SI * (LAL_K_SI * LAL_TCMB_SI / (LAL_C_SI * LAL_HBAR_SI))^3 / 45
708 */
709#define LAL_SCMB_SI 2.042296344521760298284258925842980552e-14
710/** @} */
711
712/** @} */
713/** @} */
714#ifdef __cplusplus
715}
716#endif
717#endif /* _LALCONSTANTS_H */