00001 #ifndef AIRY_H 00002 #define AIRY_H 00003 00004 00005 // ---------------------------------------------------------------------- 00006 // 00007 // Bridge object between C++ code and the GSL Airy functions 00008 // 00009 // ---------------------------------------------------------------------- 00010 00011 #ifndef ZMENVIRONMENT_H 00012 #include "ZMutility/ZMenvironment.h" 00013 #endif 00014 #include <utility> 00015 00016 ZM_BEGIN_NAMESPACE( zmsf ) /* namespace zmsf { */ 00017 00018 typedef std::pair<double,double> Dpair; 00019 00097 00098 struct Airy { 00099 00101 static double AiryAi( const double x ); 00102 00104 static Dpair AiryAiErr( const double x ); 00105 00107 static double AiryBi( const double x ); 00108 00110 static Dpair AiryBiErr( const double x ); 00111 00113 static double AiryAiScaled( const double x ); 00114 00116 static Dpair AiryAiScaledErr( const double x ); 00117 00119 static double AiryBiScaled( const double x ); 00120 00122 static Dpair AiryBiScaledErr( const double x ); 00123 00125 static double AiryAiPrime( const double x ); 00126 00128 static Dpair AiryAiPrimeErr( const double x ); 00129 00131 static double AiryBiPrime( const double x ); 00132 00134 static Dpair AiryBiPrimeErr( const double x ); 00135 00137 static double AiryAiPrimeScaled( const double x ); 00138 00141 static Dpair AiryAiPrimeScaledErr( const double x ); 00142 00144 static double AiryBiPrimeScaled( const double x ); 00145 00147 static Dpair AiryBiPrimeScaledErr( const double x ); 00148 00150 static double AiryAiZero( const int n ); 00151 00153 static Dpair AiryAiZeroErr( const int n ); 00154 00156 static double AiryBiZero( const int n ); 00157 00159 static Dpair AiryBiZeroErr( const int n ); 00160 00162 static double AiryAiPrimeZero( const int n ); 00163 00165 static Dpair AiryAiPrimeZeroErr( const int n ); 00166 00168 static double AiryBiPrimeZero( const int n ); 00169 00171 static Dpair AiryBiPrimeZeroErr( const int n ); 00172 00173 }; // Airy 00174 00175 ZM_END_NAMESPACE( zmsf ) /* } // namespace zmsf */ 00176 00177 #endif /* AIRY_H */
1.3.4