00001 #ifndef INTEGERPOWERS_H
00002 #define INTEGERPOWERS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ZMENVIRONMENT_H
00012 #include "ZMutility/ZMenvironment.h"
00013 #endif
00014 #include <utility>
00015
00016 ZM_BEGIN_NAMESPACE( zmsf )
00017
00018 typedef std::pair<double,double> Dpair;
00019
00024
00025 struct IntegerPowers {
00026
00028 static double Pow2( const double x );
00029
00031 static double Pow3( const double x );
00032
00034 static double Pow4( const double x );
00035
00037 static double Pow5( const double x );
00038
00040 static double Pow6( const double x );
00041
00043 static double Pow7( const double x );
00044
00046 static double Pow8( const double x );
00047
00049 static double Pow9( const double x );
00050
00052 static double PowN( const double x, const int n );
00053
00055 static Dpair PowNErr( const double x, const int n );
00056
00057 };
00058
00059 ZM_END_NAMESPACE( zmsf )
00060
00061 #endif