46 G4Pow* G4Pow::fpInstance = 0;
54 fpInstance =
new G4Pow;
62 : onethird(1.0/3.0), minA(0.5000001), maxA(255.5)
64 const G4int maxZ = 512;
65 const G4int maxZfact = 170;
67 pz13.resize(maxZ,0.0);
69 fact.resize(maxZfact,0.0);
70 logfact.resize(maxZ,0.0);
76 for(
G4int i=1; i<maxZ; ++i)
79 pz13[i] = std::pow(x,onethird);
95 delete fpInstance; fpInstance = 0;
102 if(std::abs(n) > 8) {
return std::pow(x,
G4double(n)); }
104 if(n >= 0) {
for(
G4int i=0; i<
n; ++i) { res *=
x; } }
105 else if((n < 0) && (x != 0.0))
109 for(
G4int i=0; i<
nn; ++i) { res *=
y; }