NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links

lsconstants.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of Healpix_cxx.
00003  *
00004  *  Healpix_cxx 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  *  Healpix_cxx 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 Healpix_cxx; if not, write to the Free Software
00016  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017  *
00018  *  For more information about HEALPix, see http://healpix.jpl.nasa.gov
00019  */
00020 
00021 /*
00022  *  Healpix_cxx is being developed at the Max-Planck-Institut fuer Astrophysik
00023  *  and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
00024  *  (DLR).
00025  */
00026 
00027 /*! \file lsconstants.h
00028  *  Mathematical, physical and technical constants for LevelS.
00029  */
00030 
00031 #ifndef PLANCK_CONSTANTS_H
00032 #define PLANCK_CONSTANTS_H
00033 
00034 #include <cmath>
00035 
00036 /*! \defgroup mathconstgroup Mathematical constants */
00037 /*! \{ */
00038 
00039 const double pi=3.141592653589793238462643383279502884197;
00040 const double twopi=6.283185307179586476925286766559005768394;
00041 const double inv_twopi=1.0/twopi;
00042 const double fourpi=12.56637061435917295385057353311801153679;
00043 const double halfpi=1.570796326794896619231321691639751442099;
00044 const double inv_halfpi=0.6366197723675813430755350534900574;
00045 const double inv_sqrt4pi = 0.2820947917738781434740397257803862929220;
00046 
00047 const double ln2 = 0.6931471805599453094172321214581766;
00048 const double inv_ln2 = 1.4426950408889634073599246810018921;
00049 const double ln10 = 2.3025850929940456840179914546843642;
00050 
00051 const double onethird=1.0/3.0;
00052 const double twothird=2.0/3.0;
00053 const double fourthird=4.0/3.0;
00054 
00055 const double degr2rad=pi/180.0;
00056 const double rad2degr=180.0/pi;
00057 
00058 //! Ratio between FWHM and sigma of a Gauss curve (\f$\sqrt{8\ln2}\f$).
00059 const double sigma2fwhm=2.3548200450309493; // sqrt(8*log(2.))
00060 const double fwhm2sigma=1/sigma2fwhm;
00061 
00062 /*! \} */
00063 
00064 /*! \defgroup physconstgroup Physical constants */
00065 /*! \{ */
00066 
00067 const double Jansky2SI=1.0e-26;
00068 const double SI2Jansky=1.0e+26;
00069 
00070 //! Light speed in m/s.
00071 const double speedOfLight=2.99792458e8;
00072 
00073 //! Boltzmann's constant in J/K
00074 const double kBoltzmann=1.380658e-23;
00075 
00076 //! Stefan-Boltzmann constant in W/m^2/K^4
00077 const double sigmaStefanBoltzmann=5.67051e-8;
00078 
00079 //! Planck's constant in J s
00080 const double hPlanck=6.6260755e-34;
00081 
00082 //! Astronomical unit in m
00083 const double astronomicalUnit=1.49597893e11;
00084 
00085 //! Solar constant in W/m^2
00086 const double solarConstant=1368.0;
00087 
00088 //! Tropical year in s
00089 const double tropicalYear=3.15569259747e7;
00090 
00091 //! Average CMB temperature in K
00092 const double tcmb = 2.726;
00093 
00094 //! Colatitude of the solar system motion relative to CMB
00095 //! (ecliptical coordinates).
00096 const double solsysdir_ecl_theta = 1.7678013480275747;
00097 
00098 //! Longitude of the solar system motion relative to CMB
00099 //! (ecliptical coordinates).
00100 const double solsysdir_ecl_phi = 3.0039153062803194;
00101 
00102 //! Speed of the solar system motion relative to CMB in m/s.
00103 const double solsysspeed = 371000.0;
00104 
00105 /*! \} */
00106 
00107 // technical constants
00108 
00109 //! Healpix value representing "undefined"
00110 const double Healpix_undef=-1.6375e30;
00111 
00112 #endif

Generated on Fri Jun 18 16:12:29 2010 for LevelS C++ support library
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650