17 inline double pi() {
return 3.1415926535897931160E0;}
18 inline double two_pi() {
return 6.2831853071795862320E0;}
19 inline double half_pi() {
return 1.5707963267948965580E0;}
22 static const double s_v =
pi()/180.0;
26 static const double s_v = 180.0/
pi();
35 if(a_x!=n*
half_pi())
return true;
36 return (2*
int(n/2)==n?
true:
false);
39 if((a_x<-1)||(1<a_x))
return false;
60 inline double dcos(
const double& a_x) {return ::cos(a_x);}
61 inline double dsin(
const double& a_x) {return ::sin(a_x);}
62 inline double dpow(
const double& a_x,
const double& a_y) {return ::pow(a_x,a_y);}
63 inline double dcosh(
const double& a_x) {return ::cosh(a_x);}
64 inline double dsinh(
const double& a_x) {return ::sinh(a_x);}
66 inline double dconj(
const double& a_x) {
return a_x;}
67 inline double dfabs(
const double& a_x) {return ::fabs(a_x);}
68 inline double dsqrt(
const double& a_x) {return ::sqrt(a_x);}
72 inline long double ldfabs(
const long double& a_x) {return ::fabsl(a_x);}
75 inline bool dpow(
const double& a_x,
const double& a_y,
double& a_v) {
76 if((a_x==0)&&(a_y<0)) {
84 inline double dgaussian(
const double& a_x,
const double& a_mean,
const double& a_sigma) {
85 double _tmp = (a_x-a_mean)/a_sigma;
86 return ::exp(-_tmp*_tmp/2.0)/(a_sigma*::sqrt(2*
pi()));