lsconstants.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of libcxxsupport.
00003  *
00004  *  libcxxsupport 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  *  libcxxsupport 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 libcxxsupport; if not, write to the Free Software
00016  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017  */
00018 
00019 /*
00020  *  libcxxsupport is being developed at the Max-Planck-Institut fuer Astrophysik
00021  *  and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
00022  *  (DLR).
00023  */
00024 
00025 /*! \file lsconstants.h
00026  *  Mathematical, physical and technical constants for LevelS.
00027  */
00028 
00029 #ifndef PLANCK_CONSTANTS_H
00030 #define PLANCK_CONSTANTS_H
00031 
00032 /*! \defgroup mathconstgroup Mathematical constants */
00033 /*! \{ */
00034 
00035 const double pi=3.141592653589793238462643383279502884197;
00036 const double twopi=6.283185307179586476925286766559005768394;
00037 const double inv_twopi=1.0/twopi;
00038 const double fourpi=12.56637061435917295385057353311801153679;
00039 const double halfpi=1.570796326794896619231321691639751442099;
00040 const double inv_halfpi=0.6366197723675813430755350534900574;
00041 const double inv_sqrt4pi = 0.2820947917738781434740397257803862929220;
00042 
00043 const double ln2 = 0.6931471805599453094172321214581766;
00044 const double inv_ln2 = 1.4426950408889634073599246810018921;
00045 const double ln10 = 2.3025850929940456840179914546843642;
00046 
00047 const double onethird=1.0/3.0;
00048 const double twothird=2.0/3.0;
00049 const double fourthird=4.0/3.0;
00050 
00051 const double degr2rad=pi/180.0;
00052 const double arcmin2rad=degr2rad/60;
00053 const double rad2degr=180.0/pi;
00054 
00055 //! Ratio between FWHM and sigma of a Gauss curve (\f$\sqrt{8\ln2}\f$).
00056 const double sigma2fwhm=2.3548200450309493; // sqrt(8*log(2.))
00057 const double fwhm2sigma=1/sigma2fwhm;
00058 
00059 /*! \} */
00060 
00061 /*! \defgroup physconstgroup Physical constants */
00062 /*! \{ */
00063 
00064 const double Jansky2SI=1.0e-26;
00065 const double SI2Jansky=1.0e+26;
00066 
00067 //! Light speed in m/s (CODATA 2006)
00068 const double speedOfLight=2.99792458e8;
00069 
00070 //! Boltzmann's constant in J/K (CODATA 2006)
00071 const double kBoltzmann=1.3806504e-23;
00072 
00073 //! Stefan-Boltzmann constant in W/m^2/K^4 (CODATA 2006)
00074 const double sigmaStefanBoltzmann=5.6704e-8;
00075 
00076 //! Planck's constant in J s (CODATA 2006)
00077 const double hPlanck=6.62606896e-34;
00078 
00079 //! Astronomical unit in m
00080 const double astronomicalUnit=1.49597870691e11;
00081 
00082 //! Solar constant in W/m^2
00083 const double solarConstant=1368.0;
00084 
00085 //! Average CMB temperature in K (Fixsen, ApJ 709 (2009), arXiv:0911.1955)
00086 const double tcmb = 2.72548;
00087 
00088 //! offset (in seconds) between Jan 1, 1958 and Jan 1, 1970
00089 const double sec_58_70 = 378691200.;
00090 
00091 /*! \} */
00092 
00093 #endif

Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library