|
CLUMPY
Version 2011.09_corr2
|
00001 #ifndef _CLUMPY_INLINES_H_ 00002 #define _CLUMPY_INLINES_H_ 00003 00004 #define GEV_CM3_to_MSOL_KPC3 (2.6339535e+07) //!< Conversion \f$GeV\,\,cm^{-3}\f$ to \f$M_{\odot}\,\,kpc^{-3}\f$ 00005 #define CM_to_KPC (3.2407793e-22) //!< Conversion \f$cm\f$ to \f$kpc\f$ 00006 #define PI (3.14159265358979312) //!< What do you think it is? 00007 #define MY_SIN(x) ((fabs(x)==PI) ? 0. : sin(x)) //!< Ensures sin(x)=0 for x=PI 00008 #define MY_TAN(x) ((fabs(x)==PI) ? 0. : tan(x)) //!< Ensures tan(x)=0 for x=PI 00009 #define MY_COS(x) ((fabs(x)==PI/2.||fabs(x)==3.*PI/2.)?0.:cos(x)) //!< Ensures cos(x)=0 for x=PI/2 or x=3PI/2 00010 00011 #endif 00012