46 result = 0.5*(y2+
y1)*(x2-x1);
50 if(x1==0) result =
y1;
51 else if(x2==0) result =
y2;
56 result = (a-
b)*(x2-x1) + b*(x2*
G4Log(x2)-x1*
G4Log(x1));
71 result = (x2-
x1)*(y2-y1)/
G4Log(y2/y1);
80 if(x1==0) result =
y1;
81 else if(x2==0) result =
y2;
82 else if(y1==0||y2==0) result =0;
92 throw G4HadronicException(__FILE__, __LINE__,
"Unknown interpolation scheme in G4ParticleHPVector::Integrate");
103 result = 0.5*y1*(x2*x2-x1*
x1);
112 result = (y1*x2 - y2*
x1)*(x2 + x1)/2. + (y2-
y1)*(x2*x2 + x2*x1 + x1*x1)/3.;
116 if(x1==0) result =
y1;
117 else if(x2==0) result =
y2;
122 result = ( x2*x2/2. * (a-b/2.+b*
G4Log(x2)) )
123 -( x1*x1/2. * (a-b/2.+b*
G4Log(x1)) );
128 if(y1==0||y2==0) result = 0;
138 if(x1==0) result =
y1;
139 else if(x2==0) result =
y2;
140 else if(y1==0||y2==0) result = 0;
150 throw G4HadronicException(__FILE__, __LINE__,
"Unknown interpolation scheme in G4ParticleHPVector::Integrate");