
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(t_2
(+
b
(*
z
(+ a (* z (+ t (* z (+ (* z 3.13060547623) 11.1667541262)))))))))
(if (<= (/ (* y t_2) t_1) INFINITY)
(+ x (* y (/ t_2 t_1)))
(-
(-
(+
(+ x (* y 3.13060547623))
(+ (/ (* y 11.1667541262) z) (* t (/ y (* z z)))))
(/ (* y -556.47806218377) (* z z)))
(+ (/ (* y 47.69379582500642) z) (/ (* y 98.5170599679272) (* z z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262))))));
double tmp;
if (((y * t_2) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * (t_2 / t_1));
} else {
tmp = (((x + (y * 3.13060547623)) + (((y * 11.1667541262) / z) + (t * (y / (z * z))))) - ((y * -556.47806218377) / (z * z))) - (((y * 47.69379582500642) / z) + ((y * 98.5170599679272) / (z * z)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262))))));
double tmp;
if (((y * t_2) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * (t_2 / t_1));
} else {
tmp = (((x + (y * 3.13060547623)) + (((y * 11.1667541262) / z) + (t * (y / (z * z))))) - ((y * -556.47806218377) / (z * z))) - (((y * 47.69379582500642) / z) + ((y * 98.5170599679272) / (z * z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771 t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))) tmp = 0 if ((y * t_2) / t_1) <= math.inf: tmp = x + (y * (t_2 / t_1)) else: tmp = (((x + (y * 3.13060547623)) + (((y * 11.1667541262) / z) + (t * (y / (z * z))))) - ((y * -556.47806218377) / (z * z))) - (((y * 47.69379582500642) / z) + ((y * 98.5170599679272) / (z * z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) t_2 = Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262))))))) tmp = 0.0 if (Float64(Float64(y * t_2) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(t_2 / t_1))); else tmp = Float64(Float64(Float64(Float64(x + Float64(y * 3.13060547623)) + Float64(Float64(Float64(y * 11.1667541262) / z) + Float64(t * Float64(y / Float64(z * z))))) - Float64(Float64(y * -556.47806218377) / Float64(z * z))) - Float64(Float64(Float64(y * 47.69379582500642) / z) + Float64(Float64(y * 98.5170599679272) / Float64(z * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771; t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))); tmp = 0.0; if (((y * t_2) / t_1) <= Inf) tmp = x + (y * (t_2 / t_1)); else tmp = (((x + (y * 3.13060547623)) + (((y * 11.1667541262) / z) + (t * (y / (z * z))))) - ((y * -556.47806218377) / (z * z))) - (((y * 47.69379582500642) / z) + ((y * 98.5170599679272) / (z * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, Block[{t$95$2 = N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 11.1667541262), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * -556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y * 47.69379582500642), $MachinePrecision] / z), $MachinePrecision] + N[(N[(y * 98.5170599679272), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
t_2 := b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot t\_2}{t\_1} \leq \infty:\\
\;\;\;\;x + y \cdot \frac{t\_2}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x + y \cdot 3.13060547623\right) + \left(\frac{y \cdot 11.1667541262}{z} + t \cdot \frac{y}{z \cdot z}\right)\right) - \frac{y \cdot -556.47806218377}{z \cdot z}\right) - \left(\frac{y \cdot 47.69379582500642}{z} + \frac{y \cdot 98.5170599679272}{z \cdot z}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 91.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr95.0%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
Simplified99.8%
Final simplification97.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(t_2
(+
b
(*
z
(+ a (* z (+ t (* z (+ (* z 3.13060547623) 11.1667541262)))))))))
(if (<= (/ (* y t_2) t_1) INFINITY)
(+ x (* y (/ t_2 t_1)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262))))));
double tmp;
if (((y * t_2) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * (t_2 / t_1));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262))))));
double tmp;
if (((y * t_2) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * (t_2 / t_1));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771 t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))) tmp = 0 if ((y * t_2) / t_1) <= math.inf: tmp = x + (y * (t_2 / t_1)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) t_2 = Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262))))))) tmp = 0.0 if (Float64(Float64(y * t_2) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(t_2 / t_1))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771; t_2 = b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))); tmp = 0.0; if (((y * t_2) / t_1) <= Inf) tmp = x + (y * (t_2 / t_1)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, Block[{t$95$2 = N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
t_2 := b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot t\_2}{t\_1} \leq \infty:\\
\;\;\;\;x + y \cdot \frac{t\_2}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 91.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr95.0%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6496.6%
Simplified96.6%
Final simplification95.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -8.6e+33)
t_1
(if (<= z 1.45e+56)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -8.6e+33) {
tmp = t_1;
} else if (z <= 1.45e+56) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-8.6d+33)) then
tmp = t_1
else if (z <= 1.45d+56) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -8.6e+33) {
tmp = t_1;
} else if (z <= 1.45e+56) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -8.6e+33: tmp = t_1 elif z <= 1.45e+56: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -8.6e+33) tmp = t_1; elseif (z <= 1.45e+56) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -8.6e+33) tmp = t_1; elseif (z <= 1.45e+56) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.6e+33], t$95$1, If[LessEqual[z, 1.45e+56], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -8.6 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+56}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.60000000000000057e33 or 1.45000000000000004e56 < z Initial program 3.6%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.9%
Simplified93.9%
if -8.60000000000000057e33 < z < 1.45000000000000004e56Initial program 98.2%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6497.5%
Simplified97.5%
Final simplification95.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.7e+16)
t_1
(if (<= z -1.1e-188)
(+
(+ x (* b (* y 1.6453555072203998)))
(* z (* y (- (* a 1.6453555072203998) (* b 32.324150453290734)))))
(if (<= z 550.0)
(+
x
(/
(* y b)
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (+ (* z z) (* z 15.234687407)))))))))
(+ t_1 (/ (* y -36.52704169880642) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.7e+16) {
tmp = t_1;
} else if (z <= -1.1e-188) {
tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734))));
} else if (z <= 550.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + ((z * z) + (z * 15.234687407))))))));
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.7d+16)) then
tmp = t_1
else if (z <= (-1.1d-188)) then
tmp = (x + (b * (y * 1.6453555072203998d0))) + (z * (y * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0))))
else if (z <= 550.0d0) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + ((z * z) + (z * 15.234687407d0))))))))
else
tmp = t_1 + ((y * (-36.52704169880642d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.7e+16) {
tmp = t_1;
} else if (z <= -1.1e-188) {
tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734))));
} else if (z <= 550.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + ((z * z) + (z * 15.234687407))))))));
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.7e+16: tmp = t_1 elif z <= -1.1e-188: tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734)))) elif z <= 550.0: tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + ((z * z) + (z * 15.234687407)))))))) else: tmp = t_1 + ((y * -36.52704169880642) / z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.7e+16) tmp = t_1; elseif (z <= -1.1e-188) tmp = Float64(Float64(x + Float64(b * Float64(y * 1.6453555072203998))) + Float64(z * Float64(y * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734))))); elseif (z <= 550.0) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(Float64(z * z) + Float64(z * 15.234687407))))))))); else tmp = Float64(t_1 + Float64(Float64(y * -36.52704169880642) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.7e+16) tmp = t_1; elseif (z <= -1.1e-188) tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734)))); elseif (z <= 550.0) tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + ((z * z) + (z * 15.234687407)))))))); else tmp = t_1 + ((y * -36.52704169880642) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+16], t$95$1, If[LessEqual[z, -1.1e-188], N[(N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 550.0], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(N[(z * z), $MachinePrecision] + N[(z * 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y * -36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-188}:\\
\;\;\;\;\left(x + b \cdot \left(y \cdot 1.6453555072203998\right)\right) + z \cdot \left(y \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right)\right)\\
\mathbf{elif}\;z \leq 550:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + \left(z \cdot z + z \cdot 15.234687407\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y \cdot -36.52704169880642}{z}\\
\end{array}
\end{array}
if z < -2.7e16Initial program 10.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.2%
Simplified92.2%
if -2.7e16 < z < -1.1e-188Initial program 99.6%
Taylor expanded in z around 0
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6486.2%
Simplified86.2%
if -1.1e-188 < z < 550Initial program 99.7%
*-commutativeN/A
distribute-lft-inN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6486.0%
Simplified86.0%
if 550 < z Initial program 11.1%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
div-subN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
metadata-eval89.8%
Simplified89.8%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -15000000000000.0)
(+
x
(+
(* y 3.13060547623)
(/
(-
(/ (+ (- (* y t) (* y -556.47806218377)) (* y -98.5170599679272)) z)
(* y 36.52704169880642))
z)))
(if (<= z 550.0)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ (* z 3.13060547623) 11.1667541262))))))))
0.607771387771))
(+ (+ x (* y 3.13060547623)) (/ (* y -36.52704169880642) z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -15000000000000.0) {
tmp = x + ((y * 3.13060547623) + ((((((y * t) - (y * -556.47806218377)) + (y * -98.5170599679272)) / z) - (y * 36.52704169880642)) / z));
} else if (z <= 550.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771);
} else {
tmp = (x + (y * 3.13060547623)) + ((y * -36.52704169880642) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-15000000000000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + ((((((y * t) - (y * (-556.47806218377d0))) + (y * (-98.5170599679272d0))) / z) - (y * 36.52704169880642d0)) / z))
else if (z <= 550.0d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623d0) + 11.1667541262d0)))))))) / 0.607771387771d0)
else
tmp = (x + (y * 3.13060547623d0)) + ((y * (-36.52704169880642d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -15000000000000.0) {
tmp = x + ((y * 3.13060547623) + ((((((y * t) - (y * -556.47806218377)) + (y * -98.5170599679272)) / z) - (y * 36.52704169880642)) / z));
} else if (z <= 550.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771);
} else {
tmp = (x + (y * 3.13060547623)) + ((y * -36.52704169880642) / z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -15000000000000.0: tmp = x + ((y * 3.13060547623) + ((((((y * t) - (y * -556.47806218377)) + (y * -98.5170599679272)) / z) - (y * 36.52704169880642)) / z)) elif z <= 550.0: tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771) else: tmp = (x + (y * 3.13060547623)) + ((y * -36.52704169880642) / z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -15000000000000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(Float64(Float64(Float64(Float64(y * t) - Float64(y * -556.47806218377)) + Float64(y * -98.5170599679272)) / z) - Float64(y * 36.52704169880642)) / z))); elseif (z <= 550.0) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771)); else tmp = Float64(Float64(x + Float64(y * 3.13060547623)) + Float64(Float64(y * -36.52704169880642) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -15000000000000.0) tmp = x + ((y * 3.13060547623) + ((((((y * t) - (y * -556.47806218377)) + (y * -98.5170599679272)) / z) - (y * 36.52704169880642)) / z)); elseif (z <= 550.0) tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771); else tmp = (x + (y * 3.13060547623)) + ((y * -36.52704169880642) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -15000000000000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y * t), $MachinePrecision] - N[(y * -556.47806218377), $MachinePrecision]), $MachinePrecision] + N[(y * -98.5170599679272), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(y * 36.52704169880642), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 550.0], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision] + N[(N[(y * -36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -15000000000000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{\frac{\left(y \cdot t - y \cdot -556.47806218377\right) + y \cdot -98.5170599679272}{z} - y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 550:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right)\right)\right)\right)}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y \cdot 3.13060547623\right) + \frac{y \cdot -36.52704169880642}{z}\\
\end{array}
\end{array}
if z < -1.5e13Initial program 11.4%
Taylor expanded in z around -inf
Simplified92.6%
if -1.5e13 < z < 550Initial program 99.6%
*-commutativeN/A
distribute-lft-inN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
Taylor expanded in z around 0
Simplified98.6%
if 550 < z Initial program 11.1%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
div-subN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
metadata-eval89.8%
Simplified89.8%
Final simplification94.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.15e+15)
t_1
(if (<= z 550.0)
(+
x
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ (* z 3.13060547623) 11.1667541262))))))))
0.607771387771))
(+ t_1 (/ (* y -36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.15e+15) {
tmp = t_1;
} else if (z <= 550.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771);
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-1.15d+15)) then
tmp = t_1
else if (z <= 550.0d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623d0) + 11.1667541262d0)))))))) / 0.607771387771d0)
else
tmp = t_1 + ((y * (-36.52704169880642d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.15e+15) {
tmp = t_1;
} else if (z <= 550.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771);
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -1.15e+15: tmp = t_1 elif z <= 550.0: tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771) else: tmp = t_1 + ((y * -36.52704169880642) / z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -1.15e+15) tmp = t_1; elseif (z <= 550.0) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771)); else tmp = Float64(t_1 + Float64(Float64(y * -36.52704169880642) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -1.15e+15) tmp = t_1; elseif (z <= 550.0) tmp = x + ((y * (b + (z * (a + (z * (t + (z * ((z * 3.13060547623) + 11.1667541262)))))))) / 0.607771387771); else tmp = t_1 + ((y * -36.52704169880642) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+15], t$95$1, If[LessEqual[z, 550.0], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y * -36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 550:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right)\right)\right)\right)}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y \cdot -36.52704169880642}{z}\\
\end{array}
\end{array}
if z < -1.15e15Initial program 11.4%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.3%
Simplified92.3%
if -1.15e15 < z < 550Initial program 99.6%
*-commutativeN/A
distribute-lft-inN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
Taylor expanded in z around 0
Simplified98.6%
if 550 < z Initial program 11.1%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
div-subN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
metadata-eval89.8%
Simplified89.8%
Final simplification94.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -5.2e+15)
t_1
(if (<= z -8e-189)
(+
(+ x (* b (* y 1.6453555072203998)))
(* z (* y (- (* a 1.6453555072203998) (* b 32.324150453290734)))))
(if (<= z 510.0)
(+ x (* 1.6453555072203998 (* y b)))
(+ t_1 (/ (* y -36.52704169880642) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5.2e+15) {
tmp = t_1;
} else if (z <= -8e-189) {
tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734))));
} else if (z <= 510.0) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-5.2d+15)) then
tmp = t_1
else if (z <= (-8d-189)) then
tmp = (x + (b * (y * 1.6453555072203998d0))) + (z * (y * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0))))
else if (z <= 510.0d0) then
tmp = x + (1.6453555072203998d0 * (y * b))
else
tmp = t_1 + ((y * (-36.52704169880642d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5.2e+15) {
tmp = t_1;
} else if (z <= -8e-189) {
tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734))));
} else if (z <= 510.0) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -5.2e+15: tmp = t_1 elif z <= -8e-189: tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734)))) elif z <= 510.0: tmp = x + (1.6453555072203998 * (y * b)) else: tmp = t_1 + ((y * -36.52704169880642) / z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -5.2e+15) tmp = t_1; elseif (z <= -8e-189) tmp = Float64(Float64(x + Float64(b * Float64(y * 1.6453555072203998))) + Float64(z * Float64(y * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734))))); elseif (z <= 510.0) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); else tmp = Float64(t_1 + Float64(Float64(y * -36.52704169880642) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -5.2e+15) tmp = t_1; elseif (z <= -8e-189) tmp = (x + (b * (y * 1.6453555072203998))) + (z * (y * ((a * 1.6453555072203998) - (b * 32.324150453290734)))); elseif (z <= 510.0) tmp = x + (1.6453555072203998 * (y * b)); else tmp = t_1 + ((y * -36.52704169880642) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.2e+15], t$95$1, If[LessEqual[z, -8e-189], N[(N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 510.0], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y * -36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-189}:\\
\;\;\;\;\left(x + b \cdot \left(y \cdot 1.6453555072203998\right)\right) + z \cdot \left(y \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right)\right)\\
\mathbf{elif}\;z \leq 510:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y \cdot -36.52704169880642}{z}\\
\end{array}
\end{array}
if z < -5.2e15Initial program 10.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.2%
Simplified92.2%
if -5.2e15 < z < -8.00000000000000055e-189Initial program 99.6%
Taylor expanded in z around 0
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6486.2%
Simplified86.2%
if -8.00000000000000055e-189 < z < 510Initial program 99.7%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6484.9%
Simplified84.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.9%
Simplified85.9%
if 510 < z Initial program 11.1%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
div-subN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
metadata-eval89.8%
Simplified89.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -9e+16)
t_1
(if (<= z 52.0)
(+ x (* 1.6453555072203998 (* y b)))
(+ t_1 (/ (* y -36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -9e+16) {
tmp = t_1;
} else if (z <= 52.0) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-9d+16)) then
tmp = t_1
else if (z <= 52.0d0) then
tmp = x + (1.6453555072203998d0 * (y * b))
else
tmp = t_1 + ((y * (-36.52704169880642d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -9e+16) {
tmp = t_1;
} else if (z <= 52.0) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = t_1 + ((y * -36.52704169880642) / z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -9e+16: tmp = t_1 elif z <= 52.0: tmp = x + (1.6453555072203998 * (y * b)) else: tmp = t_1 + ((y * -36.52704169880642) / z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -9e+16) tmp = t_1; elseif (z <= 52.0) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); else tmp = Float64(t_1 + Float64(Float64(y * -36.52704169880642) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -9e+16) tmp = t_1; elseif (z <= 52.0) tmp = x + (1.6453555072203998 * (y * b)); else tmp = t_1 + ((y * -36.52704169880642) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+16], t$95$1, If[LessEqual[z, 52.0], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y * -36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -9 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 52:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y \cdot -36.52704169880642}{z}\\
\end{array}
\end{array}
if z < -9e16Initial program 10.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6492.2%
Simplified92.2%
if -9e16 < z < 52Initial program 99.7%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.4%
Simplified85.4%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6480.6%
Simplified80.6%
if 52 < z Initial program 11.1%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
distribute-lft-neg-inN/A
div-subN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
metadata-eval89.8%
Simplified89.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -7.5e+16)
t_1
(if (<= z 8.4e-13) (+ x (* 1.6453555072203998 (* y b))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -7.5e+16) {
tmp = t_1;
} else if (z <= 8.4e-13) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-7.5d+16)) then
tmp = t_1
else if (z <= 8.4d-13) then
tmp = x + (1.6453555072203998d0 * (y * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -7.5e+16) {
tmp = t_1;
} else if (z <= 8.4e-13) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -7.5e+16: tmp = t_1 elif z <= 8.4e-13: tmp = x + (1.6453555072203998 * (y * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -7.5e+16) tmp = t_1; elseif (z <= 8.4e-13) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -7.5e+16) tmp = t_1; elseif (z <= 8.4e-13) tmp = x + (1.6453555072203998 * (y * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+16], t$95$1, If[LessEqual[z, 8.4e-13], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.4 \cdot 10^{-13}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.5e16 or 8.39999999999999955e-13 < z Initial program 11.2%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6490.0%
Simplified90.0%
if -7.5e16 < z < 8.39999999999999955e-13Initial program 99.7%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.3%
Simplified85.3%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6481.3%
Simplified81.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.05e-204)
t_1
(if (<= z 2.4e-265) (* 1.6453555072203998 (* y b)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.05e-204) {
tmp = t_1;
} else if (z <= 2.4e-265) {
tmp = 1.6453555072203998 * (y * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.05d-204)) then
tmp = t_1
else if (z <= 2.4d-265) then
tmp = 1.6453555072203998d0 * (y * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.05e-204) {
tmp = t_1;
} else if (z <= 2.4e-265) {
tmp = 1.6453555072203998 * (y * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.05e-204: tmp = t_1 elif z <= 2.4e-265: tmp = 1.6453555072203998 * (y * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.05e-204) tmp = t_1; elseif (z <= 2.4e-265) tmp = Float64(1.6453555072203998 * Float64(y * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.05e-204) tmp = t_1; elseif (z <= 2.4e-265) tmp = 1.6453555072203998 * (y * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e-204], t$95$1, If[LessEqual[z, 2.4e-265], N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{-204}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-265}:\\
\;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.05e-204 or 2.4e-265 < z Initial program 44.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6474.5%
Simplified74.5%
if -2.05e-204 < z < 2.4e-265Initial program 99.8%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6461.7%
Simplified61.7%
Taylor expanded in z around 0
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.8%
Simplified61.8%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6461.8%
Applied egg-rr61.8%
Final simplification72.9%
(FPCore (x y z t a b) :precision binary64 (if (<= x -4.1e-165) x (if (<= x 8.5e-63) (* y 3.13060547623) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -4.1e-165) {
tmp = x;
} else if (x <= 8.5e-63) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-4.1d-165)) then
tmp = x
else if (x <= 8.5d-63) then
tmp = y * 3.13060547623d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -4.1e-165) {
tmp = x;
} else if (x <= 8.5e-63) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -4.1e-165: tmp = x elif x <= 8.5e-63: tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -4.1e-165) tmp = x; elseif (x <= 8.5e-63) tmp = Float64(y * 3.13060547623); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -4.1e-165) tmp = x; elseif (x <= 8.5e-63) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -4.1e-165], x, If[LessEqual[x, 8.5e-63], N[(y * 3.13060547623), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.1 \cdot 10^{-165}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-63}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -4.1000000000000002e-165 or 8.49999999999999969e-63 < x Initial program 52.3%
Taylor expanded in x around inf
Simplified66.3%
if -4.1000000000000002e-165 < x < 8.49999999999999969e-63Initial program 49.8%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6450.4%
Simplified50.4%
Taylor expanded in x around 0
*-lowering-*.f6441.6%
Simplified41.6%
Final simplification60.1%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 51.6%
Taylor expanded in x around inf
Simplified52.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024139
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(! :herbie-platform default (if (< z -649934499625263200000000000000000000000000000000000000) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))) (if (< z 706696543691428700000000000000000000000000000000000000000000) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000) (+ (* (+ (* (+ (* (+ (* z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)))) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))