00001 #ifdef CH_LANG_CC
00002
00003
00004
00005
00006
00007
00008
00009 #endif
00010
00011 #ifndef _CONSTANTS_H_
00012 #define _CONSTANTS_H_
00013 #include "BaseNamespaceHeader.H"
00014
00015 #if defined(CH_USE_FLOAT) && !defined(CH_LANG_CC)
00016 #define zero (0.0e0)
00017 #endif
00018 #if defined(CH_USE_FLOAT) || defined(CH_LANG_CC)
00019
00020 #define one (1.0e0)
00021 #define two (2.0e0)
00022 #define three (3.0e0)
00023 #define four (4.0e0)
00024 #define five (5.0e0)
00025 #define six (6.0e0)
00026 #define seven (7.0e0)
00027 #define eight (8.0e0)
00028 #define nine (9.0e0)
00029 #define ten (10.0e0)
00030 #define twelve (12.0e0)
00031 #define fifteen (15.0e0)
00032 #define sixteen (16.0e0)
00033 #define twenty (20.0e0)
00034 #define thirty (30.0e0)
00035 #define tenth (0.100e0)
00036 #define eighth (0.125e0)
00037 #define sixth (1.000e0 / 6.000e0)
00038 #define twelfth (1.000e0 / 12.000e0)
00039 #define thirtieth (1.000e0 / 30.000e0)
00040 #define fourth (0.250e0)
00041 #define third (1.000e0 / 3.000e0)
00042 #define half (0.500e0)
00043 #define two3rd (2.000e0 / 3.000e0)
00044 #define Pi (3.14159265358979323846264338327950288e0)
00045
00046 #define ZERO (0.0E0)
00047 #define ONE (1.0E0)
00048 #define TWO (2.0E0)
00049 #define THREE (3.0E0)
00050 #define FOUR (4.0E0)
00051 #define FIVE (5.0E0)
00052 #define SIX (6.0E0)
00053 #define SEVEN (7.0E0)
00054 #define EIGHT (8.0E0)
00055 #define NINE (9.0E0)
00056 #define TEN (10.0E0)
00057 #define TWELVE (12.0E0)
00058 #define FIFTEEN (15.0E0)
00059 #define SIXTEEN (16.0E0)
00060 #define TWENTY (20.0E0)
00061 #define THIRTY (30.0E0)
00062 #define TENTH (0.100E0)
00063 #define EIGHTH (0.125E0)
00064 #define SIXTH (1.000E0 / 6.000E0)
00065 #define TWELFTH (1.000E0 / 12.000E0)
00066 #define THIRTIETH (1.000E0 / 30.000E0)
00067 #define FOURTH (0.250E0)
00068 #define THIRD (1.000E0 / 3.000E0)
00069 #define HALF (0.500E0)
00070 #define TWO3RD (2.000E0 / 3.000E0)
00071 #define PI (3.14159265358979323846264338327950288E0)
00072
00073 #elif defined(CH_USE_DOUBLE) && !defined(CH_LANG_CC)
00074
00075 #define zero (0.0d0)
00076 #define one (1.0d0)
00077 #define two (2.0d0)
00078 #define three (3.0d0)
00079 #define four (4.0d0)
00080 #define five (5.0d0)
00081 #define six (6.0d0)
00082 #define seven (7.0d0)
00083 #define eight (8.0d0)
00084 #define nine (9.0d0)
00085 #define ten (10.0d0)
00086 #define twelve (12.0d0)
00087 #define fifteen (15.0d0)
00088 #define sixteen (16.0d0)
00089 #define twenty (20.0d0)
00090 #define thirty (30.0d0)
00091 #define tenth (0.100d0)
00092 #define eighth (0.125d0)
00093 #define sixth (1.000d0 / 6.000d0)
00094 #define twelfth (1.000d0 / 12.000d0)
00095 #define thirtieth (1.000d0 / 30.000d0)
00096 #define fourth (0.250d0)
00097 #define third (1.000d0 / 3.000d0)
00098 #define half (0.500d0)
00099 #define two3rd (2.000d0 / 3.000d0)
00100 #define Pi (3.14159265358979323846264338327950288d0)
00101
00102 #define ZERO (0.0D0)
00103 #define ONE (1.0D0)
00104 #define TWO (2.0D0)
00105 #define THREE (3.0D0)
00106 #define FOUR (4.0D0)
00107 #define FIVE (5.0D0)
00108 #define SIX (6.0D0)
00109 #define SEVEN (7.0D0)
00110 #define EIGHT (8.0D0)
00111 #define NINE (9.0D0)
00112 #define TEN (10.0D0)
00113 #define TWELVE (12.0D0)
00114 #define FIFTEEN (15.0D0)
00115 #define SIXTEEN (16.0D0)
00116 #define TWENTY (20.0D0)
00117 #define THIRTY (30.0D0)
00118 #define TENTH (0.100D0)
00119 #define EIGHTH (0.125D0)
00120 #define SIXTH (1.000D0 / 6.000D0)
00121 #define TWELFTH (1.000D0 / 12.000D0)
00122 #define THIRTIETH (1.000D0 / 30.000D0)
00123 #define FOURTH (0.250D0)
00124 #define THIRD (1.000D0 / 3.000D0)
00125 #define HALF (0.500D0)
00126 #define TWO3RD (2.000D0 / 3.000D0)
00127 #define PI (3.14159265358979323846264338327950288D0)
00128
00129 #else
00130
00131 #error One of CH_USE_(FLOAT,DOUBLE) must be defined
00132
00133 #endif
00134
00135 #include "BaseNamespaceFooter.H"
00136 #endif