
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)) (t_2 (+ t_1 0.5)))
(*
(/ PI (sin (* PI z)))
(*
(* (* (sqrt (* PI 2.0)) (pow t_2 (+ t_0 0.5))) (exp (- t_2)))
(+
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (+ t_0 1.0)))
(/ -1259.1392167224028 (+ t_0 2.0)))
(/ 771.3234287776531 (+ t_0 3.0)))
(/ -176.6150291621406 (+ t_0 4.0)))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = t_0 + 7.0;
double t_2 = t_1 + 0.5;
return (((double) M_PI) / sin((((double) M_PI) * z))) * (((sqrt((((double) M_PI) * 2.0)) * pow(t_2, (t_0 + 0.5))) * exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
public static double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = t_0 + 7.0;
double t_2 = t_1 + 0.5;
return (Math.PI / Math.sin((Math.PI * z))) * (((Math.sqrt((Math.PI * 2.0)) * Math.pow(t_2, (t_0 + 0.5))) * Math.exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
def code(z): t_0 = (1.0 - z) - 1.0 t_1 = t_0 + 7.0 t_2 = t_1 + 0.5 return (math.pi / math.sin((math.pi * z))) * (((math.sqrt((math.pi * 2.0)) * math.pow(t_2, (t_0 + 0.5))) * math.exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0))))
function code(z) t_0 = Float64(Float64(1.0 - z) - 1.0) t_1 = Float64(t_0 + 7.0) t_2 = Float64(t_1 + 0.5) return Float64(Float64(pi / sin(Float64(pi * z))) * Float64(Float64(Float64(sqrt(Float64(pi * 2.0)) * (t_2 ^ Float64(t_0 + 0.5))) * exp(Float64(-t_2))) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(0.9999999999998099 + Float64(676.5203681218851 / Float64(t_0 + 1.0))) + Float64(-1259.1392167224028 / Float64(t_0 + 2.0))) + Float64(771.3234287776531 / Float64(t_0 + 3.0))) + Float64(-176.6150291621406 / Float64(t_0 + 4.0))) + Float64(12.507343278686905 / Float64(t_0 + 5.0))) + Float64(-0.13857109526572012 / Float64(t_0 + 6.0))) + Float64(9.984369578019572e-6 / t_1)) + Float64(1.5056327351493116e-7 / Float64(t_0 + 8.0))))) end
function tmp = code(z) t_0 = (1.0 - z) - 1.0; t_1 = t_0 + 7.0; t_2 = t_1 + 0.5; tmp = (pi / sin((pi * z))) * (((sqrt((pi * 2.0)) * (t_2 ^ (t_0 + 0.5))) * exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0)))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 + 7.0), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + 0.5), $MachinePrecision]}, N[(N[(Pi / N[Sin[N[(Pi * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Sqrt[N[(Pi * 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[t$95$2, N[(t$95$0 + 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Exp[(-t$95$2)], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(0.9999999999998099 + N[(676.5203681218851 / N[(t$95$0 + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1259.1392167224028 / N[(t$95$0 + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(771.3234287776531 / N[(t$95$0 + 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-176.6150291621406 / N[(t$95$0 + 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(12.507343278686905 / N[(t$95$0 + 5.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.13857109526572012 / N[(t$95$0 + 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(9.984369578019572e-6 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(1.5056327351493116e-7 / N[(t$95$0 + 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
t_2 := t\_1 + 0.5\\
\frac{\pi}{\sin \left(\pi \cdot z\right)} \cdot \left(\left(\left(\sqrt{\pi \cdot 2} \cdot {t\_2}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_2}\right) \cdot \left(\left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{t\_0 + 1}\right) + \frac{-1259.1392167224028}{t\_0 + 2}\right) + \frac{771.3234287776531}{t\_0 + 3}\right) + \frac{-176.6150291621406}{t\_0 + 4}\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)) (t_2 (+ t_1 0.5)))
(*
(/ PI (sin (* PI z)))
(*
(* (* (sqrt (* PI 2.0)) (pow t_2 (+ t_0 0.5))) (exp (- t_2)))
(+
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (+ t_0 1.0)))
(/ -1259.1392167224028 (+ t_0 2.0)))
(/ 771.3234287776531 (+ t_0 3.0)))
(/ -176.6150291621406 (+ t_0 4.0)))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = t_0 + 7.0;
double t_2 = t_1 + 0.5;
return (((double) M_PI) / sin((((double) M_PI) * z))) * (((sqrt((((double) M_PI) * 2.0)) * pow(t_2, (t_0 + 0.5))) * exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
public static double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = t_0 + 7.0;
double t_2 = t_1 + 0.5;
return (Math.PI / Math.sin((Math.PI * z))) * (((Math.sqrt((Math.PI * 2.0)) * Math.pow(t_2, (t_0 + 0.5))) * Math.exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
def code(z): t_0 = (1.0 - z) - 1.0 t_1 = t_0 + 7.0 t_2 = t_1 + 0.5 return (math.pi / math.sin((math.pi * z))) * (((math.sqrt((math.pi * 2.0)) * math.pow(t_2, (t_0 + 0.5))) * math.exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0))))
function code(z) t_0 = Float64(Float64(1.0 - z) - 1.0) t_1 = Float64(t_0 + 7.0) t_2 = Float64(t_1 + 0.5) return Float64(Float64(pi / sin(Float64(pi * z))) * Float64(Float64(Float64(sqrt(Float64(pi * 2.0)) * (t_2 ^ Float64(t_0 + 0.5))) * exp(Float64(-t_2))) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(0.9999999999998099 + Float64(676.5203681218851 / Float64(t_0 + 1.0))) + Float64(-1259.1392167224028 / Float64(t_0 + 2.0))) + Float64(771.3234287776531 / Float64(t_0 + 3.0))) + Float64(-176.6150291621406 / Float64(t_0 + 4.0))) + Float64(12.507343278686905 / Float64(t_0 + 5.0))) + Float64(-0.13857109526572012 / Float64(t_0 + 6.0))) + Float64(9.984369578019572e-6 / t_1)) + Float64(1.5056327351493116e-7 / Float64(t_0 + 8.0))))) end
function tmp = code(z) t_0 = (1.0 - z) - 1.0; t_1 = t_0 + 7.0; t_2 = t_1 + 0.5; tmp = (pi / sin((pi * z))) * (((sqrt((pi * 2.0)) * (t_2 ^ (t_0 + 0.5))) * exp(-t_2)) * ((((((((0.9999999999998099 + (676.5203681218851 / (t_0 + 1.0))) + (-1259.1392167224028 / (t_0 + 2.0))) + (771.3234287776531 / (t_0 + 3.0))) + (-176.6150291621406 / (t_0 + 4.0))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / t_1)) + (1.5056327351493116e-7 / (t_0 + 8.0)))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 + 7.0), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + 0.5), $MachinePrecision]}, N[(N[(Pi / N[Sin[N[(Pi * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Sqrt[N[(Pi * 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[t$95$2, N[(t$95$0 + 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Exp[(-t$95$2)], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(0.9999999999998099 + N[(676.5203681218851 / N[(t$95$0 + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1259.1392167224028 / N[(t$95$0 + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(771.3234287776531 / N[(t$95$0 + 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-176.6150291621406 / N[(t$95$0 + 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(12.507343278686905 / N[(t$95$0 + 5.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.13857109526572012 / N[(t$95$0 + 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(9.984369578019572e-6 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(1.5056327351493116e-7 / N[(t$95$0 + 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
t_2 := t\_1 + 0.5\\
\frac{\pi}{\sin \left(\pi \cdot z\right)} \cdot \left(\left(\left(\sqrt{\pi \cdot 2} \cdot {t\_2}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_2}\right) \cdot \left(\left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{t\_0 + 1}\right) + \frac{-1259.1392167224028}{t\_0 + 2}\right) + \frac{771.3234287776531}{t\_0 + 3}\right) + \frac{-176.6150291621406}{t\_0 + 4}\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ PI (sin (* PI z)))
(*
(*
(exp (* (log (- 7.5 z)) (- 0.5 z)))
(* (exp (- z 7.5)) (sqrt (* 2.0 PI))))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(-
(/ 676.5203681218851 (- 1.0 z))
(/ 1259.1392167224028 (- (- 1.0 z) -1.0)))
(-
(/ 771.3234287776531 (- (- 1.0 z) -2.0))
(/ 176.6150291621406 (- (- 1.0 z) -3.0)))))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 (+ t_0 7.0)))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))double code(double z) {
double t_0 = (1.0 - z) - 1.0;
return (((double) M_PI) / sin((((double) M_PI) * z))) * ((exp((log((7.5 - z)) * (0.5 - z))) * (exp((z - 7.5)) * sqrt((2.0 * ((double) M_PI))))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
public static double code(double z) {
double t_0 = (1.0 - z) - 1.0;
return (Math.PI / Math.sin((Math.PI * z))) * ((Math.exp((Math.log((7.5 - z)) * (0.5 - z))) * (Math.exp((z - 7.5)) * Math.sqrt((2.0 * Math.PI)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
def code(z): t_0 = (1.0 - z) - 1.0 return (math.pi / math.sin((math.pi * z))) * ((math.exp((math.log((7.5 - z)) * (0.5 - z))) * (math.exp((z - 7.5)) * math.sqrt((2.0 * math.pi)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0))))
function code(z) t_0 = Float64(Float64(1.0 - z) - 1.0) return Float64(Float64(pi / sin(Float64(pi * z))) * Float64(Float64(exp(Float64(log(Float64(7.5 - z)) * Float64(0.5 - z))) * Float64(exp(Float64(z - 7.5)) * sqrt(Float64(2.0 * pi)))) * Float64(Float64(Float64(Float64(Float64(0.9999999999998099 + Float64(Float64(Float64(676.5203681218851 / Float64(1.0 - z)) - Float64(1259.1392167224028 / Float64(Float64(1.0 - z) - -1.0))) + Float64(Float64(771.3234287776531 / Float64(Float64(1.0 - z) - -2.0)) - Float64(176.6150291621406 / Float64(Float64(1.0 - z) - -3.0))))) + Float64(12.507343278686905 / Float64(t_0 + 5.0))) + Float64(-0.13857109526572012 / Float64(t_0 + 6.0))) + Float64(9.984369578019572e-6 / Float64(t_0 + 7.0))) + Float64(1.5056327351493116e-7 / Float64(t_0 + 8.0))))) end
function tmp = code(z) t_0 = (1.0 - z) - 1.0; tmp = (pi / sin((pi * z))) * ((exp((log((7.5 - z)) * (0.5 - z))) * (exp((z - 7.5)) * sqrt((2.0 * pi)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0)))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - 1.0), $MachinePrecision]}, N[(N[(Pi / N[Sin[N[(Pi * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[Exp[N[(N[Log[N[(7.5 - z), $MachinePrecision]], $MachinePrecision] * N[(0.5 - z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[Exp[N[(z - 7.5), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(0.9999999999998099 + N[(N[(N[(676.5203681218851 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision] - N[(1259.1392167224028 / N[(N[(1.0 - z), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(771.3234287776531 / N[(N[(1.0 - z), $MachinePrecision] - -2.0), $MachinePrecision]), $MachinePrecision] - N[(176.6150291621406 / N[(N[(1.0 - z), $MachinePrecision] - -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(12.507343278686905 / N[(t$95$0 + 5.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.13857109526572012 / N[(t$95$0 + 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(9.984369578019572e-6 / N[(t$95$0 + 7.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.5056327351493116e-7 / N[(t$95$0 + 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\frac{\pi}{\sin \left(\pi \cdot z\right)} \cdot \left(\left(e^{\log \left(7.5 - z\right) \cdot \left(0.5 - z\right)} \cdot \left(e^{z - 7.5} \cdot \sqrt{2 \cdot \pi}\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\left(\frac{676.5203681218851}{1 - z} - \frac{1259.1392167224028}{\left(1 - z\right) - -1}\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} - \frac{176.6150291621406}{\left(1 - z\right) - -3}\right)\right)\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_0 + 7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
Initial program 96.3%
Applied rewrites98.2%
Taylor expanded in z around inf
lower-*.f64N/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f64N/A
lower-*.f64N/A
lower-PI.f6498.2%
Applied rewrites98.2%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ PI (sin (* PI z)))
(*
(* (pow (- 7.5 z) (- 0.5 z)) (* (sqrt (+ PI PI)) (exp (- z 7.5))))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(-
(/ 676.5203681218851 (- 1.0 z))
(/ 1259.1392167224028 (- (- 1.0 z) -1.0)))
(-
(/ 771.3234287776531 (- (- 1.0 z) -2.0))
(/ 176.6150291621406 (- (- 1.0 z) -3.0)))))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 (+ t_0 7.0)))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))double code(double z) {
double t_0 = (1.0 - z) - 1.0;
return (((double) M_PI) / sin((((double) M_PI) * z))) * ((pow((7.5 - z), (0.5 - z)) * (sqrt((((double) M_PI) + ((double) M_PI))) * exp((z - 7.5)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
public static double code(double z) {
double t_0 = (1.0 - z) - 1.0;
return (Math.PI / Math.sin((Math.PI * z))) * ((Math.pow((7.5 - z), (0.5 - z)) * (Math.sqrt((Math.PI + Math.PI)) * Math.exp((z - 7.5)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0))));
}
def code(z): t_0 = (1.0 - z) - 1.0 return (math.pi / math.sin((math.pi * z))) * ((math.pow((7.5 - z), (0.5 - z)) * (math.sqrt((math.pi + math.pi)) * math.exp((z - 7.5)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0))))
function code(z) t_0 = Float64(Float64(1.0 - z) - 1.0) return Float64(Float64(pi / sin(Float64(pi * z))) * Float64(Float64((Float64(7.5 - z) ^ Float64(0.5 - z)) * Float64(sqrt(Float64(pi + pi)) * exp(Float64(z - 7.5)))) * Float64(Float64(Float64(Float64(Float64(0.9999999999998099 + Float64(Float64(Float64(676.5203681218851 / Float64(1.0 - z)) - Float64(1259.1392167224028 / Float64(Float64(1.0 - z) - -1.0))) + Float64(Float64(771.3234287776531 / Float64(Float64(1.0 - z) - -2.0)) - Float64(176.6150291621406 / Float64(Float64(1.0 - z) - -3.0))))) + Float64(12.507343278686905 / Float64(t_0 + 5.0))) + Float64(-0.13857109526572012 / Float64(t_0 + 6.0))) + Float64(9.984369578019572e-6 / Float64(t_0 + 7.0))) + Float64(1.5056327351493116e-7 / Float64(t_0 + 8.0))))) end
function tmp = code(z) t_0 = (1.0 - z) - 1.0; tmp = (pi / sin((pi * z))) * ((((7.5 - z) ^ (0.5 - z)) * (sqrt((pi + pi)) * exp((z - 7.5)))) * (((((0.9999999999998099 + (((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0))))) + (12.507343278686905 / (t_0 + 5.0))) + (-0.13857109526572012 / (t_0 + 6.0))) + (9.984369578019572e-6 / (t_0 + 7.0))) + (1.5056327351493116e-7 / (t_0 + 8.0)))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - 1.0), $MachinePrecision]}, N[(N[(Pi / N[Sin[N[(Pi * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[N[(7.5 - z), $MachinePrecision], N[(0.5 - z), $MachinePrecision]], $MachinePrecision] * N[(N[Sqrt[N[(Pi + Pi), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(z - 7.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(0.9999999999998099 + N[(N[(N[(676.5203681218851 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision] - N[(1259.1392167224028 / N[(N[(1.0 - z), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(771.3234287776531 / N[(N[(1.0 - z), $MachinePrecision] - -2.0), $MachinePrecision]), $MachinePrecision] - N[(176.6150291621406 / N[(N[(1.0 - z), $MachinePrecision] - -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(12.507343278686905 / N[(t$95$0 + 5.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.13857109526572012 / N[(t$95$0 + 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(9.984369578019572e-6 / N[(t$95$0 + 7.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.5056327351493116e-7 / N[(t$95$0 + 8.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\frac{\pi}{\sin \left(\pi \cdot z\right)} \cdot \left(\left({\left(7.5 - z\right)}^{\left(0.5 - z\right)} \cdot \left(\sqrt{\pi + \pi} \cdot e^{z - 7.5}\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\left(\frac{676.5203681218851}{1 - z} - \frac{1259.1392167224028}{\left(1 - z\right) - -1}\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} - \frac{176.6150291621406}{\left(1 - z\right) - -3}\right)\right)\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_0 + 7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
Initial program 96.3%
Applied rewrites98.2%
Taylor expanded in z around inf
lower-*.f64N/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f64N/A
lower-*.f64N/A
lower-PI.f6498.2%
Applied rewrites98.2%
lift-exp.f64N/A
lift-*.f64N/A
lift-log.f64N/A
exp-to-powN/A
lower-pow.f6498.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-*.f6498.2%
lift-*.f64N/A
*-commutativeN/A
count-2-revN/A
lift-+.f6498.2%
Applied rewrites98.2%
(FPCore (z)
:precision binary64
(/
(*
PI
(*
(+
(+
(+
(+
0.9999999999998099
(-
(/ 676.5203681218851 (- 1.0 z))
(/ 1259.1392167224028 (- (- 1.0 z) -1.0))))
(-
(/ 771.3234287776531 (- (- 1.0 z) -2.0))
(/ 176.6150291621406 (- (- 1.0 z) -3.0))))
(+
(/ 12.507343278686905 (- (- 1.0 z) -4.0))
(/ -0.13857109526572012 (- (- 1.0 z) -5.0))))
(+
(/ 9.984369578019572e-6 (- (- 1.0 z) -6.0))
(/ 1.5056327351493116e-7 (- (- 1.0 z) -7.0))))
(*
(* (sqrt (+ PI PI)) (exp (- z 7.5)))
(pow (- 7.5 z) (- 0.5 z)))))
(sin (* z PI))))double code(double z) {
return (((double) M_PI) * (((((0.9999999999998099 + ((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0)))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0)))) + ((12.507343278686905 / ((1.0 - z) - -4.0)) + (-0.13857109526572012 / ((1.0 - z) - -5.0)))) + ((9.984369578019572e-6 / ((1.0 - z) - -6.0)) + (1.5056327351493116e-7 / ((1.0 - z) - -7.0)))) * ((sqrt((((double) M_PI) + ((double) M_PI))) * exp((z - 7.5))) * pow((7.5 - z), (0.5 - z))))) / sin((z * ((double) M_PI)));
}
public static double code(double z) {
return (Math.PI * (((((0.9999999999998099 + ((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0)))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0)))) + ((12.507343278686905 / ((1.0 - z) - -4.0)) + (-0.13857109526572012 / ((1.0 - z) - -5.0)))) + ((9.984369578019572e-6 / ((1.0 - z) - -6.0)) + (1.5056327351493116e-7 / ((1.0 - z) - -7.0)))) * ((Math.sqrt((Math.PI + Math.PI)) * Math.exp((z - 7.5))) * Math.pow((7.5 - z), (0.5 - z))))) / Math.sin((z * Math.PI));
}
def code(z): return (math.pi * (((((0.9999999999998099 + ((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0)))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0)))) + ((12.507343278686905 / ((1.0 - z) - -4.0)) + (-0.13857109526572012 / ((1.0 - z) - -5.0)))) + ((9.984369578019572e-6 / ((1.0 - z) - -6.0)) + (1.5056327351493116e-7 / ((1.0 - z) - -7.0)))) * ((math.sqrt((math.pi + math.pi)) * math.exp((z - 7.5))) * math.pow((7.5 - z), (0.5 - z))))) / math.sin((z * math.pi))
function code(z) return Float64(Float64(pi * Float64(Float64(Float64(Float64(Float64(0.9999999999998099 + Float64(Float64(676.5203681218851 / Float64(1.0 - z)) - Float64(1259.1392167224028 / Float64(Float64(1.0 - z) - -1.0)))) + Float64(Float64(771.3234287776531 / Float64(Float64(1.0 - z) - -2.0)) - Float64(176.6150291621406 / Float64(Float64(1.0 - z) - -3.0)))) + Float64(Float64(12.507343278686905 / Float64(Float64(1.0 - z) - -4.0)) + Float64(-0.13857109526572012 / Float64(Float64(1.0 - z) - -5.0)))) + Float64(Float64(9.984369578019572e-6 / Float64(Float64(1.0 - z) - -6.0)) + Float64(1.5056327351493116e-7 / Float64(Float64(1.0 - z) - -7.0)))) * Float64(Float64(sqrt(Float64(pi + pi)) * exp(Float64(z - 7.5))) * (Float64(7.5 - z) ^ Float64(0.5 - z))))) / sin(Float64(z * pi))) end
function tmp = code(z) tmp = (pi * (((((0.9999999999998099 + ((676.5203681218851 / (1.0 - z)) - (1259.1392167224028 / ((1.0 - z) - -1.0)))) + ((771.3234287776531 / ((1.0 - z) - -2.0)) - (176.6150291621406 / ((1.0 - z) - -3.0)))) + ((12.507343278686905 / ((1.0 - z) - -4.0)) + (-0.13857109526572012 / ((1.0 - z) - -5.0)))) + ((9.984369578019572e-6 / ((1.0 - z) - -6.0)) + (1.5056327351493116e-7 / ((1.0 - z) - -7.0)))) * ((sqrt((pi + pi)) * exp((z - 7.5))) * ((7.5 - z) ^ (0.5 - z))))) / sin((z * pi)); end
code[z_] := N[(N[(Pi * N[(N[(N[(N[(N[(0.9999999999998099 + N[(N[(676.5203681218851 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision] - N[(1259.1392167224028 / N[(N[(1.0 - z), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(771.3234287776531 / N[(N[(1.0 - z), $MachinePrecision] - -2.0), $MachinePrecision]), $MachinePrecision] - N[(176.6150291621406 / N[(N[(1.0 - z), $MachinePrecision] - -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(12.507343278686905 / N[(N[(1.0 - z), $MachinePrecision] - -4.0), $MachinePrecision]), $MachinePrecision] + N[(-0.13857109526572012 / N[(N[(1.0 - z), $MachinePrecision] - -5.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(9.984369578019572e-6 / N[(N[(1.0 - z), $MachinePrecision] - -6.0), $MachinePrecision]), $MachinePrecision] + N[(1.5056327351493116e-7 / N[(N[(1.0 - z), $MachinePrecision] - -7.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Sqrt[N[(Pi + Pi), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(z - 7.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Power[N[(7.5 - z), $MachinePrecision], N[(0.5 - z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Sin[N[(z * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\frac{\pi \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{676.5203681218851}{1 - z} - \frac{1259.1392167224028}{\left(1 - z\right) - -1}\right)\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} - \frac{176.6150291621406}{\left(1 - z\right) - -3}\right)\right) + \left(\frac{12.507343278686905}{\left(1 - z\right) - -4} + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right)\right) + \left(\frac{9.984369578019572 \cdot 10^{-6}}{\left(1 - z\right) - -6} + \frac{1.5056327351493116 \cdot 10^{-7}}{\left(1 - z\right) - -7}\right)\right) \cdot \left(\left(\sqrt{\pi + \pi} \cdot e^{z - 7.5}\right) \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right)\right)}{\sin \left(z \cdot \pi\right)}
Initial program 96.3%
Applied rewrites98.2%
Taylor expanded in z around inf
lower-*.f64N/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f64N/A
lower-*.f64N/A
lower-PI.f6498.2%
Applied rewrites98.2%
Applied rewrites97.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(/ (+ 1.0 (* 0.16666666666666666 (* (pow z 2.0) (pow PI 2.0)))) z)
(*
(* (* 2.5066282746310007 (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
263.3831869810514
(*
z
(+
436.8961725563396
(* z (+ 545.0353078428827 (* 606.6766809167608 z))))))))))double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = (t_0 + 7.0) + 0.5;
return ((1.0 + (0.16666666666666666 * (pow(z, 2.0) * pow(((double) M_PI), 2.0)))) / z) * (((2.5066282746310007 * pow(t_1, (t_0 + 0.5))) * exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))));
}
public static double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = (t_0 + 7.0) + 0.5;
return ((1.0 + (0.16666666666666666 * (Math.pow(z, 2.0) * Math.pow(Math.PI, 2.0)))) / z) * (((2.5066282746310007 * Math.pow(t_1, (t_0 + 0.5))) * Math.exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))));
}
def code(z): t_0 = (1.0 - z) - 1.0 t_1 = (t_0 + 7.0) + 0.5 return ((1.0 + (0.16666666666666666 * (math.pow(z, 2.0) * math.pow(math.pi, 2.0)))) / z) * (((2.5066282746310007 * math.pow(t_1, (t_0 + 0.5))) * math.exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))))
function code(z) t_0 = Float64(Float64(1.0 - z) - 1.0) t_1 = Float64(Float64(t_0 + 7.0) + 0.5) return Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64((z ^ 2.0) * (pi ^ 2.0)))) / z) * Float64(Float64(Float64(2.5066282746310007 * (t_1 ^ Float64(t_0 + 0.5))) * exp(Float64(-t_1))) * Float64(263.3831869810514 + Float64(z * Float64(436.8961725563396 + Float64(z * Float64(545.0353078428827 + Float64(606.6766809167608 * z)))))))) end
function tmp = code(z) t_0 = (1.0 - z) - 1.0; t_1 = (t_0 + 7.0) + 0.5; tmp = ((1.0 + (0.16666666666666666 * ((z ^ 2.0) * (pi ^ 2.0)))) / z) * (((2.5066282746310007 * (t_1 ^ (t_0 + 0.5))) * exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z))))))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(t$95$0 + 7.0), $MachinePrecision] + 0.5), $MachinePrecision]}, N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(N[Power[z, 2.0], $MachinePrecision] * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * N[(N[(N[(2.5066282746310007 * N[Power[t$95$1, N[(t$95$0 + 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Exp[(-t$95$1)], $MachinePrecision]), $MachinePrecision] * N[(263.3831869810514 + N[(z * N[(436.8961725563396 + N[(z * N[(545.0353078428827 + N[(606.6766809167608 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
\frac{1 + 0.16666666666666666 \cdot \left({z}^{2} \cdot {\pi}^{2}\right)}{z} \cdot \left(\left(\left(2.5066282746310007 \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + z \cdot \left(545.0353078428827 + 606.6766809167608 \cdot z\right)\right)\right)\right)
\end{array}
Initial program 96.3%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Evaluated real constant97.3%
Taylor expanded in z around 0
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-pow.f64N/A
lower-PI.f6497.5%
Applied rewrites97.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) -6.5)))
(*
(/ PI (sin (* PI z)))
(*
(*
(* (pow t_0 (- (- 1.0 z) 0.5)) (exp (- t_0)))
2.5066282746310007)
(+
263.3831869810514
(*
z
(+
436.8961725563396
(* z (+ 545.0353078428827 (* 606.6766809167608 z))))))))))double code(double z) {
double t_0 = (1.0 - z) - -6.5;
return (((double) M_PI) / sin((((double) M_PI) * z))) * (((pow(t_0, ((1.0 - z) - 0.5)) * exp(-t_0)) * 2.5066282746310007) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))));
}
public static double code(double z) {
double t_0 = (1.0 - z) - -6.5;
return (Math.PI / Math.sin((Math.PI * z))) * (((Math.pow(t_0, ((1.0 - z) - 0.5)) * Math.exp(-t_0)) * 2.5066282746310007) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))));
}
def code(z): t_0 = (1.0 - z) - -6.5 return (math.pi / math.sin((math.pi * z))) * (((math.pow(t_0, ((1.0 - z) - 0.5)) * math.exp(-t_0)) * 2.5066282746310007) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))))
function code(z) t_0 = Float64(Float64(1.0 - z) - -6.5) return Float64(Float64(pi / sin(Float64(pi * z))) * Float64(Float64(Float64((t_0 ^ Float64(Float64(1.0 - z) - 0.5)) * exp(Float64(-t_0))) * 2.5066282746310007) * Float64(263.3831869810514 + Float64(z * Float64(436.8961725563396 + Float64(z * Float64(545.0353078428827 + Float64(606.6766809167608 * z)))))))) end
function tmp = code(z) t_0 = (1.0 - z) - -6.5; tmp = (pi / sin((pi * z))) * ((((t_0 ^ ((1.0 - z) - 0.5)) * exp(-t_0)) * 2.5066282746310007) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z))))))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - -6.5), $MachinePrecision]}, N[(N[(Pi / N[Sin[N[(Pi * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Power[t$95$0, N[(N[(1.0 - z), $MachinePrecision] - 0.5), $MachinePrecision]], $MachinePrecision] * N[Exp[(-t$95$0)], $MachinePrecision]), $MachinePrecision] * 2.5066282746310007), $MachinePrecision] * N[(263.3831869810514 + N[(z * N[(436.8961725563396 + N[(z * N[(545.0353078428827 + N[(606.6766809167608 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_0 := \left(1 - z\right) - -6.5\\
\frac{\pi}{\sin \left(\pi \cdot z\right)} \cdot \left(\left(\left({t\_0}^{\left(\left(1 - z\right) - 0.5\right)} \cdot e^{-t\_0}\right) \cdot 2.5066282746310007\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + z \cdot \left(545.0353078428827 + 606.6766809167608 \cdot z\right)\right)\right)\right)
\end{array}
Initial program 96.3%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Evaluated real constant97.3%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f6497.3%
Applied rewrites97.3%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6497.3%
lift--.f64N/A
lift--.f64N/A
associate--l-N/A
lower--.f64N/A
metadata-eval97.3%
lift--.f64N/A
lift--.f64N/A
associate--l-N/A
lower--.f64N/A
metadata-eval97.3%
Applied rewrites97.3%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- (- 1.0 z) -6.0) -0.5)))
(*
(/ PI (sin (* PI z)))
(*
(*
2.5066282746310007
(* (pow t_0 (- (- 1.0 z) 0.5)) (exp (- t_0))))
(+
263.3831869810514
(* z (+ 436.8961725563396 (* z 545.0353078428827))))))))double code(double z) {
double t_0 = ((1.0 - z) - -6.0) - -0.5;
return (((double) M_PI) / sin((((double) M_PI) * z))) * ((2.5066282746310007 * (pow(t_0, ((1.0 - z) - 0.5)) * exp(-t_0))) * (263.3831869810514 + (z * (436.8961725563396 + (z * 545.0353078428827)))));
}
public static double code(double z) {
double t_0 = ((1.0 - z) - -6.0) - -0.5;
return (Math.PI / Math.sin((Math.PI * z))) * ((2.5066282746310007 * (Math.pow(t_0, ((1.0 - z) - 0.5)) * Math.exp(-t_0))) * (263.3831869810514 + (z * (436.8961725563396 + (z * 545.0353078428827)))));
}
def code(z): t_0 = ((1.0 - z) - -6.0) - -0.5 return (math.pi / math.sin((math.pi * z))) * ((2.5066282746310007 * (math.pow(t_0, ((1.0 - z) - 0.5)) * math.exp(-t_0))) * (263.3831869810514 + (z * (436.8961725563396 + (z * 545.0353078428827)))))
function code(z) t_0 = Float64(Float64(Float64(1.0 - z) - -6.0) - -0.5) return Float64(Float64(pi / sin(Float64(pi * z))) * Float64(Float64(2.5066282746310007 * Float64((t_0 ^ Float64(Float64(1.0 - z) - 0.5)) * exp(Float64(-t_0)))) * Float64(263.3831869810514 + Float64(z * Float64(436.8961725563396 + Float64(z * 545.0353078428827)))))) end
function tmp = code(z) t_0 = ((1.0 - z) - -6.0) - -0.5; tmp = (pi / sin((pi * z))) * ((2.5066282746310007 * ((t_0 ^ ((1.0 - z) - 0.5)) * exp(-t_0))) * (263.3831869810514 + (z * (436.8961725563396 + (z * 545.0353078428827))))); end
code[z_] := Block[{t$95$0 = N[(N[(N[(1.0 - z), $MachinePrecision] - -6.0), $MachinePrecision] - -0.5), $MachinePrecision]}, N[(N[(Pi / N[Sin[N[(Pi * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(2.5066282746310007 * N[(N[Power[t$95$0, N[(N[(1.0 - z), $MachinePrecision] - 0.5), $MachinePrecision]], $MachinePrecision] * N[Exp[(-t$95$0)], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(263.3831869810514 + N[(z * N[(436.8961725563396 + N[(z * 545.0353078428827), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_0 := \left(\left(1 - z\right) - -6\right) - -0.5\\
\frac{\pi}{\sin \left(\pi \cdot z\right)} \cdot \left(\left(2.5066282746310007 \cdot \left({t\_0}^{\left(\left(1 - z\right) - 0.5\right)} \cdot e^{-t\_0}\right)\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + z \cdot 545.0353078428827\right)\right)\right)
\end{array}
Initial program 96.3%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Evaluated real constant97.3%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f6497.3%
Applied rewrites97.3%
Taylor expanded in z around 0
Applied rewrites97.3%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(/ 1.0 z)
(*
(* (* 2.5066282746310007 (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
263.3831869810514
(*
z
(+
436.8961725563396
(* z (+ 545.0353078428827 (* 606.6766809167608 z))))))))))double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = (t_0 + 7.0) + 0.5;
return (1.0 / z) * (((2.5066282746310007 * pow(t_1, (t_0 + 0.5))) * exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(z)
use fmin_fmax_functions
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
t_0 = (1.0d0 - z) - 1.0d0
t_1 = (t_0 + 7.0d0) + 0.5d0
code = (1.0d0 / z) * (((2.5066282746310007d0 * (t_1 ** (t_0 + 0.5d0))) * exp(-t_1)) * (263.3831869810514d0 + (z * (436.8961725563396d0 + (z * (545.0353078428827d0 + (606.6766809167608d0 * z)))))))
end function
public static double code(double z) {
double t_0 = (1.0 - z) - 1.0;
double t_1 = (t_0 + 7.0) + 0.5;
return (1.0 / z) * (((2.5066282746310007 * Math.pow(t_1, (t_0 + 0.5))) * Math.exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))));
}
def code(z): t_0 = (1.0 - z) - 1.0 t_1 = (t_0 + 7.0) + 0.5 return (1.0 / z) * (((2.5066282746310007 * math.pow(t_1, (t_0 + 0.5))) * math.exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z)))))))
function code(z) t_0 = Float64(Float64(1.0 - z) - 1.0) t_1 = Float64(Float64(t_0 + 7.0) + 0.5) return Float64(Float64(1.0 / z) * Float64(Float64(Float64(2.5066282746310007 * (t_1 ^ Float64(t_0 + 0.5))) * exp(Float64(-t_1))) * Float64(263.3831869810514 + Float64(z * Float64(436.8961725563396 + Float64(z * Float64(545.0353078428827 + Float64(606.6766809167608 * z)))))))) end
function tmp = code(z) t_0 = (1.0 - z) - 1.0; t_1 = (t_0 + 7.0) + 0.5; tmp = (1.0 / z) * (((2.5066282746310007 * (t_1 ^ (t_0 + 0.5))) * exp(-t_1)) * (263.3831869810514 + (z * (436.8961725563396 + (z * (545.0353078428827 + (606.6766809167608 * z))))))); end
code[z_] := Block[{t$95$0 = N[(N[(1.0 - z), $MachinePrecision] - 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(t$95$0 + 7.0), $MachinePrecision] + 0.5), $MachinePrecision]}, N[(N[(1.0 / z), $MachinePrecision] * N[(N[(N[(2.5066282746310007 * N[Power[t$95$1, N[(t$95$0 + 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Exp[(-t$95$1)], $MachinePrecision]), $MachinePrecision] * N[(263.3831869810514 + N[(z * N[(436.8961725563396 + N[(z * N[(545.0353078428827 + N[(606.6766809167608 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
\frac{1}{z} \cdot \left(\left(\left(2.5066282746310007 \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + z \cdot \left(545.0353078428827 + 606.6766809167608 \cdot z\right)\right)\right)\right)
\end{array}
Initial program 96.3%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Taylor expanded in z around 0
lower-/.f6496.1%
Applied rewrites96.1%
Evaluated real constant97.0%
(FPCore (z) :precision binary64 (* 263.3831869810514 (/ (* (exp -7.5) 6.864684246478268) z)))
double code(double z) {
return 263.3831869810514 * ((exp(-7.5) * 6.864684246478268) / z);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(z)
use fmin_fmax_functions
real(8), intent (in) :: z
code = 263.3831869810514d0 * ((exp((-7.5d0)) * 6.864684246478268d0) / z)
end function
public static double code(double z) {
return 263.3831869810514 * ((Math.exp(-7.5) * 6.864684246478268) / z);
}
def code(z): return 263.3831869810514 * ((math.exp(-7.5) * 6.864684246478268) / z)
function code(z) return Float64(263.3831869810514 * Float64(Float64(exp(-7.5) * 6.864684246478268) / z)) end
function tmp = code(z) tmp = 263.3831869810514 * ((exp(-7.5) * 6.864684246478268) / z); end
code[z_] := N[(263.3831869810514 * N[(N[(N[Exp[-7.5], $MachinePrecision] * 6.864684246478268), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]
263.3831869810514 \cdot \frac{e^{-7.5} \cdot 6.864684246478268}{z}
Initial program 96.3%
Taylor expanded in z around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites95.4%
Evaluated real constant96.2%
(FPCore (z) :precision binary64 (* 1.0000000000000002 (/ 1.0 z)))
double code(double z) {
return 1.0000000000000002 * (1.0 / z);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(z)
use fmin_fmax_functions
real(8), intent (in) :: z
code = 1.0000000000000002d0 * (1.0d0 / z)
end function
public static double code(double z) {
return 1.0000000000000002 * (1.0 / z);
}
def code(z): return 1.0000000000000002 * (1.0 / z)
function code(z) return Float64(1.0000000000000002 * Float64(1.0 / z)) end
function tmp = code(z) tmp = 1.0000000000000002 * (1.0 / z); end
code[z_] := N[(1.0000000000000002 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]
1.0000000000000002 \cdot \frac{1}{z}
Initial program 96.3%
Taylor expanded in z around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites95.4%
Evaluated real constant95.4%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
lower-/.f64N/A
metadata-eval96.0%
Applied rewrites96.0%
lift-/.f64N/A
mult-flipN/A
lift-/.f64N/A
lower-*.f6496.1%
Applied rewrites96.1%
(FPCore (z) :precision binary64 (/ 1.0000000000000002 z))
double code(double z) {
return 1.0000000000000002 / z;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(z)
use fmin_fmax_functions
real(8), intent (in) :: z
code = 1.0000000000000002d0 / z
end function
public static double code(double z) {
return 1.0000000000000002 / z;
}
def code(z): return 1.0000000000000002 / z
function code(z) return Float64(1.0000000000000002 / z) end
function tmp = code(z) tmp = 1.0000000000000002 / z; end
code[z_] := N[(1.0000000000000002 / z), $MachinePrecision]
\frac{1.0000000000000002}{z}
Initial program 96.3%
Taylor expanded in z around 0
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites95.4%
Evaluated real constant95.4%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
lower-/.f64N/A
metadata-eval96.0%
Applied rewrites96.0%
herbie shell --seed 2025258
(FPCore (z)
:name "Jmat.Real.gamma, branch z less than 0.5"
:precision binary64
:pre (<= z 0.5)
(* (/ PI (sin (* PI z))) (* (* (* (sqrt (* PI 2.0)) (pow (+ (+ (- (- 1.0 z) 1.0) 7.0) 0.5) (+ (- (- 1.0 z) 1.0) 0.5))) (exp (- (+ (+ (- (- 1.0 z) 1.0) 7.0) 0.5)))) (+ (+ (+ (+ (+ (+ (+ (+ 0.9999999999998099 (/ 676.5203681218851 (+ (- (- 1.0 z) 1.0) 1.0))) (/ -1259.1392167224028 (+ (- (- 1.0 z) 1.0) 2.0))) (/ 771.3234287776531 (+ (- (- 1.0 z) 1.0) 3.0))) (/ -176.6150291621406 (+ (- (- 1.0 z) 1.0) 4.0))) (/ 12.507343278686905 (+ (- (- 1.0 z) 1.0) 5.0))) (/ -0.13857109526572012 (+ (- (- 1.0 z) 1.0) 6.0))) (/ 9.984369578019572e-6 (+ (- (- 1.0 z) 1.0) 7.0))) (/ 1.5056327351493116e-7 (+ (- (- 1.0 z) 1.0) 8.0))))))