
(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
(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
(-
(-
(fma y 3.13060547623 (/ y (/ (* z z) t)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (* z z))
(/ (* (* y 36.52704169880642) -15.234687407) (* 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 + ((fma(y, 3.13060547623, (y / ((z * z) / t))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / (z * z)), (((y * 36.52704169880642) * -15.234687407) / (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(fma(y, 3.13060547623, Float64(y / Float64(Float64(z * z) / t))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, Float64(y / Float64(z * z)), Float64(Float64(Float64(y * 36.52704169880642) * -15.234687407) / 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 * 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 * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 36.52704169880642), $MachinePrecision] * -15.234687407), $MachinePrecision] / N[(z * z), $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(\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, \frac{y}{z \cdot z}, \frac{\left(y \cdot 36.52704169880642\right) \cdot -15.234687407}{z \cdot z}\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 95.0%
associate-/l*97.3%
fma-def97.3%
fma-def97.3%
fma-def97.3%
fma-def97.4%
fma-def97.4%
fma-def97.4%
fma-def97.4%
Simplified97.4%
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%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around -inf 89.4%
+-commutative89.4%
mul-1-neg89.4%
unsub-neg89.4%
+-commutative89.4%
*-commutative89.4%
fma-def89.4%
associate-/l*98.5%
unpow298.5%
distribute-rgt-out--98.5%
metadata-eval98.5%
+-commutative98.5%
fma-def98.5%
Simplified98.5%
Final simplification97.8%
(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 (/ y (/ (* z z) t)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (* z z))
(/ (* (* y 36.52704169880642) -15.234687407) (* 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 + ((fma(y, 3.13060547623, (y / ((z * z) / t))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / (z * z)), (((y * 36.52704169880642) * -15.234687407) / (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(fma(y, 3.13060547623, Float64(y / Float64(Float64(z * z) / t))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, Float64(y / Float64(z * z)), Float64(Float64(Float64(y * 36.52704169880642) * -15.234687407) / 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 * 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 * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * 36.52704169880642), $MachinePrecision] * -15.234687407), $MachinePrecision] / N[(z * z), $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{y}{\frac{z \cdot z}{t}}\right) - \frac{y \cdot 36.52704169880642}{z}\right) - \mathsf{fma}\left(98.5170599679272, \frac{y}{z \cdot z}, \frac{\left(y \cdot 36.52704169880642\right) \cdot -15.234687407}{z \cdot z}\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 95.0%
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%
associate-*l/0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around -inf 89.4%
+-commutative89.4%
mul-1-neg89.4%
unsub-neg89.4%
+-commutative89.4%
*-commutative89.4%
fma-def89.4%
associate-/l*98.5%
unpow298.5%
distribute-rgt-out--98.5%
metadata-eval98.5%
+-commutative98.5%
fma-def98.5%
Simplified98.5%
Final simplification97.7%
(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
(-
(-
(fma y 3.13060547623 (/ y (/ (* z z) t)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (* z z))
(/ (* (* 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 * ((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 + ((fma(y, 3.13060547623, (y / ((z * z) / t))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / (z * z)), (((y * 36.52704169880642) * -15.234687407) / (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(Float64(fma(y, 3.13060547623, Float64(y / Float64(Float64(z * z) / t))) - Float64(Float64(y * 36.52704169880642) / z)) - fma(98.5170599679272, Float64(y / Float64(z * z)), 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[(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[(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 * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision] + 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 \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 + \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, \frac{y}{z \cdot z}, \frac{\left(y \cdot 36.52704169880642\right) \cdot -15.234687407}{z \cdot z}\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 95.0%
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%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around -inf 89.4%
+-commutative89.4%
mul-1-neg89.4%
unsub-neg89.4%
+-commutative89.4%
*-commutative89.4%
fma-def89.4%
associate-/l*98.5%
unpow298.5%
distribute-rgt-out--98.5%
metadata-eval98.5%
+-commutative98.5%
fma-def98.5%
Simplified98.5%
Final simplification96.3%
(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 95.0%
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 97.8%
Taylor expanded in x around 0 97.8%
*-commutative97.8%
fma-def97.8%
Simplified97.8%
Final simplification96.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 95.0%
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 97.8%
associate-*r/97.8%
metadata-eval97.8%
mul-1-neg97.8%
*-commutative97.8%
unpow297.8%
Simplified97.8%
Final simplification96.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))))
(if (<= z -1.28e+60)
(+ x (/ y 0.31942702700572795))
(if (<= z -1950000.0)
(+
x
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
t_1)))
(if (<= z 2.2e+28)
(+
x
(/
(* y (+ t_1 b))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+
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 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a);
double tmp;
if (z <= -1.28e+60) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -1950000.0) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1));
} else if (z <= 2.2e+28) {
tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)
if (z <= (-1.28d+60)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= (-1950000.0d0)) then
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0) / t_1))
else if (z <= 2.2d+28) then
tmp = x + ((y * (t_1 + b)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a);
double tmp;
if (z <= -1.28e+60) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -1950000.0) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1));
} else if (z <= 2.2e+28) {
tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} 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 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a) tmp = 0 if z <= -1.28e+60: tmp = x + (y / 0.31942702700572795) elif z <= -1950000.0: tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1)) elif z <= 2.2e+28: tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) 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(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) tmp = 0.0 if (z <= -1.28e+60) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= -1950000.0) tmp = Float64(x + Float64(y / Float64(Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1))); elseif (z <= 2.2e+28) tmp = Float64(x + Float64(Float64(y * Float64(t_1 + b)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); 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 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a); tmp = 0.0; if (z <= -1.28e+60) tmp = x + (y / 0.31942702700572795); elseif (z <= -1950000.0) tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1)); elseif (z <= 2.2e+28) tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); 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[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.28e+60], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1950000.0], N[(x + N[(y / N[(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] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+28], N[(x + N[(N[(y * N[(t$95$1 + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 := z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right)\\
\mathbf{if}\;z \leq -1.28 \cdot 10^{+60}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq -1950000:\\
\;\;\;\;x + \frac{y}{\frac{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}{t_1}}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+28}:\\
\;\;\;\;x + \frac{y \cdot \left(t_1 + b\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\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 z < -1.27999999999999993e60Initial 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 99.9%
if -1.27999999999999993e60 < z < -1.95e6Initial program 73.5%
associate-/l*89.3%
fma-def89.3%
fma-def89.3%
fma-def89.3%
fma-def89.3%
fma-def89.3%
fma-def89.3%
fma-def89.3%
Simplified89.3%
Taylor expanded in b around 0 81.1%
if -1.95e6 < z < 2.19999999999999986e28Initial program 99.7%
Taylor expanded in z around 0 99.5%
*-commutative82.2%
Simplified99.5%
if 2.19999999999999986e28 < z Initial program 4.6%
associate-/l*5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in z around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
mul-1-neg94.1%
*-commutative94.1%
unpow294.1%
Simplified94.1%
Final simplification96.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.2e+46)
(+ x (/ y 0.31942702700572795))
(if (<= z 90000000000.0)
(+
x
(/
(+ (* y b) (* y (* z (+ a (* z (+ t (* 3.13060547623 (* z z))))))))
(+
0.607771387771
(* z (+ 11.9400905721 (* z (+ 31.4690115749 (* z z))))))))
(+
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 tmp;
if (z <= -4.2e+46) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 90000000000.0) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-4.2d+46)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 90000000000.0d0) then
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623d0 * (z * z)))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * z)))))))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.2e+46) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 90000000000.0) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))));
} 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): tmp = 0 if z <= -4.2e+46: tmp = x + (y / 0.31942702700572795) elif z <= 90000000000.0: tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z))))))) 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) tmp = 0.0 if (z <= -4.2e+46) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 90000000000.0) tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(y * Float64(z * Float64(a + Float64(z * Float64(t + Float64(3.13060547623 * Float64(z * z)))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * z)))))))); 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) tmp = 0.0; if (z <= -4.2e+46) tmp = x + (y / 0.31942702700572795); elseif (z <= 90000000000.0) tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z))))))); 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_] := If[LessEqual[z, -4.2e+46], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 90000000000.0], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(y * N[(z * N[(a + N[(z * N[(t + N[(3.13060547623 * N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+46}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 90000000000:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(a + z \cdot \left(t + 3.13060547623 \cdot \left(z \cdot z\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot z\right)\right)}\\
\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 z < -4.2e46Initial program 8.4%
associate-/l*13.1%
fma-def13.1%
fma-def13.1%
fma-def13.1%
fma-def13.1%
fma-def13.1%
fma-def13.1%
fma-def13.1%
Simplified13.1%
Taylor expanded in z around inf 92.5%
if -4.2e46 < z < 9e10Initial program 99.0%
Taylor expanded in b around 0 98.3%
Taylor expanded in z around inf 98.3%
*-commutative98.3%
unpow298.3%
Simplified98.3%
Taylor expanded in z around inf 98.2%
unpow298.2%
Simplified98.2%
if 9e10 < z Initial program 6.0%
associate-/l*7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
Simplified7.3%
Taylor expanded in z around inf 92.8%
associate-*r/92.8%
metadata-eval92.8%
mul-1-neg92.8%
*-commutative92.8%
unpow292.8%
Simplified92.8%
Final simplification95.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.6e+44)
(+ x (/ y 0.31942702700572795))
(if (<= z 5e+35)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+
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 tmp;
if (z <= -4.6e+44) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 5e+35) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-4.6d+44)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 5d+35) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.6e+44) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 5e+35) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} 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): tmp = 0 if z <= -4.6e+44: tmp = x + (y / 0.31942702700572795) elif z <= 5e+35: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) 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) tmp = 0.0 if (z <= -4.6e+44) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 5e+35) 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 * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); 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) tmp = 0.0; if (z <= -4.6e+44) tmp = x + (y / 0.31942702700572795); elseif (z <= 5e+35) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); 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_] := If[LessEqual[z, -4.6e+44], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+35], 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 * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}
\mathbf{if}\;z \leq -4.6 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+35}:\\
\;\;\;\;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 \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\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 z < -4.60000000000000009e44Initial program 12.8%
associate-/l*17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
Simplified17.3%
Taylor expanded in z around inf 91.7%
if -4.60000000000000009e44 < z < 5.00000000000000021e35Initial program 99.0%
Taylor expanded in z around 0 96.3%
*-commutative78.7%
Simplified96.3%
if 5.00000000000000021e35 < z Initial program 4.6%
associate-/l*5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in z around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
mul-1-neg94.1%
*-commutative94.1%
unpow294.1%
Simplified94.1%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -8.5e+46)
(+ x (/ y 0.31942702700572795))
(if (<= z -1800000.0)
(+ x (/ y (/ z (/ t z))))
(if (<= z 3000000000.0)
(+
x
(/
(+ (* y b) (* y (* z (+ a (* z (+ t (* 3.13060547623 (* z z))))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+
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 tmp;
if (z <= -8.5e+46) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -1800000.0) {
tmp = x + (y / (z / (t / z)));
} else if (z <= 3000000000.0) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-8.5d+46)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= (-1800000.0d0)) then
tmp = x + (y / (z / (t / z)))
else if (z <= 3000000000.0d0) then
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623d0 * (z * z)))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -8.5e+46) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -1800000.0) {
tmp = x + (y / (z / (t / z)));
} else if (z <= 3000000000.0) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721)));
} 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): tmp = 0 if z <= -8.5e+46: tmp = x + (y / 0.31942702700572795) elif z <= -1800000.0: tmp = x + (y / (z / (t / z))) elif z <= 3000000000.0: tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721))) 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) tmp = 0.0 if (z <= -8.5e+46) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= -1800000.0) tmp = Float64(x + Float64(y / Float64(z / Float64(t / z)))); elseif (z <= 3000000000.0) tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(y * Float64(z * Float64(a + Float64(z * Float64(t + Float64(3.13060547623 * Float64(z * z)))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); 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) tmp = 0.0; if (z <= -8.5e+46) tmp = x + (y / 0.31942702700572795); elseif (z <= -1800000.0) tmp = x + (y / (z / (t / z))); elseif (z <= 3000000000.0) tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721))); 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_] := If[LessEqual[z, -8.5e+46], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1800000.0], N[(x + N[(y / N[(z / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3000000000.0], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(y * N[(z * N[(a + N[(z * N[(t + N[(3.13060547623 * N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq -1800000:\\
\;\;\;\;x + \frac{y}{\frac{z}{\frac{t}{z}}}\\
\mathbf{elif}\;z \leq 3000000000:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(a + z \cdot \left(t + 3.13060547623 \cdot \left(z \cdot z\right)\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\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 z < -8.4999999999999996e46Initial program 8.3%
associate-/l*13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
Simplified13.2%
Taylor expanded in z around inf 94.9%
if -8.4999999999999996e46 < z < -1.8e6Initial program 83.8%
Taylor expanded in t around inf 59.7%
associate-*r*59.7%
unpow259.7%
Simplified59.7%
Taylor expanded in z around inf 59.8%
associate-/l*67.1%
unpow267.1%
associate-/l*67.1%
Simplified67.1%
if -1.8e6 < z < 3e9Initial program 99.7%
Taylor expanded in b around 0 99.7%
Taylor expanded in z around inf 99.7%
*-commutative99.7%
unpow299.7%
Simplified99.7%
Taylor expanded in z around 0 99.3%
*-commutative99.3%
Simplified99.3%
if 3e9 < z Initial program 6.0%
associate-/l*7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
Simplified7.3%
Taylor expanded in z around inf 92.8%
associate-*r/92.8%
metadata-eval92.8%
mul-1-neg92.8%
*-commutative92.8%
unpow292.8%
Simplified92.8%
Final simplification95.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.5e+44)
(+ x (/ y 0.31942702700572795))
(if (<= z -5e-5)
(+
x
(/
(+ (* y b) (* (* z z) (* y t)))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(if (<= z 540000000.0)
(+
x
(/
(+ (* y b) (* y (* z (+ a (* z (+ t (* 3.13060547623 (* z z))))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+
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 tmp;
if (z <= -4.5e+44) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -5e-5) {
tmp = x + (((y * b) + ((z * z) * (y * t))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else if (z <= 540000000.0) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-4.5d+44)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= (-5d-5)) then
tmp = x + (((y * b) + ((z * z) * (y * t))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else if (z <= 540000000.0d0) then
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623d0 * (z * z)))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.5e+44) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -5e-5) {
tmp = x + (((y * b) + ((z * z) * (y * t))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else if (z <= 540000000.0) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721)));
} 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): tmp = 0 if z <= -4.5e+44: tmp = x + (y / 0.31942702700572795) elif z <= -5e-5: tmp = x + (((y * b) + ((z * z) * (y * t))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) elif z <= 540000000.0: tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721))) 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) tmp = 0.0 if (z <= -4.5e+44) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= -5e-5) tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(Float64(z * z) * Float64(y * t))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); elseif (z <= 540000000.0) tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(y * Float64(z * Float64(a + Float64(z * Float64(t + Float64(3.13060547623 * Float64(z * z)))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); 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) tmp = 0.0; if (z <= -4.5e+44) tmp = x + (y / 0.31942702700572795); elseif (z <= -5e-5) tmp = x + (((y * b) + ((z * z) * (y * t))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); elseif (z <= 540000000.0) tmp = x + (((y * b) + (y * (z * (a + (z * (t + (3.13060547623 * (z * z)))))))) / (0.607771387771 + (z * 11.9400905721))); 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_] := If[LessEqual[z, -4.5e+44], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5e-5], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(N[(z * z), $MachinePrecision] * N[(y * t), $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], If[LessEqual[z, 540000000.0], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(y * N[(z * N[(a + N[(z * N[(t + N[(3.13060547623 * N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-5}:\\
\;\;\;\;x + \frac{y \cdot b + \left(z \cdot z\right) \cdot \left(y \cdot t\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{elif}\;z \leq 540000000:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(a + z \cdot \left(t + 3.13060547623 \cdot \left(z \cdot z\right)\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\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 z < -4.5e44Initial program 12.8%
associate-/l*17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
fma-def17.3%
Simplified17.3%
Taylor expanded in z around inf 91.7%
if -4.5e44 < z < -5.00000000000000024e-5Initial program 91.3%
Taylor expanded in b around 0 82.9%
Taylor expanded in t around inf 83.5%
associate-*r*83.5%
unpow283.5%
Simplified83.5%
if -5.00000000000000024e-5 < z < 5.4e8Initial program 99.7%
Taylor expanded in b around 0 99.7%
Taylor expanded in z around inf 99.7%
*-commutative99.7%
unpow299.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
*-commutative99.7%
Simplified99.7%
if 5.4e8 < z Initial program 6.0%
associate-/l*7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
fma-def7.3%
Simplified7.3%
Taylor expanded in z around inf 92.8%
associate-*r/92.8%
metadata-eval92.8%
mul-1-neg92.8%
*-commutative92.8%
unpow292.8%
Simplified92.8%
Final simplification95.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.2e+47)
(+ x (/ y 0.31942702700572795))
(if (<= z -8.8e+15)
(+ x (/ y (/ z (/ t z))))
(if (<= z 1.4e+35)
(+
x
(/
(* y (+ b (* z a)))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+
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 tmp;
if (z <= -2.2e+47) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -8.8e+15) {
tmp = x + (y / (z / (t / z)));
} else if (z <= 1.4e+35) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-2.2d+47)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= (-8.8d+15)) then
tmp = x + (y / (z / (t / z)))
else if (z <= 1.4d+35) then
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.2e+47) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -8.8e+15) {
tmp = x + (y / (z / (t / z)));
} else if (z <= 1.4e+35) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} 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): tmp = 0 if z <= -2.2e+47: tmp = x + (y / 0.31942702700572795) elif z <= -8.8e+15: tmp = x + (y / (z / (t / z))) elif z <= 1.4e+35: tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) 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) tmp = 0.0 if (z <= -2.2e+47) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= -8.8e+15) tmp = Float64(x + Float64(y / Float64(z / Float64(t / z)))); elseif (z <= 1.4e+35) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); 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) tmp = 0.0; if (z <= -2.2e+47) tmp = x + (y / 0.31942702700572795); elseif (z <= -8.8e+15) tmp = x + (y / (z / (t / z))); elseif (z <= 1.4e+35) tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); 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_] := If[LessEqual[z, -2.2e+47], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.8e+15], N[(x + N[(y / N[(z / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+35], N[(x + N[(N[(y * N[(b + N[(z * a), $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], 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}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+47}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq -8.8 \cdot 10^{+15}:\\
\;\;\;\;x + \frac{y}{\frac{z}{\frac{t}{z}}}\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+35}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\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 z < -2.1999999999999999e47Initial program 8.3%
associate-/l*13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
Simplified13.2%
Taylor expanded in z around inf 94.9%
if -2.1999999999999999e47 < z < -8.8e15Initial program 83.8%
Taylor expanded in t around inf 59.7%
associate-*r*59.7%
unpow259.7%
Simplified59.7%
Taylor expanded in z around inf 59.8%
associate-/l*67.1%
unpow267.1%
associate-/l*67.1%
Simplified67.1%
if -8.8e15 < z < 1.39999999999999999e35Initial program 99.7%
Taylor expanded in z around 0 91.9%
associate-*r*84.2%
*-commutative84.2%
associate-*r*92.6%
distribute-lft-out92.6%
*-commutative92.6%
Simplified92.6%
if 1.39999999999999999e35 < z Initial program 4.6%
associate-/l*5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in z around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
mul-1-neg94.1%
*-commutative94.1%
unpow294.1%
Simplified94.1%
Final simplification92.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (* y b) 1.6453555072203998)))
(if (<= z -1.65e+47)
(+ x (/ y 0.31942702700572795))
(if (<= z -310000000000.0)
(+ x (/ y (/ z (/ t z))))
(if (<= z -7.5e-102)
(+
x
(+
(*
z
(- (* 1.6453555072203998 (* y a)) (* (* y b) 32.324150453290734)))
t_1))
(if (<= z 2e+25)
(+ x t_1)
(+
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 * b) * 1.6453555072203998;
double tmp;
if (z <= -1.65e+47) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -310000000000.0) {
tmp = x + (y / (z / (t / z)));
} else if (z <= -7.5e-102) {
tmp = x + ((z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))) + t_1);
} else if (z <= 2e+25) {
tmp = x + t_1;
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (y * b) * 1.6453555072203998d0
if (z <= (-1.65d+47)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= (-310000000000.0d0)) then
tmp = x + (y / (z / (t / z)))
else if (z <= (-7.5d-102)) then
tmp = x + ((z * ((1.6453555072203998d0 * (y * a)) - ((y * b) * 32.324150453290734d0))) + t_1)
else if (z <= 2d+25) then
tmp = x + t_1
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) * 1.6453555072203998;
double tmp;
if (z <= -1.65e+47) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= -310000000000.0) {
tmp = x + (y / (z / (t / z)));
} else if (z <= -7.5e-102) {
tmp = x + ((z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))) + t_1);
} else if (z <= 2e+25) {
tmp = x + t_1;
} 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 * b) * 1.6453555072203998 tmp = 0 if z <= -1.65e+47: tmp = x + (y / 0.31942702700572795) elif z <= -310000000000.0: tmp = x + (y / (z / (t / z))) elif z <= -7.5e-102: tmp = x + ((z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))) + t_1) elif z <= 2e+25: tmp = x + t_1 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 * b) * 1.6453555072203998) tmp = 0.0 if (z <= -1.65e+47) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= -310000000000.0) tmp = Float64(x + Float64(y / Float64(z / Float64(t / z)))); elseif (z <= -7.5e-102) tmp = Float64(x + Float64(Float64(z * Float64(Float64(1.6453555072203998 * Float64(y * a)) - Float64(Float64(y * b) * 32.324150453290734))) + t_1)); elseif (z <= 2e+25) tmp = Float64(x + t_1); 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 * b) * 1.6453555072203998; tmp = 0.0; if (z <= -1.65e+47) tmp = x + (y / 0.31942702700572795); elseif (z <= -310000000000.0) tmp = x + (y / (z / (t / z))); elseif (z <= -7.5e-102) tmp = x + ((z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))) + t_1); elseif (z <= 2e+25) tmp = x + t_1; 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 * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]}, If[LessEqual[z, -1.65e+47], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -310000000000.0], N[(x + N[(y / N[(z / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.5e-102], N[(x + N[(N[(z * N[(N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+25], N[(x + t$95$1), $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 := \left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{if}\;z \leq -1.65 \cdot 10^{+47}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq -310000000000:\\
\;\;\;\;x + \frac{y}{\frac{z}{\frac{t}{z}}}\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-102}:\\
\;\;\;\;x + \left(z \cdot \left(1.6453555072203998 \cdot \left(y \cdot a\right) - \left(y \cdot b\right) \cdot 32.324150453290734\right) + t_1\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+25}:\\
\;\;\;\;x + t_1\\
\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 z < -1.65e47Initial program 8.3%
associate-/l*13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
Simplified13.2%
Taylor expanded in z around inf 94.9%
if -1.65e47 < z < -3.1e11Initial program 83.8%
Taylor expanded in t around inf 59.7%
associate-*r*59.7%
unpow259.7%
Simplified59.7%
Taylor expanded in z around inf 59.8%
associate-/l*67.1%
unpow267.1%
associate-/l*67.1%
Simplified67.1%
if -3.1e11 < z < -7.5000000000000008e-102Initial program 99.5%
associate-*l/99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around 0 88.6%
if -7.5000000000000008e-102 < z < 2.00000000000000018e25Initial program 99.8%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 84.0%
if 2.00000000000000018e25 < z Initial program 4.6%
associate-/l*5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in z around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
mul-1-neg94.1%
*-commutative94.1%
unpow294.1%
Simplified94.1%
Final simplification88.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.5e+31)
(+ x (/ y 0.31942702700572795))
(if (<= z 1.4e+27)
(+
x
(/
(* y b)
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+
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 tmp;
if (z <= -1.5e+31) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 1.4e+27) {
tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1.5d+31)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 1.4d+27) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((3.241970391368047d0 + (t * 0.10203362558171805d0)) / (z * z)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.5e+31) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 1.4e+27) {
tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} 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): tmp = 0 if z <= -1.5e+31: tmp = x + (y / 0.31942702700572795) elif z <= 1.4e+27: tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) 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) tmp = 0.0 if (z <= -1.5e+31) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 1.4e+27) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); 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) tmp = 0.0; if (z <= -1.5e+31) tmp = x + (y / 0.31942702700572795); elseif (z <= 1.4e+27) tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); 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_] := If[LessEqual[z, -1.5e+31], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+27], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+31}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+27}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\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 z < -1.49999999999999995e31Initial program 20.5%
associate-/l*24.6%
fma-def24.6%
fma-def24.6%
fma-def24.6%
fma-def24.6%
fma-def24.6%
fma-def24.6%
fma-def24.6%
Simplified24.6%
Taylor expanded in z around inf 85.8%
if -1.49999999999999995e31 < z < 1.4e27Initial program 99.0%
Taylor expanded in z around 0 81.0%
Taylor expanded in z around 0 80.8%
*-commutative80.8%
Simplified80.8%
if 1.4e27 < z Initial program 4.6%
associate-/l*5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in z around inf 94.1%
associate-*r/94.1%
metadata-eval94.1%
mul-1-neg94.1%
*-commutative94.1%
unpow294.1%
Simplified94.1%
Final simplification85.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -7.2e+29) (not (<= z 4.7e+30)))
(+ x (/ y 0.31942702700572795))
(+
x
(/
(* y b)
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.2e+29) || !(z <= 4.7e+30)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
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 <= (-7.2d+29)) .or. (.not. (z <= 4.7d+30))) then
tmp = x + (y / 0.31942702700572795d0)
else
tmp = x + ((y * b) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
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 <= -7.2e+29) || !(z <= 4.7e+30)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -7.2e+29) or not (z <= 4.7e+30): tmp = x + (y / 0.31942702700572795) else: tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -7.2e+29) || !(z <= 4.7e+30)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -7.2e+29) || ~((z <= 4.7e+30))) tmp = x + (y / 0.31942702700572795); else tmp = x + ((y * b) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -7.2e+29], N[Not[LessEqual[z, 4.7e+30]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+29} \lor \neg \left(z \leq 4.7 \cdot 10^{+30}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\end{array}
\end{array}
if z < -7.19999999999999952e29 or 4.6999999999999999e30 < z Initial program 10.9%
associate-/l*13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
Simplified13.4%
Taylor expanded in z around inf 90.8%
if -7.19999999999999952e29 < z < 4.6999999999999999e30Initial program 99.0%
Taylor expanded in z around 0 81.0%
Taylor expanded in z around 0 80.8%
*-commutative80.8%
Simplified80.8%
Final simplification85.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -7.8e+28) (not (<= z 2e+24))) (+ 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 <= -7.8e+28) || !(z <= 2e+24)) {
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 <= (-7.8d+28)) .or. (.not. (z <= 2d+24))) 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 <= -7.8e+28) || !(z <= 2e+24)) {
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 <= -7.8e+28) or not (z <= 2e+24): 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 <= -7.8e+28) || !(z <= 2e+24)) 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 <= -7.8e+28) || ~((z <= 2e+24))) 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, -7.8e+28], N[Not[LessEqual[z, 2e+24]], $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 -7.8 \cdot 10^{+28} \lor \neg \left(z \leq 2 \cdot 10^{+24}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\end{array}
\end{array}
if z < -7.7999999999999997e28 or 2e24 < z Initial program 10.9%
associate-/l*13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
Simplified13.4%
Taylor expanded in z around inf 90.8%
if -7.7999999999999997e28 < z < 2e24Initial program 99.0%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 80.6%
Final simplification85.1%
(FPCore (x y z t a b) :precision binary64 (if (<= x -250.0) x (if (<= x 1.7e-100) (* (* y b) 1.6453555072203998) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -250.0) {
tmp = x;
} else if (x <= 1.7e-100) {
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 <= (-250.0d0)) then
tmp = x
else if (x <= 1.7d-100) 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 <= -250.0) {
tmp = x;
} else if (x <= 1.7e-100) {
tmp = (y * b) * 1.6453555072203998;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -250.0: tmp = x elif x <= 1.7e-100: tmp = (y * b) * 1.6453555072203998 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -250.0) tmp = x; elseif (x <= 1.7e-100) 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 <= -250.0) tmp = x; elseif (x <= 1.7e-100) tmp = (y * b) * 1.6453555072203998; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -250.0], x, If[LessEqual[x, 1.7e-100], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -250:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-100}:\\
\;\;\;\;\left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -250 or 1.69999999999999988e-100 < x Initial program 56.2%
associate-/l*58.1%
fma-def58.1%
fma-def58.1%
fma-def58.1%
fma-def58.1%
fma-def58.1%
fma-def58.1%
fma-def58.1%
Simplified58.1%
Taylor expanded in z around inf 79.8%
Taylor expanded in x around inf 63.3%
if -250 < x < 1.69999999999999988e-100Initial program 66.0%
associate-*l/66.8%
*-commutative66.8%
fma-def66.8%
*-commutative66.8%
fma-def66.8%
*-commutative66.8%
fma-def66.8%
*-commutative66.8%
fma-def66.8%
Simplified66.8%
Taylor expanded in z around 0 53.1%
Taylor expanded in x around 0 41.8%
Final simplification54.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.1e+221) (* y (* b 1.6453555072203998)) (+ x (/ y 0.31942702700572795))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.1e+221) {
tmp = y * (b * 1.6453555072203998);
} 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 (b <= (-3.1d+221)) then
tmp = y * (b * 1.6453555072203998d0)
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 (b <= -3.1e+221) {
tmp = y * (b * 1.6453555072203998);
} else {
tmp = x + (y / 0.31942702700572795);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.1e+221: tmp = y * (b * 1.6453555072203998) else: tmp = x + (y / 0.31942702700572795) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.1e+221) tmp = Float64(y * Float64(b * 1.6453555072203998)); 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 (b <= -3.1e+221) tmp = y * (b * 1.6453555072203998); else tmp = x + (y / 0.31942702700572795); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.1e+221], N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+221}:\\
\;\;\;\;y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\end{array}
\end{array}
if b < -3.10000000000000006e221Initial program 84.0%
associate-*l/83.9%
*-commutative83.9%
fma-def83.9%
*-commutative83.9%
fma-def83.9%
*-commutative83.9%
fma-def83.9%
*-commutative83.9%
fma-def83.9%
Simplified83.9%
Taylor expanded in z around 0 75.8%
Taylor expanded in x around 0 65.7%
*-commutative65.7%
associate-*l*65.8%
Simplified65.8%
if -3.10000000000000006e221 < b Initial program 58.2%
associate-/l*59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
Simplified59.8%
Taylor expanded in z around inf 65.7%
Final simplification65.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.1%
associate-/l*61.6%
fma-def61.6%
fma-def61.6%
fma-def61.6%
fma-def61.6%
fma-def61.6%
fma-def61.6%
fma-def61.6%
Simplified61.6%
Taylor expanded in z around inf 63.3%
Taylor expanded in x around inf 45.1%
Final simplification45.1%
(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 2023192
(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))))