LALConstants.h

Go to the documentation of this file.
00001 /*
00002 *  Copyright (C) 2007 Jolien Creighton
00003 *
00004 *  This program is free software; you can redistribute it and/or modify
00005 *  it under the terms of the GNU General Public License as published by
00006 *  the Free Software Foundation; either version 2 of the License, or
00007 *  (at your option) any later version.
00008 *
00009 *  This program is distributed in the hope that it will be useful,
00010 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 *  GNU General Public License for more details.
00013 *
00014 *  You should have received a copy of the GNU General Public License
00015 *  along with with program; see the file COPYING. If not, write to the
00016 *  Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00017 *  MA  02111-1307  USA
00018 */
00019 
00020 /** \file
00021  * \ingroup std
00022  * \author Creighton, T. D.
00023  * \date $Id: LALConstants.h,v 1.12 2007/06/08 14:41:52 bema Exp $
00024  * \brief Provides standard numerical constants for LAL.
00025  *
00026  * This header defines a number of useful numerical constants
00027  * for use in LAL routines.  These constants come in three basic
00028  * flavours: arithmetic and mathematical constants, fundamental (or
00029  * defined) physical constants, and measured astrophysical and
00030  * cosmological parameters.
00031  * 
00032  * Note that this header is not included automatically by the header
00033  * <tt>LALStdlib.h</tt>.  Include it explicitly if you need any of these
00034  * constants.
00035  */
00036 
00037 /********************************* <lalVerbatim file="LALConstantsHV">
00038 Author: Creighton, T. D.
00039 $Id: LALConstants.h,v 1.12 2007/06/08 14:41:52 bema Exp $
00040 ********************************** </lalVerbatim> */
00041 
00042 /* <lalLaTeX>
00043 
00044 \section{Header \texttt{LALConstants.h}}
00045 \label{s:LALConstants.h}
00046 
00047 Provides standard numerical constants for LAL.
00048 
00049 \subsection*{Synopsis}
00050 \begin{verbatim}
00051 #include <lal/LALConstants.h>
00052 \end{verbatim}
00053 
00054 \noindent This header defines a number of useful numerical constants
00055 for use in LAL routines.  These constants come in three basic
00056 flavours: arithmetic and mathematical constants, fundamental (or
00057 defined) physical constants, and measured astrophysical and
00058 cosmological parameters.
00059 
00060 Note that, unlike the other headers in the \verb@std@ package, this
00061 header is \emph{not} included automatically by the header
00062 \verb@LALStdlib.h@.  Include it explicitly if you need any of these
00063 constants.
00064 
00065 </lalLaTeX> */
00066 
00067 #ifndef _LALCONSTANTS_H
00068 #define _LALCONSTANTS_H
00069 
00070 #include <lal/LALRCSID.h>
00071 
00072 #ifdef  __cplusplus
00073 extern "C" {
00074 #endif
00075 
00076 NRCSID (LALCONSTANTSH, "$Id: LALConstants.h,v 1.12 2007/06/08 14:41:52 bema Exp $");
00077 
00078 /* <lalLaTeX>
00079 
00080 \subsection*{Mathematical constants}
00081 \idx[Constant]{LAL\_REAL4\_MANT}
00082 \idx[Constant]{LAL\_REAL4\_MAX}
00083 \idx[Constant]{LAL\_REAL4\_MIN}
00084 \idx[Constant]{LAL\_REAL4\_EPS}
00085 \idx[Constant]{LAL\_REAL8\_MANT}
00086 \idx[Constant]{LAL\_REAL8\_MAX}
00087 \idx[Constant]{LAL\_REAL8\_MIN}
00088 \idx[Constant]{LAL\_REAL8\_EPS}
00089 \idx[Constant]{LAL\_E}
00090 \idx[Constant]{LAL\_LOG2E}
00091 \idx[Constant]{LAL\_LOG10E}
00092 \idx[Constant]{LAL\_LN2}
00093 \idx[Constant]{LAL\_LN10}
00094 \idx[Constant]{LAL\_SQRT2}
00095 \idx[Constant]{LAL\_SQRT1\_2}
00096 \idx[Constant]{LAL\_GAMMA}
00097 \idx[Constant]{LAL\_PI}
00098 \idx[Constant]{LAL\_TWOPI}
00099 \idx[Constant]{LAL\_PI\_2}
00100 \idx[Constant]{LAL\_PI\_4}
00101 \idx[Constant]{LAL\_1\_PI}
00102 \idx[Constant]{LAL\_2\_PI}
00103 \idx[Constant]{LAL\_2\_SQRTPI}
00104 \idx[Constant]{LAL\_PI\_180}
00105 \idx[Constant]{LAL\_180\_PI}
00106 
00107 The following constants define the precision and range of
00108 floating-point arithmetic in LAL.  They are taken from the IEEE
00109 standard~754 for binary arithmetic.  All numbers are dimensionless.
00110 
00111 \begin{center}
00112 \begin{tabular}{|lll|}
00113 \hline
00114 Name & Value & Description \\
00115 \hline
00116 \tt LAL\_REAL4\_MANT & 24 &
00117         Bits in {\tt REAL4} mantissa \\
00118 \tt LAL\_REAL4\_MAX  & $3.40282347\times10^{38}$ &
00119         Largest {\tt REAL4} \\
00120 \tt LAL\_REAL4\_MIN  & $1.17549435\times10^{-38}$ &
00121         Smallest positive {\tt REAL4} \\
00122 \tt LAL\_REAL4\_EPS  & $1.19209290\times10^{-7}$ &
00123         $2^{-(\mathtt{LAL\_REAL4\_MANT}-1)}$ \\
00124 \hline
00125 \tt LAL\_REAL8\_MANT & 53 &
00126         Bits in {\tt REAL8} mantissa \\
00127 \tt LAL\_REAL8\_MAX  & $1.7976931348623157\times10^{308}$ &
00128         Largest {\tt REAL8} \\
00129 \tt LAL\_REAL8\_MIN  & $2.2250738585072014\times10^{-308}$ &
00130         Smallest positive {\tt REAL8} \\
00131 \tt LAL\_REAL8\_EPS  & $2.2204460492503131\times10^{-16}$ &
00132         $2^{-(\mathtt{LAL\_REAL8\_MANT}-1)}$ \\
00133 \hline
00134 \end{tabular}
00135 \end{center}
00136 
00137 \noindent\verb@LAL_REAL4_EPS@ and \verb@LAL_REAL8_EPS@ can be thought
00138 of as the difference between 1 and the next representable \verb@REAL4@
00139 or \verb@REAL8@ number.
00140 
00141 \vspace{3ex}
00142 
00143 </lalLaTeX> */
00144 
00145 /** \name Floating-point constants
00146  * The following constants define the precision and range of
00147  * floating-point arithmetic in LAL.  They are taken from the IEEE
00148  * standard 754 for binary arithmetic.  All numbers are dimensionless. */
00149 /*@{*/
00150 #define LAL_REAL4_MANT 24 /**< Bits of precision in the mantissa of a REAL4 */
00151 #define LAL_REAL4_MAX 3.40282347e+38 /**< Largest REAL4 */
00152 #define LAL_REAL4_MIN 1.17549435e-38 /**< Smallest nonzero REAL4 */
00153 #define LAL_REAL4_EPS 1.19209290e-07 /**< 0.5^(LAL_REAL4_MANT-1), i.e. the difference between 1 and the next resolveable REAL4 */
00154 #define LAL_REAL8_MANT 53 /**< Bits of precision in the mantissa of a REAL8 */
00155 #define LAL_REAL8_MAX 1.7976931348623157e+308 /**< Largest REAL8 */
00156 #define LAL_REAL8_MIN 2.2250738585072014e-308 /**< Smallest nonzero REAL8 */
00157 #define LAL_REAL8_EPS 2.2204460492503131e-16  /**< 0.5^(LAL_REAL8_MANT-1), i.e. the difference between 1 and the next resolveable REAL8 */
00158 /*@}*/
00159 
00160 /* <lalLaTeX>
00161 
00162 The following are fundamental mathematical constants.  They are mostly
00163 taken from the GNU C \verb@math.h@ header (with the exception of
00164 \verb@LAL_TWOPI@, which was computed using Maple).  All numbers are
00165 dimensionless.
00166 
00167 \begin{center}
00168 \begin{tabular}{|llc|}
00169 \hline
00170 Name & Value & Expression \\
00171 \hline
00172 \tt LAL\_E         & 2.7182818284590452353602874713526625 & $e$ \\
00173 \tt LAL\_LOG2E     & 1.4426950408889634073599246810018922 & $\log_2 e$ \\
00174 \tt LAL\_LOG10E    & 0.4342944819032518276511289189166051 & $\log_{10} e$ \\
00175 \tt LAL\_LN2       & 0.6931471805599453094172321214581766 & $\log_e 2$ \\
00176 \tt LAL\_LN10      & 2.3025850929940456840179914546843642 & $\log_e 10$ \\
00177 \tt LAL\_SQRT2     & 1.4142135623730950488016887242096981 & $\sqrt{2}$ \\
00178 \tt LAL\_SQRT1\_2  & 0.7071067811865475244008443621048490 & $1/\sqrt{2}$ \\
00179 \tt LAL\_GAMMA     & 0.5772156649015328606065120900824024 & $\gamma$ \\
00180 \tt LAL\_PI        & 3.1415926535897932384626433832795029 & $\pi$ \\
00181 \tt LAL\_TWOPI     & 6.2831853071795864769252867665590058 & $2\pi$ \\
00182 \tt LAL\_PI\_2     & 1.5707963267948966192313216916397514 & $\pi/2$ \\
00183 \tt LAL\_PI\_4     & 0.7853981633974483096156608458198757 & $\pi/4$ \\
00184 \tt LAL\_1\_PI     & 0.3183098861837906715377675267450287 & $1/\pi$ \\
00185 \tt LAL\_2\_PI     & 0.6366197723675813430755350534900574 & $2/\pi$ \\
00186 \tt LAL\_2\_SQRTPI & 1.1283791670955125738961589031215452 & $2/\sqrt{\pi}$ \\
00187 \tt LAL\_PI\_180   & 1.7453292519943295769236907684886127$\times10^{-2}$ &
00188   $\pi/180$ \\
00189 \tt LAL\_180\_PI   & 57.295779513082320876798154814105170 & $180/\pi$ \\
00190 \hline
00191 \end{tabular}
00192 \end{center}
00193 
00194 </lalLaTeX> */
00195 
00196 /** \name Mathematical constants
00197  * The following are fundamental mathematical constants.  They are mostly
00198  * taken from the GNU C <tt>math.h</tt> header (with the exception of
00199  * <tt>LAL_TWOPI</tt>, which was computed using Maple).  All numbers are
00200  * dimensionless. */
00201 /*@{*/
00202 #define LAL_E         2.7182818284590452353602874713526625  /**< e */
00203 #define LAL_LOG2E     1.4426950408889634073599246810018922  /**< log_2 e */
00204 #define LAL_LOG10E    0.4342944819032518276511289189166051  /**< log_10 e */
00205 #define LAL_LN2       0.6931471805599453094172321214581766  /**< log_e 2 */
00206 #define LAL_LN10      2.3025850929940456840179914546843642  /**< log_e 10 */
00207 #define LAL_SQRT2     1.4142135623730950488016887242096981  /**< sqrt(2) */
00208 #define LAL_SQRT1_2   0.7071067811865475244008443621048490  /**< 1/sqrt(2) */
00209 #define LAL_GAMMA     0.5772156649015328606065120900824024  /**< gamma */
00210 /* Assuming we're not near a black hole or in Tennessee... */
00211 #define LAL_PI        3.1415926535897932384626433832795029  /**< pi */
00212 #define LAL_TWOPI     6.2831853071795864769252867665590058  /**< 2*pi */
00213 #define LAL_PI_2      1.5707963267948966192313216916397514  /**< pi/2 */
00214 #define LAL_PI_4      0.7853981633974483096156608458198757  /**< pi/4 */
00215 #define LAL_1_PI      0.3183098861837906715377675267450287  /**< 1/pi */
00216 #define LAL_2_PI      0.6366197723675813430755350534900574  /**< 2/pi */
00217 #define LAL_2_SQRTPI  1.1283791670955125738961589031215452  /**< 2/sqrt(pi) */
00218 #define LAL_PI_180    1.7453292519943295769236907684886127e-2 /**< pi/180 */
00219 #define LAL_180_PI    57.295779513082320876798154814105170 /**< 180/pi */
00220 /*@}*/
00221 
00222 /* <lalLaTeX>
00223 
00224 \subsection*{Physical constants}
00225 \idx[Constant]{LAL\_C\_SI}
00226 \idx[Constant]{LAL\_EPSILON0\_SI}
00227 \idx[Constant]{LAL\_MU0\_SI}
00228 \idx[Constant]{LAL\_GEARTH\_SI}
00229 \idx[Constant]{LAL\_PATM\_SI}
00230 \idx[Constant]{LAL\_G\_SI}
00231 \idx[Constant]{LAL\_H\_SI}
00232 \idx[Constant]{LAL\_HBAR\_SI}
00233 \idx[Constant]{LAL\_MPL\_SI}
00234 \idx[Constant]{LAL\_LPL\_SI}
00235 \idx[Constant]{LAL\_TPL\_SI}
00236 \idx[Constant]{LAL\_K\_SI}
00237 \idx[Constant]{LAL\_R\_SI}
00238 \idx[Constant]{LAL\_MOL}
00239 \idx[Constant]{LAL\_BWIEN\_SI}
00240 \idx[Constant]{LAL\_SIGMA\_SI}
00241 \idx[Constant]{LAL\_AMU\_SI}
00242 \idx[Constant]{LAL\_MP\_SI}
00243 \idx[Constant]{LAL\_ME\_SI}
00244 \idx[Constant]{LAL\_QP\_SI}
00245 \idx[Constant]{LAL\_ALPHA}
00246 \idx[Constant]{LAL\_RE\_SI}
00247 \idx[Constant]{LAL\_LAMBDAE\_SI}
00248 \idx[Constant]{LAL\_AB\_SI}
00249 \idx[Constant]{LAL\_MUB\_SI}
00250 \idx[Constant]{LAL\_MUN\_SI}
00251 
00252 The following physical constants are defined to have exact values.
00253 The values of $c$ and $g$ are taken from~\cite{Barnet:1996},
00254 $p_\mathrm{atm}$ is from~\cite{Lang:1992}, while $\epsilon_0$ and
00255 $\mu_0$ are computed from $c$ using exact formulae.  They are given in
00256 the SI units shown.
00257 
00258 \begin{center}
00259 \begin{tabular}{|lll|}
00260 \hline
00261 Name & Value & Description \\
00262 \hline
00263 \tt LAL\_C\_SI        & $299\,792\,458\,\mathrm{m}\,\mathrm{s}^{-1}$ &
00264         Speed of light $c$ in free space \\
00265 \tt LAL\_EPSILON0\_SI & \multicolumn{2}{l|}{
00266         $8.8541878176203898505365630317107503\times10^{-12}\,
00267         \mathrm{C}^2\mathrm{N}^{-1}\mathrm{m}^{-2}$} \\
00268 & & Permittivity $\epsilon_0$ of free space \\
00269 \tt LAL\_MU0\_SI      & \multicolumn{2}{l|}{
00270         $1.2566370614359172953850573533118012\times10^{-6}\,
00271         \mathrm{N}\,\mathrm{A}^{-2}$} \\
00272 & & Permeability $\mu_0$ of free space \\
00273 \tt LAL\_GEARTH\_SI   & $9.80665\,\mathrm{m}\,\mathrm{s}^{-2}$ &
00274         Standard gravity $g$ \\
00275 \tt LAL\_PATM\_SI     & $101\,325\,\mathrm{Pa}$ &
00276         Standard atmospheric pressure $p_\mathrm{atm}$ \\
00277 \hline
00278 \end{tabular}
00279 \end{center}
00280 
00281 </lalLaTeX> */
00282 
00283 /** \name Exact physical constants
00284  * The following physical constants are defined to have exact values.
00285  * The values of \f$c\f$ and \f$g\f$ are taken from Barnet (1996),
00286  * \f$p_\mathrm{atm}\f$ is from Lang (1992), while \f$\epsilon_0\f$ and
00287  * \f$\mu_0\f$ are computed from \f$c\f$ using exact formulae.  They are given in
00288  * the SI units shown. */
00289 /*@{*/
00290 #define LAL_C_SI      299792458 /**< Speed of light in vacuo, m s^-1 */
00291 #define LAL_EPSILON0_SI  8.8541878176203898505365630317107503e-12 /**< Permittivity of free space, C^2 N^-1 m^-2 */
00292 #define LAL_MU0_SI    1.2566370614359172953850573533118012e-6 /**< Permeability of free space, N A^-2 */
00293 #define LAL_GEARTH_SI 9.80665 /**< Standard gravity, m s^-2 */
00294 #define LAL_PATM_SI 101325 /**< Standard atmosphere, Pa */
00295 /*@}*/
00296 
00297 /* <lalLaTeX>
00298 
00299 The following are measured fundamental physical constants, with values
00300 given in \cite{Barnet:1996}.  When not dimensionless, they are given
00301 in the SI units shown.
00302 
00303 \begin{center}
00304 \begin{tabular}{|lll|}
00305 \hline
00306 Name & Value & Description \\
00307 \hline
00308 \tt LAL\_G\_SI     & $6.67259\times10^{-11}\,\mathrm{N}\,\mathrm{m}^{2}
00309         \mathrm{kg}^{-2}$ & Gravitational constant $G$ \\
00310 \tt LAL\_H\_SI     & $6.6260755\times10^{-34}\,\mathrm{J}\,\mathrm{s}$ &
00311         Planck constant $h$ \\
00312 \tt LAL\_HBAR\_SI  & $1.05457266\times10^{-34}\,\mathrm{J}\,\mathrm{s}$ &
00313         Reduced Planck constant $\hbar$ \\
00314 \tt LAL\_MPL\_SI   & $2.17671\times10^{-8}\,\mathrm{kg}$ & Planck mass \\
00315 \tt LAL\_LPL\_SI   & $1.61605\times10^{-35}\,\mathrm{m}$ & Planck length \\
00316 \tt LAL\_TPL\_SI   & $5.39056\times10^{-44}\,\mathrm{s}$ & Planck time \\
00317 \tt LAL\_K\_SI     & $1.380658\times10^{-23}\,\mathrm{J}\,\mathrm{K}^{-1}$ &
00318         Boltzmann constant $k$ \\
00319 \tt LAL\_R\_SI     & $8.314511\,\mathrm{J}\,\mathrm{K}^{-1}$ &
00320         Ideal gas constant $R$ \\
00321 \tt LAL\_MOL       & $6.0221367\times10^{23}$ & Avogadro constant \\
00322 \tt LAL\_BWIEN\_SI & $2.897756\times10^{-3}\,\mathrm{m}\,\mathrm{K}$ &
00323         Wien displacement law constant $b$ \\
00324 \tt LAL\_SIGMA\_SI & $5.67051\times10^{-8}\,\mathrm{W}\,\mathrm{m}^{-2}
00325         \mathrm{K}^{-4}$ & Stefan-Boltzmann constant $\sigma$ \\
00326 \tt LAL\_AMU\_SI   & $1.6605402\times10^{-27}\,\mathrm{kg}$ &
00327         Atomic mass unit \\
00328 \tt LAL\_MP\_SI    & $1.6726231\times10^{-27}\,\mathrm{kg}$ & Proton mass \\
00329 \tt LAL\_ME\_SI    & $9.1093897\times10^{-31}\,\mathrm{kg}$ & Electron mass \\
00330 \tt LAL\_QP\_SI    & $1.60217733\times10^{-19}\,\mathrm{C}$ & Proton charge \\
00331 \tt LAL\_ALPHA     & $7.297354677\times10^{-3}$ & Fine structure constant \\
00332 \tt LAL\_RE\_SI    & $2.81794092\times10^{-15}\,\mathrm{m}$ &
00333         Classical electron radius $r_e$ \\
00334 \tt LAL\_LAMBDAE\_SI & $3.86159323\times10^{-13}\,\mathrm{m}$ &
00335         Electron Compton wavelength $\lambda_e$ \\
00336 \tt LAL\_AB\_SI    & $5.29177249\times10^{-11}\,\mathrm{m}$ & Bohr radius $a$\\
00337 \tt LAL\_MUB\_SI   & $9.27401543\times10^{-24}\,\mathrm{J}\,\mathrm{T}^{-1}$ &
00338         Bohr magneton $\mu_B$ \\
00339 \tt LAL\_MUN\_SI   & $5.05078658\times10^{-27}\,\mathrm{J}\,\mathrm{T}^{-1}$ &
00340         Nuclear magneton $\mu_N$ \\
00341 \hline
00342 \end{tabular}
00343 \end{center}
00344 </lalLaTeX> */
00345 
00346 /** \name Physical constants
00347  * The following are measured fundamental physical constants, with values
00348  * given in Barnet (1996).  When not dimensionless, they are given
00349  * in the SI units shown. */
00350 /*@{*/
00351 #define LAL_G_SI      6.67259e-11    /**< Gravitational constant, N m^2 kg^-2 */
00352 #define LAL_H_SI      6.6260755e-34  /**< Planck constant, J s */
00353 #define LAL_HBAR_SI   1.05457266e-34 /**< Reduced Planck constant, J s */
00354 #define LAL_MPL_SI    2.17671e-8     /**< Planck mass, kg */
00355 #define LAL_LPL_SI    1.61605e-35    /**< Planck length, m */
00356 #define LAL_TPL_SI    5.39056e-44    /**< Planck time, s */
00357 #define LAL_K_SI      1.380658e-23   /**< Boltzmann constant, J K^-1 */
00358 #define LAL_R_SI      8.314511       /**< Ideal gas constant, J K^-1 */
00359 #define LAL_MOL       6.0221367e23   /**< Avogadro constant, dimensionless */
00360 #define LAL_BWIEN_SI  2.897756e-3    /**< Wien displacement law constant, m K */
00361 #define LAL_SIGMA_SI  5.67051e-8  /**< Stefan-Boltzmann constant, W m^-2 K^-4 */
00362 #define LAL_AMU_SI    1.6605402e-27  /**< Atomic mass unit, kg */
00363 #define LAL_MP_SI     1.6726231e-27  /**< Proton mass, kg */
00364 #define LAL_ME_SI     9.1093897e-31  /**< Electron mass, kg */
00365 #define LAL_QE_SI     1.60217733e-19 /**< Electron charge, C */
00366 #define LAL_ALPHA  7.297354677e-3 /**< Fine structure constant, dimensionless */
00367 #define LAL_RE_SI     2.81794092e-15 /**< Classical electron radius, m */
00368 #define LAL_LAMBDAE_SI 3.86159323e-13 /**< Electron Compton wavelength, m */
00369 #define LAL_AB_SI     5.29177249e-11 /**< Bohr radius, m */
00370 #define LAL_MUB_SI    9.27401543e-24 /**< Bohr magneton, J T^-1 */
00371 #define LAL_MUN_SI    5.05078658e-27 /**< Nuclear magneton, J T^-1 */
00372 /*@}*/
00373 
00374 /* <lalLaTeX>
00375 
00376 \subsection*{Astrophysical parameters}
00377 \idx[Constant]{LAL\_REARTH\_SI}
00378 \idx[Constant]{LAL\_AWGS84\_SI}
00379 \idx[Constant]{LAL\_BWGS84\_SI}
00380 \idx[Constant]{LAL\_MEARTH\_SI}
00381 \idx[Constant]{LAL\_IEARTH}
00382 \idx[Constant]{LAL\_EEARTH}
00383 \idx[Constant]{LAL\_RSUN\_SI}
00384 \idx[Constant]{LAL\_MSUN\_SI}
00385 \idx[Constant]{LAL\_MRSUN\_SI}
00386 \idx[Constant]{LAL\_MTSUN\_SI}
00387 \idx[Constant]{LAL\_LSUN\_SI}
00388 \idx[Constant]{LAL\_AU\_SI}
00389 \idx[Constant]{LAL\_PC\_SI}
00390 \idx[Constant]{LAL\_YRTROP\_SI}
00391 \idx[Constant]{LAL\_YRSID\_SI}
00392 \idx[Constant]{LAL\_DAYSID\_SI}
00393 \idx[Constant]{LAL\_LYR\_SI}
00394 \idx[Constant]{LAL\_H0\_SI}
00395 \idx[Constant]{LAL\_H0FAC\_SI}
00396 \idx[Constant]{LAL\_RHOC\_SI}
00397 \idx[Constant]{LAL\_RHOCFAC\_SI}
00398 \idx[Constant]{LAL\_TCBR\_SI}
00399 \idx[Constant]{LAL\_VCBR\_SI}
00400 \idx[Constant]{LAL\_RHOCBR\_SI}
00401 \idx[Constant]{LAL\_NCBR\_SI}
00402 \idx[Constant]{LAL\_SCBR\_SI}
00403 
00404 The following parameters are derived from measured properties of the
00405 Earth and Sun.  The values are taken from~\cite{Barnet:1996}, except
00406 for the obliquity of the ecliptic plane and the eccentricity of
00407 Earth's orbit, which are taken from~\cite{Lang:1992}.  All values are
00408 given in the SI units shown.
00409 
00410 \begin{center}
00411 \begin{tabular}{|lll|}
00412 \hline
00413 Name & Value & Description \\
00414 \hline
00415 \tt LAL\_REARTH\_SI & $6.378140\times10^6\,\mathrm{m}$ &
00416         Earth equatorial radius \\
00417 \tt LAL\_AWGS84\_SI & $6.378137\times10^6\,\mathrm{m}$ &
00418         Semimajor axis of WGS-84 Reference Ellipsoid \\
00419 \tt LAL\_BWGS84\_SI & $6.356752314\times10^6\,\mathrm{m}$ &
00420         Semiminor axis of WGS-84 Reference Ellipsoid \\
00421 \tt LAL\_MEARTH\_SI & $5.97370\times10^{24}\,\mathrm{kg}$ & Earth mass \\
00422 \tt LAL\_IEARTH     & $0.409092804\,\mathrm{rad}$ &
00423         Obliquity of the ecliptic (2000) \\
00424 \tt LAL\_EEARTH     & 0.0167 & Earth orbital eccentricity \\
00425 \tt LAL\_RSUN\_SI   & $6.960\times10^8\,\mathrm{m}$ & Solar equatorial radius\\
00426 \tt LAL\_MSUN\_SI   & $1.98892\times10^{30}\,\mathrm{kg}$ & Solar mass \\
00427 \tt LAL\_MRSUN\_SI  & $1.47662504\times10^3\,\mathrm{m}$ &
00428         Geometrized solar mass (length) \\
00429 \tt LAL\_MTSUN\_SI  & $4.92549095\times10^{-6}\,\mathrm{s}$ &
00430         Geometrized solar mass (time) \\
00431 \tt LAL\_LSUN\_SI   & $3.846\times10^{26}\,\mathrm{W}$ & Solar luminosity \\
00432 \tt LAL\_AU\_SI     & $1.4959787066\times10^{11}\,\mathrm{m}$ &
00433         Astronomical unit \\
00434 \tt LAL\_PC\_SI     & $3.0856775807\times10^{16}\,\mathrm{m}$ & Parsec \\
00435 \tt LAL\_YRTROP\_SI & $31\,556\,925.2\,\mathrm{s}$ & Tropical year (1994) \\
00436 \tt LAL\_YRSID\_SI  & $31\,558\,149.8\,\mathrm{s}$ & Sidereal year (1994) \\
00437 \tt LAL\_DAYSID\_SI & $86\,164.09053\,\mathrm{s}$ & Mean sidereal day \\
00438 \tt LAL\_LYR\_SI    & $9.46052817\times10^{15}\,\mathrm{m}$ &
00439         $c\times$tropical year (1994) \\
00440 \hline
00441 \end{tabular}
00442 \end{center}
00443 
00444 </lalLaTeX> */
00445 
00446 /** \name Astrophysical parameters
00447  * The following parameters are derived from measured properties of the
00448  * Earth and Sun.  The values are taken from Barnet (1996), except
00449  * for the obliquity of the ecliptic plane and the eccentricity of
00450  * Earth's orbit, which are taken from Lang (1992).  All values are
00451  * given in the SI units shown. */
00452 /*@{*/
00453 #define LAL_REARTH_SI 6.378140e6      /**< Earth equatorial radius, m */
00454 #define LAL_AWGS84_SI 6.378137e6      /**< Semimajor axis of WGS-84 Reference Ellipsoid, m */
00455 #define LAL_BWGS84_SI 6.356752314e6   /**< Semiminor axis of WGS-84 Reference Ellipsoid, m */
00456 #define LAL_MEARTH_SI 5.97370e24      /**< Earth mass, kg */
00457 #define LAL_IEARTH    0.409092804     /**< Earth inclination (2000), radians */
00458 #define LAL_EEARTH    0.0167          /**< Earth orbital eccentricity */
00459 #define LAL_RSUN_SI   6.960e8         /**< Solar equatorial radius, m */
00460 #define LAL_MSUN_SI   1.98892e30      /**< Solar mass, kg */
00461 #define LAL_MRSUN_SI  1.47662504e3    /**< Geometrized solar mass, m */
00462 #define LAL_MTSUN_SI  4.92549095e-6   /**< Geometrized solar mass, s */
00463 #define LAL_LSUN_SI   3.846e26        /**< Solar luminosity, W */
00464 #define LAL_AU_SI     1.4959787066e11 /**< Astronomical unit, m */
00465 #define LAL_PC_SI     3.0856775807e16 /**< Parsec, m */
00466 #define LAL_YRTROP_SI 31556925.2      /**< Tropical year (1994), s */
00467 #define LAL_YRSID_SI  31558149.8      /**< Sidereal year (1994), s */
00468 #define LAL_DAYSID_SI 86164.09053     /**< Mean sidereal day, s */
00469 #define LAL_LYR_SI    9.46052817e15   /**< ``Tropical'' lightyear (1994), m */
00470 /*@}*/
00471 
00472 /* <lalLaTeX>
00473 
00474 The following cosmological parameters are derived from measurements of
00475 the Hubble expansion rate and of the cosmic background radiation
00476 (CBR).  Data are taken from~\cite{Barnet:1996}.  In what follows, the
00477 normalized Hubble constant $h_0$ is equal to the actual Hubble
00478 constant $H_0$ divided by $\langle H
00479 \rangle=100\,\mathrm{km}\,\mathrm{s}^{-1}\mathrm{Mpc}^{-1}$.  Thus the
00480 Hubble constant can be written as:
00481 $$
00482 H_0 = \langle H \rangle h_0 \; .
00483 $$
00484 Similarly, the critical energy density $\rho_c$ required for spatial
00485 flatness is given by:
00486 $$
00487 \rho_c = \langle\rho\rangle h_0^2 \; .
00488 $$
00489 Current estimates give $h_0$ a value of around 0.65, which is what is
00490 assumed below.  All values are in the SI units shown.
00491 
00492 \begin{center}
00493 \begin{tabular}{|lll|}
00494 \hline
00495 Name & Value & Description \\
00496 \hline
00497 \tt LAL\_H0\_SI      & $2\times10^{-18}\,\mathrm{s}^{-1}$ &
00498         Approx.\ Hubble constant $H_0$ \\
00499 \tt LAL\_H0FAC\_SI   & $3.2407792903\times10^{-18}\,\mathrm{s}^{-1}$ &
00500         $H_0/h_0$ \\
00501 \tt LAL\_RHOC\_SI    & $7\times10^{-10}\,\mathrm{J}\,\mathrm{m}^{-3}$ &
00502         Approx.\ critical energy density $\rho_c$ \\
00503 \tt LAL\_RHOCFAC\_SI & $1.68860\times10^{-9}\,\mathrm{J}\,\mathrm{m}^{-3}$ &
00504         $\rho_c/h_0^2$ \\
00505 \tt LAL\_TCBR\_SI    & $2.726 \mathrm{K}$ &
00506         CBR temperature \\
00507 \tt LAL\_VCBR\_SI    & $3.695\times10^5\,\mathrm{m}\,\mathrm{s}^{-1}$ &
00508         Solar velocity with respect to CBR \\
00509 \tt LAL\_RHOCBR\_SI  & $4.177\times10^{-14}\,\mathrm{J}\,\mathrm{m}^{-3}$ &
00510         Energy density of CBR \\
00511 \tt LAL\_NCBR\_SI    & $4.109\times10^8\,\mathrm{m}^{-3}$ &
00512         Number density of CBR photons \\
00513 \tt LAL\_SCBR\_SI    & $3.993\times10^{-14}\,\mathrm{J}\,\mathrm{K}^{-1}
00514         \mathrm{m}^{-3}$ & Entropy density of CBR \\
00515 \hline
00516 \end{tabular}
00517 \end{center}
00518 
00519 </lalLaTeX> */
00520 
00521 /** \name Cosmological parameters
00522  * The following cosmological parameters are derived from measurements of
00523  * the Hubble expansion rate and of the cosmic background radiation
00524  * (CBR).  Data are taken from Barnet (1996).  In what follows, the
00525  * normalized Hubble constant \f$h_0\f$ is equal to the actual Hubble
00526  * constant \f$H_0\f$ divided by \f$\langle H
00527  * \rangle=100\,\mathrm{km}\,\mathrm{s}^{-1}\mathrm{Mpc}^{-1}\f$.  Thus the
00528  * Hubble constant can be written as:
00529  * \f$H_0 = \langle H \rangle h_0\f$.
00530  * Similarly, the critical energy density \f$\rho_c\f$ required for spatial
00531  * flatness is given by: \f$\rho_c = \langle\rho\rangle h_0^2\f$.
00532  * Current estimates give \f$h_0\f$ a value of around 0.65, which is what is
00533  * assumed below.  All values are in the SI units shown. */
00534 /*@{*/
00535 #define LAL_H0FAC_SI  3.2407792903e-18 /**< Hubble constant prefactor, s^-1 */
00536 #define LAL_H0_SI     2e-18            /**< Approximate Hubble constant, s^-1 */
00537 /* Hubble constant H0 = h0*HOFAC, where h0 is around 0.65 */
00538 #define LAL_RHOCFAC_SI 1.68860e-9   /**< Critical density prefactor, J m^-3 */
00539 #define LAL_RHOC_SI   7e-10         /**< Approximate critical density, J m^-3 */
00540 /* Critical density RHOC = h0*h0*RHOCFAC, where h0 is around 0.65 */
00541 #define LAL_TCBR_SI   2.726   /**< Cosmic background radiation temperature, K */
00542 #define LAL_VCBR_SI   3.695e5 /**< Solar velocity with respect to CBR, m s^-1 */
00543 #define LAL_RHOCBR_SI 4.177e-14 /**< Energy density of CBR, J m^-3 */
00544 #define LAL_NCBR_SI   4.109e8   /**< Number density of CBR photons, m^-3 */
00545 #define LAL_SCBR_SI   3.993e-14 /**< Entropy density of CBR, J K^-1 m^-3 */
00546 /*@}*/
00547 
00548 
00549 /* <lalLaTeX>
00550 
00551 \vfill{\footnotesize\input{LALConstantsHV}}
00552 
00553 </lalLaTeX> */
00554 
00555 #ifdef  __cplusplus
00556 }
00557 #endif
00558 
00559 #endif /* _LALCONSTANTS_H */

Generated on Thu Aug 28 03:12:26 2008 for LAL by  doxygen 1.5.2