33 double h, t, y, s, a, alfa, b0, b1, b2;
43 a = -
PI3 +
HF * ( std::pow( log( -t ), 2 ) -
44 std::pow( log( 1. + 1. / t ), 2 ) );
45 }
else if ( t < -1. ) {
49 a = -
PI6 + a * ( a + log( 1. + 1. / t ) );
50 }
else if ( t <= -
HF ) {
54 a = -
PI6 + a * ( -
HF * a + log( 1. + t ) );
58 a =
HF * std::pow( log( 1. + t ), 2 );
59 }
else if ( t <= 1. ) {
66 a =
PI6 +
HF * std::pow( log( t ), 2 );
73 for (
int i = 19; i >= 0; --i ) {
74 b0 =
C[i] + alfa * b1 - b2;
79 h = -( s * ( b0 - h * b2 ) + a );