aqhdPhysicoMath.h

00001 // copyright by benedikt oswald, all rights reserved, 2002-2006.
00002 // project - aqhdes2002
00003 // file id - aqhd27001
00004 // what - aqhdes_physicomath.h
00005 // objective - define physical and mathematical constants
00006 // creation - 1998 aug 3 ~ 00:00:00 benedikt oswald
00007 // modified - 2002 jul 4 ~ 18:11:00 benedikt oswald
00008 // modified - 2002 jul 9 ~ 09:54:00 benedikt oswald
00009 // required software - none
00010 // feature - defines ofter used physical and mathematical constants once and for all in the complete project
00011 
00012 #ifndef AQ_PHYSICO_MATH_H
00013 #define AQ_PHYSICO_MATH_H
00014 
00015 #ifndef PI
00016 #define PI                                         3.1415926535
00017 #endif
00018 
00019 #define HALF_PI                                    PI / 2.0
00020 
00021 #define EPSILON_ZERO                               8.85418782e-12
00022 #define MU_ZERO                                    4.0 * PI * 1.0e-7
00023 #define SPEED_OF_LIGHT                             ( 1.0 / ( sqrt ( EPSILON_ZERO * MU_ZERO ) ) )
00024 #define SPEED_OF_LIGHT_MM                          1000.0 * SPEED_OF_LIGHT
00025 
00026 #define ER_AIR                                     1.0
00027 #define MR_AIR                                     1.0
00028 #define SIGMA_AIR                                  0.0
00029 
00030 #define UNITY_FLOAT                                1.0
00031 #define UNITY_DOUBLE                               1.0
00032 #define UNITY_INTEGER                              1
00033 
00034 #define ONE_HALF                                   0.5  
00035 
00036 #define ZERO_INTEGER                               0
00037 #define ZERO_FLOAT                                 0.0
00038 #define ZERO_DOUBLE                                0.0
00039 
00040 #define TWO_INTEGER                                2
00041 #define TWO_FLOAT                                  2.0
00042 #define TWO_DOUBLE                                 2.0
00043 
00044 #define THREE_INTEGER                              3
00045 #define THREE_FLOAT                                3.0
00046 #define THREE_DOBLE                                3.0
00047 
00048 #define SQUARE_EXPONENT                            2.0
00049 
00050 
00051 
00052 #define STANDARD_50_OHM                            50.0
00053 #define ONE_GIGA_HERTZ                             1.0e9
00054 
00055 #define ZW_VACUUM                                  sqrt(MU_ZERO/EPSILON_ZERO)
00056 #define YC_VACUUM                                  sqrt(EPSILON_ZERO/MU_ZERO)
00057 
00058 #define FIRST_COMP                                 0
00059 #define SECOND_COMP                                1
00060 #define THIRD_COMP                                 2
00061 
00062 #define GAUSS_LEGNDR_QUAD_NW5                      5
00063 
00064 #endif // AQ_PHYSICO_MATH_H

Generated on Fri Oct 26 14:04:29 2007 for acheron3d by  doxygen 1.4.7