
(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 18 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
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(*
(/
y
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)))
(+
x
(-
(-
(fma y 3.13060547623 (/ t (/ (pow z 2.0) y)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (pow z 2.0))
(/ (* y -556.47806218377) (pow z 2.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + ((y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b));
} else {
tmp = x + ((fma(y, 3.13060547623, (t / (pow(z, 2.0) / y))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / pow(z, 2.0)), ((y * -556.47806218377) / pow(z, 2.0))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))); else tmp = Float64(x + Float64(Float64(fma(y, 3.13060547623, Float64(t / Float64((z ^ 2.0) / y))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, Float64(y / (z ^ 2.0)), Float64(Float64(y * -556.47806218377) / (z ^ 2.0))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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], Infinity], N[(x + N[(N[(y / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y * 3.13060547623 + N[(t / N[(N[Power[z, 2.0], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * N[(y / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)} \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(\left(\mathsf{fma}\left(y, 3.13060547623, \frac{t}{\frac{{z}^{2}}{y}}\right) - \frac{y \cdot 36.52704169880642}{z}\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{{z}^{2}}, \frac{y \cdot -556.47806218377}{{z}^{2}}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.2%
Simplified97.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Taylor expanded in b around 0 0.0%
Taylor expanded in z around 0 0.0%
Taylor expanded in z around -inf 85.6%
+-commutative85.6%
mul-1-neg85.6%
unsub-neg85.6%
*-commutative85.6%
fma-def85.6%
associate-/l*98.2%
distribute-rgt-out--98.2%
metadata-eval98.2%
+-commutative98.2%
fma-def98.2%
associate-*r/98.2%
Simplified98.2%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6e+36)
(+
x
(-
(-
(fma y 3.13060547623 (/ t (/ (pow z 2.0) y)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (pow z 2.0))
(/ (* y -556.47806218377) (pow z 2.0)))))
(if (<= z 8.6e+42)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
0.607771387771
(fma
z
11.9400905721
(fma
15.234687407
(pow z 3.0)
(fma 31.4690115749 (pow z 2.0) (pow z 4.0)))))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6e+36) {
tmp = x + ((fma(y, 3.13060547623, (t / (pow(z, 2.0) / y))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / pow(z, 2.0)), ((y * -556.47806218377) / pow(z, 2.0))));
} else if (z <= 8.6e+42) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + fma(z, 11.9400905721, fma(15.234687407, pow(z, 3.0), fma(31.4690115749, pow(z, 2.0), pow(z, 4.0))))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6e+36) tmp = Float64(x + Float64(Float64(fma(y, 3.13060547623, Float64(t / Float64((z ^ 2.0) / y))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, Float64(y / (z ^ 2.0)), Float64(Float64(y * -556.47806218377) / (z ^ 2.0))))); elseif (z <= 8.6e+42) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + fma(z, 11.9400905721, fma(15.234687407, (z ^ 3.0), fma(31.4690115749, (z ^ 2.0), (z ^ 4.0))))))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6e+36], N[(x + N[(N[(N[(y * 3.13060547623 + N[(t / N[(N[Power[z, 2.0], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * N[(y / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+42], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721 + N[(15.234687407 * N[Power[z, 3.0], $MachinePrecision] + N[(31.4690115749 * N[Power[z, 2.0], $MachinePrecision] + N[Power[z, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+36}:\\
\;\;\;\;x + \left(\left(\mathsf{fma}\left(y, 3.13060547623, \frac{t}{\frac{{z}^{2}}{y}}\right) - \frac{y \cdot 36.52704169880642}{z}\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{{z}^{2}}, \frac{y \cdot -556.47806218377}{{z}^{2}}\right)\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+42}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + \mathsf{fma}\left(z, 11.9400905721, \mathsf{fma}\left(15.234687407, {z}^{3}, \mathsf{fma}\left(31.4690115749, {z}^{2}, {z}^{4}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -6e36Initial program 4.3%
Taylor expanded in b around 0 4.3%
Taylor expanded in z around 0 4.3%
Taylor expanded in z around -inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
fma-def78.5%
associate-/l*92.5%
distribute-rgt-out--92.5%
metadata-eval92.5%
+-commutative92.5%
fma-def92.5%
associate-*r/92.5%
Simplified92.5%
if -6e36 < z < 8.5999999999999996e42Initial program 99.1%
Taylor expanded in z around 0 99.1%
*-commutative99.1%
fma-def99.1%
fma-def99.2%
fma-def99.2%
Simplified99.2%
if 8.5999999999999996e42 < z Initial program 10.0%
Simplified11.2%
Taylor expanded in z around inf 95.3%
+-commutative95.3%
*-commutative95.3%
Simplified95.3%
Final simplification97.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.2e+36)
(+
x
(-
(-
(fma y 3.13060547623 (/ t (/ (pow z 2.0) y)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (pow z 2.0))
(/ (* y -556.47806218377) (pow z 2.0)))))
(if (<= z 3.5e+41)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
0.607771387771
(+
(* z 11.9400905721)
(+
(* 15.234687407 (pow z 3.0))
(+ (pow z 4.0) (* 31.4690115749 (pow z 2.0))))))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.2e+36) {
tmp = x + ((fma(y, 3.13060547623, (t / (pow(z, 2.0) / y))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / pow(z, 2.0)), ((y * -556.47806218377) / pow(z, 2.0))));
} else if (z <= 3.5e+41) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + ((z * 11.9400905721) + ((15.234687407 * pow(z, 3.0)) + (pow(z, 4.0) + (31.4690115749 * pow(z, 2.0)))))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.2e+36) tmp = Float64(x + Float64(Float64(fma(y, 3.13060547623, Float64(t / Float64((z ^ 2.0) / y))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, Float64(y / (z ^ 2.0)), Float64(Float64(y * -556.47806218377) / (z ^ 2.0))))); elseif (z <= 3.5e+41) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(Float64(z * 11.9400905721) + Float64(Float64(15.234687407 * (z ^ 3.0)) + Float64((z ^ 4.0) + Float64(31.4690115749 * (z ^ 2.0)))))))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.2e+36], N[(x + N[(N[(N[(y * 3.13060547623 + N[(t / N[(N[Power[z, 2.0], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * N[(y / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+41], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(N[(z * 11.9400905721), $MachinePrecision] + N[(N[(15.234687407 * N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision] + N[(N[Power[z, 4.0], $MachinePrecision] + N[(31.4690115749 * N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+36}:\\
\;\;\;\;x + \left(\left(\mathsf{fma}\left(y, 3.13060547623, \frac{t}{\frac{{z}^{2}}{y}}\right) - \frac{y \cdot 36.52704169880642}{z}\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{{z}^{2}}, \frac{y \cdot -556.47806218377}{{z}^{2}}\right)\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+41}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + \left(z \cdot 11.9400905721 + \left(15.234687407 \cdot {z}^{3} + \left({z}^{4} + 31.4690115749 \cdot {z}^{2}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.19999999999999996e36Initial program 4.3%
Taylor expanded in b around 0 4.3%
Taylor expanded in z around 0 4.3%
Taylor expanded in z around -inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
fma-def78.5%
associate-/l*92.5%
distribute-rgt-out--92.5%
metadata-eval92.5%
+-commutative92.5%
fma-def92.5%
associate-*r/92.5%
Simplified92.5%
if -1.19999999999999996e36 < z < 3.4999999999999999e41Initial program 99.1%
Taylor expanded in z around 0 99.1%
if 3.4999999999999999e41 < z Initial program 10.0%
Simplified11.2%
Taylor expanded in z around inf 95.3%
+-commutative95.3%
*-commutative95.3%
Simplified95.3%
Final simplification97.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))))
(if (<=
(/
t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
t_1
(+
0.607771387771
(+
(* z 11.9400905721)
(+
(* 15.234687407 (pow z 3.0))
(+ (pow z 4.0) (* 31.4690115749 (pow z 2.0))))))))
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b);
double tmp;
if ((t_1 / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + (t_1 / (0.607771387771 + ((z * 11.9400905721) + ((15.234687407 * pow(z, 3.0)) + (pow(z, 4.0) + (31.4690115749 * pow(z, 2.0)))))));
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) tmp = 0.0 if (Float64(t_1 / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(t_1 / Float64(0.607771387771 + Float64(Float64(z * 11.9400905721) + Float64(Float64(15.234687407 * (z ^ 3.0)) + Float64((z ^ 4.0) + Float64(31.4690115749 * (z ^ 2.0)))))))); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(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]), $MachinePrecision], Infinity], N[(x + N[(t$95$1 / N[(0.607771387771 + N[(N[(z * 11.9400905721), $MachinePrecision] + N[(N[(15.234687407 * N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision] + N[(N[Power[z, 4.0], $MachinePrecision] + N[(31.4690115749 * N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)\\
\mathbf{if}\;\frac{t_1}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{t_1}{0.607771387771 + \left(z \cdot 11.9400905721 + \left(15.234687407 \cdot {z}^{3} + \left({z}^{4} + 31.4690115749 \cdot {z}^{2}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.2%
Taylor expanded in z around 0 93.2%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 97.0%
+-commutative97.0%
*-commutative97.0%
fma-def97.1%
Simplified97.1%
Final simplification94.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY) (+ t_1 x) (fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1 + x;
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(t_1 + x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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]}, If[LessEqual[t$95$1, Infinity], N[(t$95$1 + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1 + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.2%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 97.0%
+-commutative97.0%
*-commutative97.0%
fma-def97.1%
Simplified97.1%
Final simplification94.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY) (+ t_1 x) (+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1 + x;
} 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 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1 + x;
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) tmp = 0 if t_1 <= math.inf: tmp = t_1 + x else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(t_1 + x); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771); tmp = 0.0; if (t_1 <= Inf) tmp = t_1 + x; else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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]}, If[LessEqual[t$95$1, Infinity], N[(t$95$1 + x), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1 + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.2%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 97.0%
+-commutative97.0%
*-commutative97.0%
Simplified97.0%
Final simplification94.4%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.4e+43) (not (<= z 1.5e+39)))
(+ x (* y 3.13060547623))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+43) || !(z <= 1.5e+39)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
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 <= (-6.4d+43)) .or. (.not. (z <= 1.5d+39))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
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 <= -6.4e+43) || !(z <= 1.5e+39)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.4e+43) or not (z <= 1.5e+39): tmp = x + (y * 3.13060547623) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.4e+43) || !(z <= 1.5e+39)) tmp = Float64(x + Float64(y * 3.13060547623)); else 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))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.4e+43) || ~((z <= 1.5e+39))) tmp = x + (y * 3.13060547623); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.4e+43], N[Not[LessEqual[z, 1.5e+39]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+43} \lor \neg \left(z \leq 1.5 \cdot 10^{+39}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;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}\\
\end{array}
\end{array}
if z < -6.40000000000000029e43 or 1.5e39 < z Initial program 6.7%
Simplified11.9%
Taylor expanded in z around inf 89.7%
+-commutative89.7%
*-commutative89.7%
Simplified89.7%
if -6.40000000000000029e43 < z < 1.5e39Initial program 97.9%
Taylor expanded in z around 0 97.6%
*-commutative97.6%
Simplified97.6%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.415)
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))
(if (<= z 1.38e+26)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.415) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 1.38e+26) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
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 <= (-0.415d0)) then
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
else if (z <= 1.38d+26) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * 3.13060547623d0)
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 <= -0.415) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 1.38e+26) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.415: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) elif z <= 1.38e+26: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.415) tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 1.38e+26) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.415) tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); elseif (z <= 1.38e+26) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.415], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.38e+26], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.415:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.38 \cdot 10^{+26}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -0.41499999999999998Initial program 11.7%
Simplified21.8%
Taylor expanded in z around -inf 81.2%
+-commutative81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
cancel-sign-sub-inv81.2%
metadata-eval81.2%
distribute-rgt-out81.2%
metadata-eval81.2%
Simplified81.2%
if -0.41499999999999998 < z < 1.38e26Initial program 99.8%
Taylor expanded in z around 0 99.0%
*-commutative85.3%
Simplified99.0%
if 1.38e26 < z Initial program 14.1%
Simplified17.4%
Taylor expanded in z around inf 93.4%
+-commutative93.4%
*-commutative93.4%
Simplified93.4%
Final simplification93.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.75e+15) (not (<= z 1.8e+15)))
(+ x (* y 3.13060547623))
(+
x
(/
(+
(* y b)
(*
y
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))))
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.75e+15) || !(z <= 1.8e+15)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (((y * b) + (y * (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)))) / 0.607771387771);
}
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 <= (-1.75d+15)) .or. (.not. (z <= 1.8d+15))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (((y * b) + (y * (z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)))) / 0.607771387771d0)
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 <= -1.75e+15) || !(z <= 1.8e+15)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (((y * b) + (y * (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)))) / 0.607771387771);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.75e+15) or not (z <= 1.8e+15): tmp = x + (y * 3.13060547623) else: tmp = x + (((y * b) + (y * (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)))) / 0.607771387771) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.75e+15) || !(z <= 1.8e+15)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(y * Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)))) / 0.607771387771)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.75e+15) || ~((z <= 1.8e+15))) tmp = x + (y * 3.13060547623); else tmp = x + (((y * b) + (y * (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)))) / 0.607771387771); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.75e+15], N[Not[LessEqual[z, 1.8e+15]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(y * N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+15} \lor \neg \left(z \leq 1.8 \cdot 10^{+15}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right)\right)}{0.607771387771}\\
\end{array}
\end{array}
if z < -1.75e15 or 1.8e15 < z Initial program 13.5%
Simplified20.8%
Taylor expanded in z around inf 87.1%
+-commutative87.1%
*-commutative87.1%
Simplified87.1%
if -1.75e15 < z < 1.8e15Initial program 99.7%
Taylor expanded in b around 0 98.4%
Taylor expanded in z around 0 96.3%
*-commutative83.8%
Simplified96.3%
Taylor expanded in z around 0 95.9%
Final simplification92.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.415)
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))
(if (<= z 2.05e+20)
(+ x (/ (+ (* y b) (* a (* y z))) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.415) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 2.05e+20) {
tmp = x + (((y * b) + (a * (y * z))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
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 <= (-0.415d0)) then
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
else if (z <= 2.05d+20) then
tmp = x + (((y * b) + (a * (y * z))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * 3.13060547623d0)
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 <= -0.415) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 2.05e+20) {
tmp = x + (((y * b) + (a * (y * z))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.415: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) elif z <= 2.05e+20: tmp = x + (((y * b) + (a * (y * z))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.415) tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 2.05e+20) tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(a * Float64(y * z))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.415) tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); elseif (z <= 2.05e+20) tmp = x + (((y * b) + (a * (y * z))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.415], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+20], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.415:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{y \cdot b + a \cdot \left(y \cdot z\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -0.41499999999999998Initial program 11.7%
Simplified21.8%
Taylor expanded in z around -inf 81.2%
+-commutative81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
cancel-sign-sub-inv81.2%
metadata-eval81.2%
distribute-rgt-out81.2%
metadata-eval81.2%
Simplified81.2%
if -0.41499999999999998 < z < 2.05e20Initial program 99.8%
Taylor expanded in b around 0 98.4%
Taylor expanded in z around 0 97.6%
*-commutative84.9%
Simplified97.6%
Taylor expanded in z around 0 95.9%
*-commutative95.9%
Simplified95.9%
if 2.05e20 < z Initial program 19.7%
Simplified22.8%
Taylor expanded in z around inf 91.8%
+-commutative91.8%
*-commutative91.8%
Simplified91.8%
Final simplification91.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -6200.0)
t_1
(if (<= z 9.5e-174)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 9e-78)
(+ x (* (* a (* y z)) 1.6453555072203998))
(if (<= z 1.8e+28) (+ x (/ (* y b) 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 <= -6200.0) {
tmp = t_1;
} else if (z <= 9.5e-174) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 9e-78) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else if (z <= 1.8e+28) {
tmp = x + ((y * b) / 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 <= (-6200.0d0)) then
tmp = t_1
else if (z <= 9.5d-174) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 9d-78) then
tmp = x + ((a * (y * z)) * 1.6453555072203998d0)
else if (z <= 1.8d+28) then
tmp = x + ((y * b) / 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 <= -6200.0) {
tmp = t_1;
} else if (z <= 9.5e-174) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 9e-78) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else if (z <= 1.8e+28) {
tmp = x + ((y * b) / 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 <= -6200.0: tmp = t_1 elif z <= 9.5e-174: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 9e-78: tmp = x + ((a * (y * z)) * 1.6453555072203998) elif z <= 1.8e+28: tmp = x + ((y * b) / 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 <= -6200.0) tmp = t_1; elseif (z <= 9.5e-174) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 9e-78) tmp = Float64(x + Float64(Float64(a * Float64(y * z)) * 1.6453555072203998)); elseif (z <= 1.8e+28) tmp = Float64(x + Float64(Float64(y * b) / 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 <= -6200.0) tmp = t_1; elseif (z <= 9.5e-174) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 9e-78) tmp = x + ((a * (y * z)) * 1.6453555072203998); elseif (z <= 1.8e+28) tmp = x + ((y * b) / 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, -6200.0], t$95$1, If[LessEqual[z, 9.5e-174], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-78], N[(x + N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+28], N[(x + N[(N[(y * b), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -6200:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-174}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-78}:\\
\;\;\;\;x + \left(a \cdot \left(y \cdot z\right)\right) \cdot 1.6453555072203998\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+28}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -6200 or 1.8e28 < z Initial program 11.9%
Simplified19.3%
Taylor expanded in z around inf 86.8%
+-commutative86.8%
*-commutative86.8%
Simplified86.8%
if -6200 < z < 9.50000000000000075e-174Initial program 99.7%
Taylor expanded in z around 0 90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in z around 0 90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in z around 0 90.5%
associate-*r*90.5%
*-commutative90.5%
associate-*l*90.6%
Simplified90.6%
if 9.50000000000000075e-174 < z < 9e-78Initial program 99.7%
Taylor expanded in a around inf 83.4%
Taylor expanded in z around 0 83.5%
if 9e-78 < z < 1.8e28Initial program 99.8%
Taylor expanded in z around 0 73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 73.4%
Final simplification87.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -180.0)
t_1
(if (<= z 9.5e-174)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 2.6e-79)
(+ x (* 1.6453555072203998 (* y (* z a))))
(if (<= z 4.4e+26) (+ x (/ (* y b) 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 <= -180.0) {
tmp = t_1;
} else if (z <= 9.5e-174) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.6e-79) {
tmp = x + (1.6453555072203998 * (y * (z * a)));
} else if (z <= 4.4e+26) {
tmp = x + ((y * b) / 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 <= (-180.0d0)) then
tmp = t_1
else if (z <= 9.5d-174) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 2.6d-79) then
tmp = x + (1.6453555072203998d0 * (y * (z * a)))
else if (z <= 4.4d+26) then
tmp = x + ((y * b) / 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 <= -180.0) {
tmp = t_1;
} else if (z <= 9.5e-174) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.6e-79) {
tmp = x + (1.6453555072203998 * (y * (z * a)));
} else if (z <= 4.4e+26) {
tmp = x + ((y * b) / 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 <= -180.0: tmp = t_1 elif z <= 9.5e-174: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 2.6e-79: tmp = x + (1.6453555072203998 * (y * (z * a))) elif z <= 4.4e+26: tmp = x + ((y * b) / 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 <= -180.0) tmp = t_1; elseif (z <= 9.5e-174) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 2.6e-79) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * Float64(z * a)))); elseif (z <= 4.4e+26) tmp = Float64(x + Float64(Float64(y * b) / 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 <= -180.0) tmp = t_1; elseif (z <= 9.5e-174) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 2.6e-79) tmp = x + (1.6453555072203998 * (y * (z * a))); elseif (z <= 4.4e+26) tmp = x + ((y * b) / 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, -180.0], t$95$1, If[LessEqual[z, 9.5e-174], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e-79], N[(x + N[(1.6453555072203998 * N[(y * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e+26], N[(x + N[(N[(y * b), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -180:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-174}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-79}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot \left(z \cdot a\right)\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+26}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -180 or 4.40000000000000014e26 < z Initial program 11.9%
Simplified19.3%
Taylor expanded in z around inf 86.8%
+-commutative86.8%
*-commutative86.8%
Simplified86.8%
if -180 < z < 9.50000000000000075e-174Initial program 99.7%
Taylor expanded in z around 0 90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in z around 0 90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in z around 0 90.5%
associate-*r*90.5%
*-commutative90.5%
associate-*l*90.6%
Simplified90.6%
if 9.50000000000000075e-174 < z < 2.59999999999999994e-79Initial program 99.7%
Taylor expanded in a around inf 83.4%
Taylor expanded in z around 0 83.4%
*-commutative62.5%
Simplified83.4%
Taylor expanded in z around 0 83.5%
associate-*r*65.7%
*-commutative65.7%
associate-*l*83.6%
Simplified83.6%
if 2.59999999999999994e-79 < z < 4.40000000000000014e26Initial program 99.8%
Taylor expanded in z around 0 73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 73.4%
Final simplification87.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -32000.0)
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))
(if (<= z 9.5e-174)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 4.6e-79)
(+ x (* 1.6453555072203998 (* y (* z a))))
(if (<= z 6.8e+25)
(+ x (/ (* y b) 0.607771387771))
(+ x (* y 3.13060547623)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -32000.0) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 9.5e-174) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 4.6e-79) {
tmp = x + (1.6453555072203998 * (y * (z * a)));
} else if (z <= 6.8e+25) {
tmp = x + ((y * b) / 0.607771387771);
} else {
tmp = x + (y * 3.13060547623);
}
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 <= (-32000.0d0)) then
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
else if (z <= 9.5d-174) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 4.6d-79) then
tmp = x + (1.6453555072203998d0 * (y * (z * a)))
else if (z <= 6.8d+25) then
tmp = x + ((y * b) / 0.607771387771d0)
else
tmp = x + (y * 3.13060547623d0)
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 <= -32000.0) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 9.5e-174) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 4.6e-79) {
tmp = x + (1.6453555072203998 * (y * (z * a)));
} else if (z <= 6.8e+25) {
tmp = x + ((y * b) / 0.607771387771);
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -32000.0: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) elif z <= 9.5e-174: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 4.6e-79: tmp = x + (1.6453555072203998 * (y * (z * a))) elif z <= 6.8e+25: tmp = x + ((y * b) / 0.607771387771) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -32000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 9.5e-174) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 4.6e-79) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * Float64(z * a)))); elseif (z <= 6.8e+25) tmp = Float64(x + Float64(Float64(y * b) / 0.607771387771)); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -32000.0) tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); elseif (z <= 9.5e-174) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 4.6e-79) tmp = x + (1.6453555072203998 * (y * (z * a))); elseif (z <= 6.8e+25) tmp = x + ((y * b) / 0.607771387771); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -32000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-174], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e-79], N[(x + N[(1.6453555072203998 * N[(y * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+25], N[(x + N[(N[(y * b), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -32000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-174}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-79}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot \left(z \cdot a\right)\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+25}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -32000Initial program 10.4%
Simplified20.6%
Taylor expanded in z around -inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
cancel-sign-sub-inv82.4%
metadata-eval82.4%
distribute-rgt-out82.4%
metadata-eval82.4%
Simplified82.4%
if -32000 < z < 9.50000000000000075e-174Initial program 99.7%
Taylor expanded in z around 0 90.5%
*-commutative90.5%
Simplified90.5%
Taylor expanded in z around 0 90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in z around 0 90.5%
associate-*r*90.5%
*-commutative90.5%
associate-*l*90.6%
Simplified90.6%
if 9.50000000000000075e-174 < z < 4.60000000000000023e-79Initial program 99.7%
Taylor expanded in a around inf 83.4%
Taylor expanded in z around 0 83.4%
*-commutative62.5%
Simplified83.4%
Taylor expanded in z around 0 83.5%
associate-*r*65.7%
*-commutative65.7%
associate-*l*83.6%
Simplified83.6%
if 4.60000000000000023e-79 < z < 6.79999999999999967e25Initial program 99.8%
Taylor expanded in z around 0 73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around 0 73.4%
if 6.79999999999999967e25 < z Initial program 14.1%
Simplified17.4%
Taylor expanded in z around inf 93.4%
+-commutative93.4%
*-commutative93.4%
Simplified93.4%
Final simplification87.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -6200.0) (not (<= z 2.95e+29))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6200.0) || !(z <= 2.95e+29)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
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 <= (-6200.0d0)) .or. (.not. (z <= 2.95d+29))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
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 <= -6200.0) || !(z <= 2.95e+29)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6200.0) or not (z <= 2.95e+29): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6200.0) || !(z <= 2.95e+29)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6200.0) || ~((z <= 2.95e+29))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6200.0], N[Not[LessEqual[z, 2.95e+29]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6200 \lor \neg \left(z \leq 2.95 \cdot 10^{+29}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -6200 or 2.9499999999999999e29 < z Initial program 11.9%
Simplified19.3%
Taylor expanded in z around inf 86.8%
+-commutative86.8%
*-commutative86.8%
Simplified86.8%
if -6200 < z < 2.9499999999999999e29Initial program 99.7%
Taylor expanded in z around 0 84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in z around 0 84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in z around 0 84.7%
associate-*r*84.8%
*-commutative84.8%
associate-*l*84.8%
Simplified84.8%
Final simplification85.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -40000.0) (not (<= z 1.95e+31))) (+ x (* y 3.13060547623)) (+ x (* y (* b 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -40000.0) || !(z <= 1.95e+31)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
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 <= (-40000.0d0)) .or. (.not. (z <= 1.95d+31))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (y * (b * 1.6453555072203998d0))
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 <= -40000.0) || !(z <= 1.95e+31)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -40000.0) or not (z <= 1.95e+31): tmp = x + (y * 3.13060547623) else: tmp = x + (y * (b * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -40000.0) || !(z <= 1.95e+31)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -40000.0) || ~((z <= 1.95e+31))) tmp = x + (y * 3.13060547623); else tmp = x + (y * (b * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -40000.0], N[Not[LessEqual[z, 1.95e+31]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -40000 \lor \neg \left(z \leq 1.95 \cdot 10^{+31}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -4e4 or 1.95e31 < z Initial program 11.9%
Simplified19.3%
Taylor expanded in z around inf 86.8%
+-commutative86.8%
*-commutative86.8%
Simplified86.8%
if -4e4 < z < 1.95e31Initial program 99.7%
Simplified99.8%
Taylor expanded in z around 0 84.7%
associate-*r*84.8%
Simplified84.8%
Final simplification85.6%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.85e-128) x (if (<= x 110000000.0) (* (* y b) 1.6453555072203998) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.85e-128) {
tmp = x;
} else if (x <= 110000000.0) {
tmp = (y * b) * 1.6453555072203998;
} 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 <= (-1.85d-128)) then
tmp = x
else if (x <= 110000000.0d0) then
tmp = (y * b) * 1.6453555072203998d0
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 <= -1.85e-128) {
tmp = x;
} else if (x <= 110000000.0) {
tmp = (y * b) * 1.6453555072203998;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.85e-128: tmp = x elif x <= 110000000.0: tmp = (y * b) * 1.6453555072203998 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.85e-128) tmp = x; elseif (x <= 110000000.0) tmp = Float64(Float64(y * b) * 1.6453555072203998); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.85e-128) tmp = x; elseif (x <= 110000000.0) tmp = (y * b) * 1.6453555072203998; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.85e-128], x, If[LessEqual[x, 110000000.0], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.85 \cdot 10^{-128}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 110000000:\\
\;\;\;\;\left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.85e-128 or 1.1e8 < x Initial program 63.7%
Simplified67.5%
Taylor expanded in y around 0 63.9%
if -1.85e-128 < x < 1.1e8Initial program 62.8%
Simplified65.0%
Taylor expanded in z around 0 51.5%
associate-*r*51.5%
Simplified51.5%
+-commutative51.5%
fma-def51.5%
*-commutative51.5%
Applied egg-rr51.5%
Taylor expanded in b around inf 38.5%
Final simplification53.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.1e+192) (* b (* y 1.6453555072203998)) (+ x (* y 3.13060547623))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.1e+192) {
tmp = b * (y * 1.6453555072203998);
} else {
tmp = x + (y * 3.13060547623);
}
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 (y <= (-2.1d+192)) then
tmp = b * (y * 1.6453555072203998d0)
else
tmp = x + (y * 3.13060547623d0)
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 (y <= -2.1e+192) {
tmp = b * (y * 1.6453555072203998);
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.1e+192: tmp = b * (y * 1.6453555072203998) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.1e+192) tmp = Float64(b * Float64(y * 1.6453555072203998)); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.1e+192) tmp = b * (y * 1.6453555072203998); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.1e+192], N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+192}:\\
\;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if y < -2.09999999999999995e192Initial program 64.8%
Simplified72.2%
Taylor expanded in z around 0 55.0%
associate-*r*55.0%
Simplified55.0%
+-commutative55.0%
fma-def55.0%
*-commutative55.0%
Applied egg-rr55.0%
Taylor expanded in b around inf 50.9%
associate-*r*50.9%
*-commutative50.9%
associate-*r*50.9%
Simplified50.9%
if -2.09999999999999995e192 < y Initial program 63.2%
Simplified65.8%
Taylor expanded in z around inf 62.4%
+-commutative62.4%
*-commutative62.4%
Simplified62.4%
Final simplification61.3%
(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 63.4%
Simplified66.5%
Taylor expanded in y around 0 44.5%
Final simplification44.5%
(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 2023310
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:herbie-target
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (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)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ 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))))