40 static bool isEven(
int integer )
48 static bool isOdd(
int integer )
57 static int cint(
real x)
61 return static_cast<int> (
floor(
x)+1);
63 return static_cast<int> (
floor(
x));
71 fct.SetExpr(
"V*(((-(x2-Cy)^2.0+(Hy/2.0)^2.0)/(Hy/2.0)^2.0)*((-(x3-Cz)^2.0+(Hz/2.0)^2.0)/(Hz/2.0)^2.0))" );
72 fct.DefineConst(
"Cy",
Cy);
73 fct.DefineConst(
"Hy",
Hy);
74 fct.DefineConst(
"Cz",
Cz);
75 fct.DefineConst(
"Hz",
Hz);
76 fct.DefineConst(
"V" ,
V );
83 fct.SetExpr(
"V*(((-(x1-Cx)^2.0+(Hx/2.0)^2.0)/(Hx/2.0)^2.0)*((-(x3-Cz)^2.0+(Hz/2.0)^2.0)/(Hz/2.0)^2.0))" );
84 fct.DefineConst(
"Cx",
Cx);
85 fct.DefineConst(
"Hx",
Hx);
86 fct.DefineConst(
"Cz",
Cz);
87 fct.DefineConst(
"Hz",
Hz);
88 fct.DefineConst(
"V" ,
V );
95 fct.SetExpr(
"V*(((-(x1-Cx)^2.0+(Hx/2.0)^2.0)/(Hx/2.0)^2.0)*((-(x2-Cy)^2.0+(Hy/2.0)^2.0)/(Hy/2.0)^2.0))" );
96 fct.DefineConst(
"Cx",
Cx);
97 fct.DefineConst(
"Hx",
Hx);
98 fct.DefineConst(
"Cy",
Cy);
99 fct.DefineConst(
"Hy",
Hy);
100 fct.DefineConst(
"V" ,
V );
104 static unsigned int RSHash(
const std::string&
str)
106 unsigned int b = 378551;
107 unsigned int a = 63689;
108 unsigned int hash = 0;
110 for(std::size_t
i = 0;
i <
str.length();
i++)
std::shared_ptr< T > SPtr