
(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 16 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 (/ y (* z z))))
(if (<= z -3.8e+30)
(+
x
(+
(* (/ y z) (/ t z))
(-
(+ (* y 3.13060547623) (* (/ y z) -36.52704169880642))
(fma 98.5170599679272 t_1 (/ (* y -556.47806218377) (* z z))))))
(if (<= z 1.4e+46)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(+
x
(-
(-
(fma y 3.13060547623 (/ y (/ (* z z) t)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
t_1
(/ (* (* y 36.52704169880642) -15.234687407) (* z z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y / (z * z);
double tmp;
if (z <= -3.8e+30) {
tmp = x + (((y / z) * (t / z)) + (((y * 3.13060547623) + ((y / z) * -36.52704169880642)) - fma(98.5170599679272, t_1, ((y * -556.47806218377) / (z * z)))));
} else if (z <= 1.4e+46) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + ((fma(y, 3.13060547623, (y / ((z * z) / t))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, t_1, (((y * 36.52704169880642) * -15.234687407) / (z * z))));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y / Float64(z * z)) tmp = 0.0 if (z <= -3.8e+30) tmp = Float64(x + Float64(Float64(Float64(y / z) * Float64(t / z)) + Float64(Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642)) - fma(98.5170599679272, t_1, Float64(Float64(y * -556.47806218377) / Float64(z * z)))))); elseif (z <= 1.4e+46) tmp = Float64(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)) + x); else tmp = Float64(x + Float64(Float64(fma(y, 3.13060547623, Float64(y / Float64(Float64(z * z) / t))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, t_1, Float64(Float64(Float64(y * 36.52704169880642) * -15.234687407) / Float64(z * z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+30], N[(x + N[(N[(N[(y / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * t$95$1 + N[(N[(y * -556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+46], N[(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] + x), $MachinePrecision], N[(x + N[(N[(N[(y * 3.13060547623 + N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * t$95$1 + N[(N[(N[(y * 36.52704169880642), $MachinePrecision] * -15.234687407), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot z}\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\
\;\;\;\;x + \left(\frac{y}{z} \cdot \frac{t}{z} + \left(\left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right) - \mathsf{fma}\left(98.5170599679272, t_1, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+46}:\\
\;\;\;\;\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} + x\\
\mathbf{else}:\\
\;\;\;\;x + \left(\left(\mathsf{fma}\left(y, 3.13060547623, \frac{y}{\frac{z \cdot z}{t}}\right) - \frac{y \cdot 36.52704169880642}{z}\right) - \mathsf{fma}\left(98.5170599679272, t_1, \frac{\left(y \cdot 36.52704169880642\right) \cdot -15.234687407}{z \cdot z}\right)\right)\\
\end{array}
\end{array}
if z < -3.8000000000000001e30Initial program 2.8%
Taylor expanded in b around 0 2.8%
Taylor expanded in z around inf 87.0%
associate--l+87.0%
unpow287.0%
times-frac99.9%
fma-def99.9%
*-commutative99.9%
associate-*r/99.9%
+-commutative99.9%
associate--r+99.9%
Simplified99.9%
if -3.8000000000000001e30 < z < 1.40000000000000009e46Initial program 98.4%
if 1.40000000000000009e46 < z Initial program 8.5%
associate-*l/10.0%
*-commutative10.0%
fma-def10.0%
*-commutative10.0%
fma-def10.0%
*-commutative10.0%
fma-def10.0%
*-commutative10.0%
fma-def10.0%
Simplified10.0%
Taylor expanded in z around -inf 89.9%
+-commutative89.9%
mul-1-neg89.9%
unsub-neg89.9%
+-commutative89.9%
*-commutative89.9%
fma-def89.9%
associate-/l*98.2%
unpow298.2%
distribute-rgt-out--98.2%
metadata-eval98.2%
+-commutative98.2%
fma-def98.2%
Simplified96.8%
Final simplification98.3%
(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
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)
(fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))))
(+
x
(+
(* (/ y z) (/ t z))
(-
(+ (* y 3.13060547623) (* (/ y z) -36.52704169880642))
(fma
98.5170599679272
(/ y (* z z))
(/ (* y -556.47806218377) (* z z))))))))
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(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)));
} else {
tmp = x + (((y / z) * (t / z)) + (((y * 3.13060547623) + ((y / z) * -36.52704169880642)) - fma(98.5170599679272, (y / (z * z)), ((y * -556.47806218377) / (z * z)))));
}
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(y / Float64(fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)))); else tmp = Float64(x + Float64(Float64(Float64(y / z) * Float64(t / z)) + Float64(Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642)) - fma(98.5170599679272, Float64(y / Float64(z * z)), Float64(Float64(y * -556.47806218377) / Float64(z * z)))))); 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[(y / N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $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}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{y}{z} \cdot \frac{t}{z} + \left(\left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\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.3%
associate-/l*97.3%
fma-def97.3%
fma-def97.3%
fma-def97.3%
fma-def97.3%
fma-def97.3%
fma-def97.3%
fma-def97.3%
Simplified97.3%
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 inf 87.8%
associate--l+87.8%
unpow287.8%
times-frac99.9%
fma-def99.9%
*-commutative99.9%
associate-*r/99.9%
+-commutative99.9%
associate--r+99.9%
Simplified99.0%
Final simplification97.9%
(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
(+
(* (/ y z) (/ t z))
(-
(+ (* y 3.13060547623) (* (/ y z) -36.52704169880642))
(fma
98.5170599679272
(/ y (* z z))
(/ (* y -556.47806218377) (* z z))))))))
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 + (((y / z) * (t / z)) + (((y * 3.13060547623) + ((y / z) * -36.52704169880642)) - fma(98.5170599679272, (y / (z * z)), ((y * -556.47806218377) / (z * z)))));
}
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(Float64(y / z) * Float64(t / z)) + Float64(Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642)) - fma(98.5170599679272, Float64(y / Float64(z * z)), Float64(Float64(y * -556.47806218377) / Float64(z * z)))))); 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 / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $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(\frac{y}{z} \cdot \frac{t}{z} + \left(\left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\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.3%
associate-*l/97.3%
*-commutative97.3%
fma-def97.3%
*-commutative97.3%
fma-def97.3%
*-commutative97.3%
fma-def97.3%
*-commutative97.3%
fma-def97.3%
Simplified97.3%
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 inf 87.8%
associate--l+87.8%
unpow287.8%
times-frac99.9%
fma-def99.9%
*-commutative99.9%
associate-*r/99.9%
+-commutative99.9%
associate--r+99.9%
Simplified99.0%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -9e+29) (not (<= z 9.2e+75)))
(+
x
(+
(* (/ y z) (/ t z))
(-
(+ (* y 3.13060547623) (* (/ y z) -36.52704169880642))
(fma
98.5170599679272
(/ y (* z z))
(/ (* y -556.47806218377) (* z z))))))
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -9e+29) || !(z <= 9.2e+75)) {
tmp = x + (((y / z) * (t / z)) + (((y * 3.13060547623) + ((y / z) * -36.52704169880642)) - fma(98.5170599679272, (y / (z * z)), ((y * -556.47806218377) / (z * z)))));
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -9e+29) || !(z <= 9.2e+75)) tmp = Float64(x + Float64(Float64(Float64(y / z) * Float64(t / z)) + Float64(Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642)) - fma(98.5170599679272, Float64(y / Float64(z * z)), Float64(Float64(y * -556.47806218377) / Float64(z * z)))))); else tmp = Float64(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)) + x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9e+29], N[Not[LessEqual[z, 9.2e+75]], $MachinePrecision]], N[(x + N[(N[(N[(y / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision] - N[(98.5170599679272 * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+29} \lor \neg \left(z \leq 9.2 \cdot 10^{+75}\right):\\
\;\;\;\;x + \left(\frac{y}{z} \cdot \frac{t}{z} + \left(\left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\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} + x\\
\end{array}
\end{array}
if z < -9.0000000000000005e29 or 9.1999999999999994e75 < z Initial program 1.3%
Taylor expanded in b around 0 1.3%
Taylor expanded in z around inf 87.9%
associate--l+87.9%
unpow287.9%
times-frac99.9%
fma-def99.9%
*-commutative99.9%
associate-*r/99.9%
+-commutative99.9%
associate--r+99.9%
Simplified99.1%
if -9.0000000000000005e29 < z < 9.1999999999999994e75Initial program 97.3%
Final simplification98.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))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY)
(+ t_1 x)
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(-
0.31942702700572795
(/ (+ 3.241970391368047 (* t 0.10203362558171805)) (* z z)))))))))
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.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
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.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
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.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))) 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 / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(3.241970391368047 + Float64(t * 0.10203362558171805)) / Float64(z * z)))))); 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.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))); 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 / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(3.241970391368047 + N[(t * 0.10203362558171805), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047 + t \cdot 0.10203362558171805}{z \cdot z}\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.3%
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%
associate-/l*0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
mul-1-neg98.7%
*-commutative98.7%
unpow298.7%
Simplified98.7%
Final simplification95.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -4.5e+53) (not (<= z 9.2e+75)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(-
0.31942702700572795
(/ (+ 3.241970391368047 (* t 0.10203362558171805)) (* z z))))))
(+
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 <= -4.5e+53) || !(z <= 9.2e+75)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} 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 <= (-4.5d+53)) .or. (.not. (z <= 9.2d+75))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
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 <= -4.5e+53) || !(z <= 9.2e+75)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} 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 <= -4.5e+53) or not (z <= 9.2e+75): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))) 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 <= -4.5e+53) || !(z <= 9.2e+75)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(3.241970391368047 + Float64(t * 0.10203362558171805)) / Float64(z * z)))))); 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 <= -4.5e+53) || ~((z <= 9.2e+75))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))); 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, -4.5e+53], N[Not[LessEqual[z, 9.2e+75]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(3.241970391368047 + N[(t * 0.10203362558171805), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -4.5 \cdot 10^{+53} \lor \neg \left(z \leq 9.2 \cdot 10^{+75}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047 + t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\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 < -4.5000000000000002e53 or 9.1999999999999994e75 < z Initial program 0.2%
associate-/l*4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
Simplified4.2%
Taylor expanded in z around inf 97.7%
associate-*r/97.7%
metadata-eval97.7%
mul-1-neg97.7%
*-commutative97.7%
unpow297.7%
Simplified97.7%
if -4.5000000000000002e53 < z < 9.1999999999999994e75Initial program 96.1%
Taylor expanded in z around 0 95.4%
*-commutative92.0%
Simplified95.4%
Final simplification96.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.3e+50) (not (<= z 9.2e+75)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(-
0.31942702700572795
(/ (+ 3.241970391368047 (* t 0.10203362558171805)) (* z z))))))
(+
x
(/
(+ (* y b) (* y (* z (+ a (* z t)))))
(+
(* 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 <= -1.3e+50) || !(z <= 9.2e+75)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} else {
tmp = x + (((y * b) + (y * (z * (a + (z * t))))) / ((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 <= (-1.3d+50)) .or. (.not. (z <= 9.2d+75))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
else
tmp = x + (((y * b) + (y * (z * (a + (z * t))))) / ((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 <= -1.3e+50) || !(z <= 9.2e+75)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} else {
tmp = x + (((y * b) + (y * (z * (a + (z * t))))) / ((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 <= -1.3e+50) or not (z <= 9.2e+75): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))) else: tmp = x + (((y * b) + (y * (z * (a + (z * t))))) / ((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 <= -1.3e+50) || !(z <= 9.2e+75)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(3.241970391368047 + Float64(t * 0.10203362558171805)) / Float64(z * z)))))); else tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(y * Float64(z * Float64(a + Float64(z * t))))) / 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 <= -1.3e+50) || ~((z <= 9.2e+75))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))); else tmp = x + (((y * b) + (y * (z * (a + (z * t))))) / ((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, -1.3e+50], N[Not[LessEqual[z, 9.2e+75]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(3.241970391368047 + N[(t * 0.10203362558171805), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(y * N[(z * N[(a + N[(z * t), $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 -1.3 \cdot 10^{+50} \lor \neg \left(z \leq 9.2 \cdot 10^{+75}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047 + t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(a + z \cdot t\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 < -1.3000000000000001e50 or 9.1999999999999994e75 < z Initial program 0.2%
associate-/l*4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
fma-def4.2%
Simplified4.2%
Taylor expanded in z around inf 97.7%
associate-*r/97.7%
metadata-eval97.7%
mul-1-neg97.7%
*-commutative97.7%
unpow297.7%
Simplified97.7%
if -1.3000000000000001e50 < z < 9.1999999999999994e75Initial program 96.1%
Taylor expanded in b around 0 94.8%
Taylor expanded in z around 0 91.3%
associate-*r*86.2%
*-commutative86.2%
associate-*r*91.9%
distribute-lft-out93.8%
*-commutative93.8%
unpow293.8%
Simplified93.8%
Taylor expanded in y around 0 93.8%
+-commutative93.8%
*-commutative93.8%
unpow293.8%
associate-*r*93.8%
*-commutative93.8%
distribute-lft-out93.8%
Simplified93.8%
Final simplification95.3%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -10000000000.0) (not (<= z 1.25e+56)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(-
0.31942702700572795
(/ (+ 3.241970391368047 (* t 0.10203362558171805)) (* z z))))))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -10000000000.0) || !(z <= 1.25e+56)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
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 <= (-10000000000.0d0)) .or. (.not. (z <= 1.25d+56))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
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 <= -10000000000.0) || !(z <= 1.25e+56)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -10000000000.0) or not (z <= 1.25e+56): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -10000000000.0) || !(z <= 1.25e+56)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(3.241970391368047 + Float64(t * 0.10203362558171805)) / Float64(z * z)))))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -10000000000.0) || ~((z <= 1.25e+56))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -10000000000.0], N[Not[LessEqual[z, 1.25e+56]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(3.241970391368047 + N[(t * 0.10203362558171805), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -10000000000 \lor \neg \left(z \leq 1.25 \cdot 10^{+56}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047 + t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -1e10 or 1.25000000000000006e56 < z Initial program 7.8%
associate-/l*12.1%
fma-def12.1%
fma-def12.1%
fma-def12.1%
fma-def12.1%
fma-def12.1%
fma-def12.1%
fma-def12.1%
Simplified12.1%
Taylor expanded in z around inf 94.3%
associate-*r/94.3%
metadata-eval94.3%
mul-1-neg94.3%
*-commutative94.3%
unpow294.3%
Simplified94.3%
if -1e10 < z < 1.25000000000000006e56Initial program 98.4%
Taylor expanded in z around 0 95.0%
*-commutative89.1%
Simplified95.0%
Taylor expanded in z around 0 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification94.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.6e+46)
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(-
0.31942702700572795
(/ (+ 3.241970391368047 (* t 0.10203362558171805)) (* z z))))))
(if (<= z 1.8e+36)
(+ x (/ (* y (+ b (* z a))) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (/ y 0.31942702700572795)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.6e+46) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} else if (z <= 1.8e+36) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y / 0.31942702700572795);
}
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 <= (-2.6d+46)) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
else if (z <= 1.8d+36) then
tmp = x + ((y * (b + (z * a))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y / 0.31942702700572795d0)
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 <= -2.6e+46) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
} else if (z <= 1.8e+36) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y / 0.31942702700572795);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.6e+46: tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))) elif z <= 1.8e+36: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y / 0.31942702700572795) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.6e+46) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(3.241970391368047 + Float64(t * 0.10203362558171805)) / Float64(z * z)))))); elseif (z <= 1.8e+36) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y / 0.31942702700572795)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.6e+46) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z))))); elseif (z <= 1.8e+36) tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y / 0.31942702700572795); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.6e+46], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(3.241970391368047 + N[(t * 0.10203362558171805), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+36], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+46}:\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047 + t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+36}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\end{array}
\end{array}
if z < -2.60000000000000013e46Initial program 0.6%
associate-/l*9.1%
fma-def9.1%
fma-def9.1%
fma-def9.1%
fma-def9.1%
fma-def9.1%
fma-def9.1%
fma-def9.1%
Simplified9.1%
Taylor expanded in z around inf 95.1%
associate-*r/95.1%
metadata-eval95.1%
mul-1-neg95.1%
*-commutative95.1%
unpow295.1%
Simplified95.1%
if -2.60000000000000013e46 < z < 1.7999999999999999e36Initial program 98.3%
Taylor expanded in z around 0 92.0%
fma-def92.0%
Simplified92.0%
Taylor expanded in z around 0 90.8%
*-commutative90.8%
Simplified90.8%
Taylor expanded in y around 0 92.1%
if 1.7999999999999999e36 < z Initial program 15.4%
associate-/l*18.2%
fma-def18.2%
fma-def18.2%
fma-def18.2%
fma-def18.2%
fma-def18.2%
fma-def18.2%
fma-def18.2%
Simplified18.2%
Taylor expanded in z around inf 89.6%
Final simplification92.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.6e+46) (not (<= z 2.3e+36))) (+ x (/ y 0.31942702700572795)) (+ x (/ (* y (+ b (* z a))) (+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.6e+46) || !(z <= 2.3e+36)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721)));
}
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 <= (-2.6d+46)) .or. (.not. (z <= 2.3d+36))) then
tmp = x + (y / 0.31942702700572795d0)
else
tmp = x + ((y * (b + (z * a))) / (0.607771387771d0 + (z * 11.9400905721d0)))
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 <= -2.6e+46) || !(z <= 2.3e+36)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.6e+46) or not (z <= 2.3e+36): tmp = x + (y / 0.31942702700572795) else: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.6e+46) || !(z <= 2.3e+36)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.6e+46) || ~((z <= 2.3e+36))) tmp = x + (y / 0.31942702700572795); else tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.6e+46], N[Not[LessEqual[z, 2.3e+36]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+46} \lor \neg \left(z \leq 2.3 \cdot 10^{+36}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -2.60000000000000013e46 or 2.29999999999999996e36 < z Initial program 9.5%
associate-/l*14.6%
fma-def14.6%
fma-def14.6%
fma-def14.6%
fma-def14.6%
fma-def14.6%
fma-def14.6%
fma-def14.6%
Simplified14.6%
Taylor expanded in z around inf 91.5%
if -2.60000000000000013e46 < z < 2.29999999999999996e36Initial program 98.3%
Taylor expanded in z around 0 92.0%
fma-def92.0%
Simplified92.0%
Taylor expanded in z around 0 90.8%
*-commutative90.8%
Simplified90.8%
Taylor expanded in y around 0 92.1%
Final simplification91.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ y 0.31942702700572795))))
(if (<= z -8.6e+48)
t_1
(if (<= z 8.8e-178)
(+ x (* (* y b) 1.6453555072203998))
(if (<= z 4.7e-91)
(+ x (* 1.6453555072203998 (* a (* y z))))
(if (<= z 2e+35) (+ x (* b (* y 1.6453555072203998))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / 0.31942702700572795);
double tmp;
if (z <= -8.6e+48) {
tmp = t_1;
} else if (z <= 8.8e-178) {
tmp = x + ((y * b) * 1.6453555072203998);
} else if (z <= 4.7e-91) {
tmp = x + (1.6453555072203998 * (a * (y * z)));
} else if (z <= 2e+35) {
tmp = x + (b * (y * 1.6453555072203998));
} 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 / 0.31942702700572795d0)
if (z <= (-8.6d+48)) then
tmp = t_1
else if (z <= 8.8d-178) then
tmp = x + ((y * b) * 1.6453555072203998d0)
else if (z <= 4.7d-91) then
tmp = x + (1.6453555072203998d0 * (a * (y * z)))
else if (z <= 2d+35) then
tmp = x + (b * (y * 1.6453555072203998d0))
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 / 0.31942702700572795);
double tmp;
if (z <= -8.6e+48) {
tmp = t_1;
} else if (z <= 8.8e-178) {
tmp = x + ((y * b) * 1.6453555072203998);
} else if (z <= 4.7e-91) {
tmp = x + (1.6453555072203998 * (a * (y * z)));
} else if (z <= 2e+35) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / 0.31942702700572795) tmp = 0 if z <= -8.6e+48: tmp = t_1 elif z <= 8.8e-178: tmp = x + ((y * b) * 1.6453555072203998) elif z <= 4.7e-91: tmp = x + (1.6453555072203998 * (a * (y * z))) elif z <= 2e+35: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / 0.31942702700572795)) tmp = 0.0 if (z <= -8.6e+48) tmp = t_1; elseif (z <= 8.8e-178) tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); elseif (z <= 4.7e-91) tmp = Float64(x + Float64(1.6453555072203998 * Float64(a * Float64(y * z)))); elseif (z <= 2e+35) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / 0.31942702700572795); tmp = 0.0; if (z <= -8.6e+48) tmp = t_1; elseif (z <= 8.8e-178) tmp = x + ((y * b) * 1.6453555072203998); elseif (z <= 4.7e-91) tmp = x + (1.6453555072203998 * (a * (y * z))); elseif (z <= 2e+35) tmp = x + (b * (y * 1.6453555072203998)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.6e+48], t$95$1, If[LessEqual[z, 8.8e-178], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.7e-91], N[(x + N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+35], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{0.31942702700572795}\\
\mathbf{if}\;z \leq -8.6 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-178}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{-91}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+35}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -8.59999999999999957e48 or 1.9999999999999999e35 < z Initial program 10.4%
associate-/l*15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
Simplified15.5%
Taylor expanded in z around inf 91.6%
if -8.59999999999999957e48 < z < 8.8000000000000005e-178Initial program 97.6%
associate-*l/97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
Simplified97.6%
Taylor expanded in z around 0 80.3%
if 8.8000000000000005e-178 < z < 4.70000000000000006e-91Initial program 99.7%
Taylor expanded in a around inf 84.0%
associate-*r*70.2%
*-commutative70.2%
associate-*r*84.1%
Simplified84.1%
Taylor expanded in z around 0 84.1%
if 4.70000000000000006e-91 < z < 1.9999999999999999e35Initial program 96.8%
Taylor expanded in z around 0 86.0%
fma-def86.0%
Simplified86.0%
Taylor expanded in z around 0 63.5%
*-commutative63.5%
*-commutative63.5%
associate-*l*63.6%
Simplified63.6%
Final simplification83.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ y 0.31942702700572795))))
(if (<= z -8.6e+48)
t_1
(if (<= z 1.35e-178)
(+ x (* (* y b) 1.6453555072203998))
(if (<= z 6.6e-91)
(+ x (* (* a 1.6453555072203998) (* y z)))
(if (<= z 4.5e+35) (+ x (* b (* y 1.6453555072203998))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / 0.31942702700572795);
double tmp;
if (z <= -8.6e+48) {
tmp = t_1;
} else if (z <= 1.35e-178) {
tmp = x + ((y * b) * 1.6453555072203998);
} else if (z <= 6.6e-91) {
tmp = x + ((a * 1.6453555072203998) * (y * z));
} else if (z <= 4.5e+35) {
tmp = x + (b * (y * 1.6453555072203998));
} 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 / 0.31942702700572795d0)
if (z <= (-8.6d+48)) then
tmp = t_1
else if (z <= 1.35d-178) then
tmp = x + ((y * b) * 1.6453555072203998d0)
else if (z <= 6.6d-91) then
tmp = x + ((a * 1.6453555072203998d0) * (y * z))
else if (z <= 4.5d+35) then
tmp = x + (b * (y * 1.6453555072203998d0))
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 / 0.31942702700572795);
double tmp;
if (z <= -8.6e+48) {
tmp = t_1;
} else if (z <= 1.35e-178) {
tmp = x + ((y * b) * 1.6453555072203998);
} else if (z <= 6.6e-91) {
tmp = x + ((a * 1.6453555072203998) * (y * z));
} else if (z <= 4.5e+35) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / 0.31942702700572795) tmp = 0 if z <= -8.6e+48: tmp = t_1 elif z <= 1.35e-178: tmp = x + ((y * b) * 1.6453555072203998) elif z <= 6.6e-91: tmp = x + ((a * 1.6453555072203998) * (y * z)) elif z <= 4.5e+35: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / 0.31942702700572795)) tmp = 0.0 if (z <= -8.6e+48) tmp = t_1; elseif (z <= 1.35e-178) tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); elseif (z <= 6.6e-91) tmp = Float64(x + Float64(Float64(a * 1.6453555072203998) * Float64(y * z))); elseif (z <= 4.5e+35) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / 0.31942702700572795); tmp = 0.0; if (z <= -8.6e+48) tmp = t_1; elseif (z <= 1.35e-178) tmp = x + ((y * b) * 1.6453555072203998); elseif (z <= 6.6e-91) tmp = x + ((a * 1.6453555072203998) * (y * z)); elseif (z <= 4.5e+35) tmp = x + (b * (y * 1.6453555072203998)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.6e+48], t$95$1, If[LessEqual[z, 1.35e-178], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-91], N[(x + N[(N[(a * 1.6453555072203998), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+35], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{0.31942702700572795}\\
\mathbf{if}\;z \leq -8.6 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-178}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-91}:\\
\;\;\;\;x + \left(a \cdot 1.6453555072203998\right) \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+35}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -8.59999999999999957e48 or 4.4999999999999997e35 < z Initial program 10.4%
associate-/l*15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
Simplified15.5%
Taylor expanded in z around inf 91.6%
if -8.59999999999999957e48 < z < 1.35000000000000004e-178Initial program 97.6%
associate-*l/97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
Simplified97.6%
Taylor expanded in z around 0 80.3%
if 1.35000000000000004e-178 < z < 6.60000000000000023e-91Initial program 99.7%
Taylor expanded in a around inf 84.0%
associate-*r*70.2%
*-commutative70.2%
associate-*r*84.1%
Simplified84.1%
Taylor expanded in z around 0 84.1%
associate-*r*84.2%
Simplified84.2%
if 6.60000000000000023e-91 < z < 4.4999999999999997e35Initial program 96.8%
Taylor expanded in z around 0 86.0%
fma-def86.0%
Simplified86.0%
Taylor expanded in z around 0 63.5%
*-commutative63.5%
*-commutative63.5%
associate-*l*63.6%
Simplified63.6%
Final simplification83.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -8.6e+48) (not (<= z 2e+35))) (+ x (/ y 0.31942702700572795)) (+ x (* (* y b) 1.6453555072203998))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8.6e+48) || !(z <= 2e+35)) {
tmp = x + (y / 0.31942702700572795);
} 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 <= (-8.6d+48)) .or. (.not. (z <= 2d+35))) then
tmp = x + (y / 0.31942702700572795d0)
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 <= -8.6e+48) || !(z <= 2e+35)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + ((y * b) * 1.6453555072203998);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -8.6e+48) or not (z <= 2e+35): tmp = x + (y / 0.31942702700572795) else: tmp = x + ((y * b) * 1.6453555072203998) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -8.6e+48) || !(z <= 2e+35)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -8.6e+48) || ~((z <= 2e+35))) tmp = x + (y / 0.31942702700572795); else tmp = x + ((y * b) * 1.6453555072203998); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -8.6e+48], N[Not[LessEqual[z, 2e+35]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.6 \cdot 10^{+48} \lor \neg \left(z \leq 2 \cdot 10^{+35}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\end{array}
\end{array}
if z < -8.59999999999999957e48 or 1.9999999999999999e35 < z Initial program 10.4%
associate-/l*15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
Simplified15.5%
Taylor expanded in z around inf 91.6%
if -8.59999999999999957e48 < z < 1.9999999999999999e35Initial program 97.7%
associate-*l/98.3%
*-commutative98.3%
fma-def98.3%
*-commutative98.3%
fma-def98.3%
*-commutative98.3%
fma-def98.3%
*-commutative98.3%
fma-def98.3%
Simplified98.3%
Taylor expanded in z around 0 73.9%
Final simplification81.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -9e+48) (not (<= z 2e+35))) (+ x (/ y 0.31942702700572795)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -9e+48) || !(z <= 2e+35)) {
tmp = x + (y / 0.31942702700572795);
} 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 <= (-9d+48)) .or. (.not. (z <= 2d+35))) then
tmp = x + (y / 0.31942702700572795d0)
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 <= -9e+48) || !(z <= 2e+35)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -9e+48) or not (z <= 2e+35): tmp = x + (y / 0.31942702700572795) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -9e+48) || !(z <= 2e+35)) tmp = Float64(x + Float64(y / 0.31942702700572795)); 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 <= -9e+48) || ~((z <= 2e+35))) tmp = x + (y / 0.31942702700572795); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9e+48], N[Not[LessEqual[z, 2e+35]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+48} \lor \neg \left(z \leq 2 \cdot 10^{+35}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -8.99999999999999991e48 or 1.9999999999999999e35 < z Initial program 10.4%
associate-/l*15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
fma-def15.5%
Simplified15.5%
Taylor expanded in z around inf 91.6%
if -8.99999999999999991e48 < z < 1.9999999999999999e35Initial program 97.7%
Taylor expanded in z around 0 91.3%
fma-def91.3%
Simplified91.3%
Taylor expanded in z around 0 73.9%
*-commutative73.9%
*-commutative73.9%
associate-*l*73.9%
Simplified73.9%
Final simplification81.5%
(FPCore (x y z t a b) :precision binary64 (+ x (/ y 0.31942702700572795)))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y / 0.31942702700572795);
}
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 / 0.31942702700572795d0)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y / 0.31942702700572795);
}
def code(x, y, z, t, a, b): return x + (y / 0.31942702700572795)
function code(x, y, z, t, a, b) return Float64(x + Float64(y / 0.31942702700572795)) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y / 0.31942702700572795); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{0.31942702700572795}
\end{array}
Initial program 60.2%
associate-/l*62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
Simplified62.7%
Taylor expanded in z around inf 59.7%
Final simplification59.7%
(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 60.2%
associate-/l*62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
fma-def62.7%
Simplified62.7%
Taylor expanded in z around inf 59.7%
Taylor expanded in x around inf 45.2%
Final simplification45.2%
(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 2023181
(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))))