
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
y
(/
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)
(fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))))
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + (y / (fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)));
} else {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / 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(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / 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[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $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 + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{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 91.1%
associate-/l*97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
Simplified97.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
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 83.4%
Simplified98.2%
Taylor expanded in y around 0 98.9%
associate-*r/98.9%
metadata-eval98.9%
unpow298.9%
unpow298.9%
associate-*r/98.9%
metadata-eval98.9%
Simplified98.9%
Taylor expanded in t around inf 98.9%
unpow298.9%
Simplified98.9%
Final simplification98.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
t_1)
INFINITY)
(+
x
(*
(/ y t_1)
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)))
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / t_1) <= ((double) INFINITY)) {
tmp = x + ((y / t_1) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b));
} else {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) 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)) / t_1) <= Inf) tmp = Float64(x + Float64(Float64(y / t_1) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))); else tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, 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] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(N[(y / t$95$1), $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[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
\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)}{t_1} \leq \infty:\\
\;\;\;\;x + \frac{y}{t_1} \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 + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{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 91.1%
associate-*l/97.2%
*-commutative97.2%
fma-def97.2%
*-commutative97.2%
fma-def97.2%
*-commutative97.2%
fma-def97.2%
*-commutative97.2%
fma-def97.2%
Simplified97.2%
Taylor expanded in y around 0 97.2%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
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 83.4%
Simplified98.2%
Taylor expanded in y around 0 98.9%
associate-*r/98.9%
metadata-eval98.9%
unpow298.9%
unpow298.9%
associate-*r/98.9%
metadata-eval98.9%
Simplified98.9%
Taylor expanded in t around inf 98.9%
unpow298.9%
Simplified98.9%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3.2e+14)
(+
x
(-
(-
(fma y 3.13060547623 (* (/ y z) (/ t z)))
(/ (* y 36.52704169880642) z))
(fma
98.5170599679272
(/ y (* z z))
(/ (* (* y 36.52704169880642) -15.234687407) (* z z)))))
(if (<= z 4.8e+40)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.2e+14) {
tmp = x + ((fma(y, 3.13060547623, ((y / z) * (t / z))) - ((y * 36.52704169880642) / z)) - fma(98.5170599679272, (y / (z * z)), (((y * 36.52704169880642) * -15.234687407) / (z * z))));
} else if (z <= 4.8e+40) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.2e+14) tmp = Float64(x + Float64(Float64(fma(y, 3.13060547623, Float64(Float64(y / z) * Float64(t / z))) - 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))))); elseif (z <= 4.8e+40) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.2e+14], N[(x + N[(N[(N[(y * 3.13060547623 + N[(N[(y / z), $MachinePrecision] * N[(t / z), $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], If[LessEqual[z, 4.8e+40], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+14}:\\
\;\;\;\;x + \left(\left(\mathsf{fma}\left(y, 3.13060547623, \frac{y}{z} \cdot \frac{t}{z}\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)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+40}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -3.2e14Initial program 16.2%
associate-*l/20.2%
*-commutative20.2%
fma-def20.2%
*-commutative20.2%
fma-def20.2%
*-commutative20.2%
fma-def20.2%
*-commutative20.2%
fma-def20.2%
Simplified20.2%
Taylor expanded in z around -inf 79.8%
Simplified95.1%
if -3.2e14 < z < 4.8e40Initial program 98.3%
if 4.8e40 < z Initial program 2.1%
associate-*l/11.0%
*-commutative11.0%
fma-def11.0%
*-commutative11.0%
fma-def11.0%
*-commutative11.0%
fma-def11.0%
*-commutative11.0%
fma-def11.0%
Simplified11.0%
Taylor expanded in z around -inf 89.1%
Simplified98.6%
Taylor expanded in y around 0 99.9%
associate-*r/99.9%
metadata-eval99.9%
unpow299.9%
unpow299.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around inf 99.9%
unpow299.9%
Simplified99.9%
Final simplification97.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -75000000000000.0) (not (<= z 2.9e+41)))
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z))))
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -75000000000000.0) || !(z <= 2.9e+41)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
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 <= (-75000000000000.0d0)) .or. (.not. (z <= 2.9d+41))) then
tmp = x + (y * ((3.13060547623d0 + (t / (z * z))) - (36.52704169880642d0 / z)))
else
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0)) + 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 ((z <= -75000000000000.0) || !(z <= 2.9e+41)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -75000000000000.0) or not (z <= 2.9e+41): tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))) else: tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -75000000000000.0) || !(z <= 2.9e+41)) tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -75000000000000.0) || ~((z <= 2.9e+41))) tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))); else tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -75000000000000.0], N[Not[LessEqual[z, 2.9e+41]], $MachinePrecision]], N[(x + N[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -75000000000000 \lor \neg \left(z \leq 2.9 \cdot 10^{+41}\right):\\
\;\;\;\;x + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\end{array}
\end{array}
if z < -7.5e13 or 2.89999999999999988e41 < z Initial program 10.0%
associate-*l/16.2%
*-commutative16.2%
fma-def16.2%
*-commutative16.2%
fma-def16.2%
*-commutative16.2%
fma-def16.2%
*-commutative16.2%
fma-def16.2%
Simplified16.2%
Taylor expanded in z around -inf 83.9%
Simplified96.6%
Taylor expanded in y around 0 97.2%
associate-*r/97.2%
metadata-eval97.2%
unpow297.2%
unpow297.2%
associate-*r/97.2%
metadata-eval97.2%
Simplified97.2%
Taylor expanded in t around inf 97.2%
unpow297.2%
Simplified97.2%
if -7.5e13 < z < 2.89999999999999988e41Initial program 98.3%
Final simplification97.7%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -12.8) (not (<= z 2.6e+40)))
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z))))
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -12.8) || !(z <= 2.6e+40)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-12.8d0)) .or. (.not. (z <= 2.6d+40))) then
tmp = x + (y * ((3.13060547623d0 + (t / (z * z))) - (36.52704169880642d0 / z)))
else
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -12.8) || !(z <= 2.6e+40)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -12.8) or not (z <= 2.6e+40): tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))) else: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -12.8) || !(z <= 2.6e+40)) tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -12.8) || ~((z <= 2.6e+40))) tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))); else tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -12.8], N[Not[LessEqual[z, 2.6e+40]], $MachinePrecision]], N[(x + N[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -12.8 \lor \neg \left(z \leq 2.6 \cdot 10^{+40}\right):\\
\;\;\;\;x + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -12.800000000000001 or 2.6000000000000001e40 < z Initial program 10.7%
associate-*l/16.8%
*-commutative16.8%
fma-def16.8%
*-commutative16.8%
fma-def16.8%
*-commutative16.8%
fma-def16.8%
*-commutative16.8%
fma-def16.9%
Simplified16.9%
Taylor expanded in z around -inf 83.2%
Simplified95.9%
Taylor expanded in y around 0 96.4%
associate-*r/96.4%
metadata-eval96.4%
unpow296.4%
unpow296.4%
associate-*r/96.4%
metadata-eval96.4%
Simplified96.4%
Taylor expanded in t around inf 96.4%
unpow296.4%
Simplified96.4%
if -12.800000000000001 < z < 2.6000000000000001e40Initial program 98.3%
Taylor expanded in z around 0 97.3%
*-commutative97.3%
Simplified97.3%
Final simplification96.9%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.3e-6) (not (<= z 2.6e+40)))
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z))))
(+
x
(*
y
(+
(* z (- (* a 1.6453555072203998) (* b 32.324150453290734)))
(* b 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.3e-6) || !(z <= 2.6e+40)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (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 <= (-1.3d-6)) .or. (.not. (z <= 2.6d+40))) then
tmp = x + (y * ((3.13060547623d0 + (t / (z * z))) - (36.52704169880642d0 / z)))
else
tmp = x + (y * ((z * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0))) + (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 <= -1.3e-6) || !(z <= 2.6e+40)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.3e-6) or not (z <= 2.6e+40): tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))) else: tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.3e-6) || !(z <= 2.6e+40)) tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); else tmp = Float64(x + Float64(y * Float64(Float64(z * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734))) + Float64(b * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.3e-6) || ~((z <= 2.6e+40))) tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))); else tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.3e-6], N[Not[LessEqual[z, 2.6e+40]], $MachinePrecision]], N[(x + N[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-6} \lor \neg \left(z \leq 2.6 \cdot 10^{+40}\right):\\
\;\;\;\;x + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right) + b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.30000000000000005e-6 or 2.6000000000000001e40 < z Initial program 14.2%
associate-*l/20.0%
*-commutative20.0%
fma-def20.0%
*-commutative20.0%
fma-def20.0%
*-commutative20.0%
fma-def20.0%
*-commutative20.0%
fma-def20.0%
Simplified20.0%
Taylor expanded in z around -inf 83.2%
Simplified95.3%
Taylor expanded in y around 0 95.9%
associate-*r/95.9%
metadata-eval95.9%
unpow295.9%
unpow295.9%
associate-*r/95.9%
metadata-eval95.9%
Simplified95.9%
Taylor expanded in t around inf 95.9%
unpow295.9%
Simplified95.9%
if -1.30000000000000005e-6 < z < 2.6000000000000001e40Initial program 98.2%
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 76.1%
Taylor expanded in y around 0 90.2%
Final simplification93.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (+ 3.13060547623 (* b 1.6453555072203998))))
(t_2 (+ x (* y 3.13060547623))))
(if (<= z -1.25e-99)
t_2
(if (<= z -5.8e-157)
t_1
(if (<= z -3.2e-215)
x
(if (<= z 4.1e-231)
t_1
(if (<= z 1.6e-65) x (if (<= z 850.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (3.13060547623 + (b * 1.6453555072203998));
double t_2 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.25e-99) {
tmp = t_2;
} else if (z <= -5.8e-157) {
tmp = t_1;
} else if (z <= -3.2e-215) {
tmp = x;
} else if (z <= 4.1e-231) {
tmp = t_1;
} else if (z <= 1.6e-65) {
tmp = x;
} else if (z <= 850.0) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = y * (3.13060547623d0 + (b * 1.6453555072203998d0))
t_2 = x + (y * 3.13060547623d0)
if (z <= (-1.25d-99)) then
tmp = t_2
else if (z <= (-5.8d-157)) then
tmp = t_1
else if (z <= (-3.2d-215)) then
tmp = x
else if (z <= 4.1d-231) then
tmp = t_1
else if (z <= 1.6d-65) then
tmp = x
else if (z <= 850.0d0) then
tmp = t_1
else
tmp = t_2
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 * (3.13060547623 + (b * 1.6453555072203998));
double t_2 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.25e-99) {
tmp = t_2;
} else if (z <= -5.8e-157) {
tmp = t_1;
} else if (z <= -3.2e-215) {
tmp = x;
} else if (z <= 4.1e-231) {
tmp = t_1;
} else if (z <= 1.6e-65) {
tmp = x;
} else if (z <= 850.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (3.13060547623 + (b * 1.6453555072203998)) t_2 = x + (y * 3.13060547623) tmp = 0 if z <= -1.25e-99: tmp = t_2 elif z <= -5.8e-157: tmp = t_1 elif z <= -3.2e-215: tmp = x elif z <= 4.1e-231: tmp = t_1 elif z <= 1.6e-65: tmp = x elif z <= 850.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(3.13060547623 + Float64(b * 1.6453555072203998))) t_2 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -1.25e-99) tmp = t_2; elseif (z <= -5.8e-157) tmp = t_1; elseif (z <= -3.2e-215) tmp = x; elseif (z <= 4.1e-231) tmp = t_1; elseif (z <= 1.6e-65) tmp = x; elseif (z <= 850.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (3.13060547623 + (b * 1.6453555072203998)); t_2 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -1.25e-99) tmp = t_2; elseif (z <= -5.8e-157) tmp = t_1; elseif (z <= -3.2e-215) tmp = x; elseif (z <= 4.1e-231) tmp = t_1; elseif (z <= 1.6e-65) tmp = x; elseif (z <= 850.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(3.13060547623 + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e-99], t$95$2, If[LessEqual[z, -5.8e-157], t$95$1, If[LessEqual[z, -3.2e-215], x, If[LessEqual[z, 4.1e-231], t$95$1, If[LessEqual[z, 1.6e-65], x, If[LessEqual[z, 850.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(3.13060547623 + b \cdot 1.6453555072203998\right)\\
t_2 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{-99}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -5.8 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-215}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{-231}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-65}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 850:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.24999999999999992e-99 or 850 < z Initial program 26.3%
+-commutative26.3%
associate-*l/32.4%
fma-def32.4%
Simplified32.5%
Taylor expanded in z around inf 80.8%
+-commutative80.8%
*-commutative80.8%
Simplified80.8%
if -1.24999999999999992e-99 < z < -5.79999999999999977e-157 or -3.2000000000000001e-215 < z < 4.1000000000000002e-231 or 1.6e-65 < z < 850Initial program 99.8%
+-commutative99.8%
associate-*l/99.7%
fma-def99.8%
Simplified99.8%
Taylor expanded in y around inf 75.3%
Taylor expanded in z around inf 53.3%
Taylor expanded in z around 0 53.3%
*-commutative53.3%
Simplified53.3%
if -5.79999999999999977e-157 < z < -3.2000000000000001e-215 or 4.1000000000000002e-231 < z < 1.6e-65Initial program 99.6%
+-commutative99.6%
associate-*l/99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in y around 0 49.2%
Final simplification69.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (+ 3.13060547623 (* b 1.6453555072203998))))
(t_2 (+ x (* y 3.13060547623))))
(if (<= z -1.7e-98)
t_2
(if (<= z -8e-155)
t_1
(if (<= z -2.7e-215)
(+ x (* (* y z) 0.2683132876901312))
(if (<= z 5e-224)
t_1
(if (<= z 1.38e-61) x (if (<= z 2400000.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (3.13060547623 + (b * 1.6453555072203998));
double t_2 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.7e-98) {
tmp = t_2;
} else if (z <= -8e-155) {
tmp = t_1;
} else if (z <= -2.7e-215) {
tmp = x + ((y * z) * 0.2683132876901312);
} else if (z <= 5e-224) {
tmp = t_1;
} else if (z <= 1.38e-61) {
tmp = x;
} else if (z <= 2400000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = y * (3.13060547623d0 + (b * 1.6453555072203998d0))
t_2 = x + (y * 3.13060547623d0)
if (z <= (-1.7d-98)) then
tmp = t_2
else if (z <= (-8d-155)) then
tmp = t_1
else if (z <= (-2.7d-215)) then
tmp = x + ((y * z) * 0.2683132876901312d0)
else if (z <= 5d-224) then
tmp = t_1
else if (z <= 1.38d-61) then
tmp = x
else if (z <= 2400000.0d0) then
tmp = t_1
else
tmp = t_2
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 * (3.13060547623 + (b * 1.6453555072203998));
double t_2 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.7e-98) {
tmp = t_2;
} else if (z <= -8e-155) {
tmp = t_1;
} else if (z <= -2.7e-215) {
tmp = x + ((y * z) * 0.2683132876901312);
} else if (z <= 5e-224) {
tmp = t_1;
} else if (z <= 1.38e-61) {
tmp = x;
} else if (z <= 2400000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (3.13060547623 + (b * 1.6453555072203998)) t_2 = x + (y * 3.13060547623) tmp = 0 if z <= -1.7e-98: tmp = t_2 elif z <= -8e-155: tmp = t_1 elif z <= -2.7e-215: tmp = x + ((y * z) * 0.2683132876901312) elif z <= 5e-224: tmp = t_1 elif z <= 1.38e-61: tmp = x elif z <= 2400000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(3.13060547623 + Float64(b * 1.6453555072203998))) t_2 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -1.7e-98) tmp = t_2; elseif (z <= -8e-155) tmp = t_1; elseif (z <= -2.7e-215) tmp = Float64(x + Float64(Float64(y * z) * 0.2683132876901312)); elseif (z <= 5e-224) tmp = t_1; elseif (z <= 1.38e-61) tmp = x; elseif (z <= 2400000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (3.13060547623 + (b * 1.6453555072203998)); t_2 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -1.7e-98) tmp = t_2; elseif (z <= -8e-155) tmp = t_1; elseif (z <= -2.7e-215) tmp = x + ((y * z) * 0.2683132876901312); elseif (z <= 5e-224) tmp = t_1; elseif (z <= 1.38e-61) tmp = x; elseif (z <= 2400000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(3.13060547623 + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.7e-98], t$95$2, If[LessEqual[z, -8e-155], t$95$1, If[LessEqual[z, -2.7e-215], N[(x + N[(N[(y * z), $MachinePrecision] * 0.2683132876901312), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-224], t$95$1, If[LessEqual[z, 1.38e-61], x, If[LessEqual[z, 2400000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(3.13060547623 + b \cdot 1.6453555072203998\right)\\
t_2 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{-98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-215}:\\
\;\;\;\;x + \left(y \cdot z\right) \cdot 0.2683132876901312\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.38 \cdot 10^{-61}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2400000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.7000000000000001e-98 or 2.4e6 < z Initial program 26.3%
+-commutative26.3%
associate-*l/32.4%
fma-def32.4%
Simplified32.5%
Taylor expanded in z around inf 80.8%
+-commutative80.8%
*-commutative80.8%
Simplified80.8%
if -1.7000000000000001e-98 < z < -8.00000000000000011e-155 or -2.70000000000000018e-215 < z < 4.9999999999999999e-224 or 1.37999999999999992e-61 < z < 2.4e6Initial program 99.8%
+-commutative99.8%
associate-*l/99.7%
fma-def99.8%
Simplified99.8%
Taylor expanded in y around inf 75.3%
Taylor expanded in z around inf 53.3%
Taylor expanded in z around 0 53.3%
*-commutative53.3%
Simplified53.3%
if -8.00000000000000011e-155 < z < -2.70000000000000018e-215Initial program 99.5%
associate-/l*99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in z around inf 51.7%
Taylor expanded in z around 0 51.7%
if 4.9999999999999999e-224 < z < 1.37999999999999992e-61Initial program 99.8%
+-commutative99.8%
associate-*l/99.8%
fma-def99.8%
Simplified99.8%
Taylor expanded in y around 0 47.9%
Final simplification69.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -7e-7) (not (<= z 5e-30))) (+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z)))) (+ x (* b (+ (* (* y z) -32.324150453290734) (* y 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7e-7) || !(z <= 5e-30)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-7d-7)) .or. (.not. (z <= 5d-30))) then
tmp = x + (y * ((3.13060547623d0 + (t / (z * z))) - (36.52704169880642d0 / z)))
else
tmp = x + (b * (((y * z) * (-32.324150453290734d0)) + (y * 1.6453555072203998d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7e-7) || !(z <= 5e-30)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -7e-7) or not (z <= 5e-30): tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))) else: tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -7e-7) || !(z <= 5e-30)) tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); else tmp = Float64(x + Float64(b * Float64(Float64(Float64(y * z) * -32.324150453290734) + Float64(y * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -7e-7) || ~((z <= 5e-30))) tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))); else tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -7e-7], N[Not[LessEqual[z, 5e-30]], $MachinePrecision]], N[(x + N[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(N[(N[(y * z), $MachinePrecision] * -32.324150453290734), $MachinePrecision] + N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{-7} \lor \neg \left(z \leq 5 \cdot 10^{-30}\right):\\
\;\;\;\;x + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(\left(y \cdot z\right) \cdot -32.324150453290734 + y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -6.99999999999999968e-7 or 4.99999999999999972e-30 < z Initial program 18.4%
associate-*l/25.2%
*-commutative25.2%
fma-def25.2%
*-commutative25.2%
fma-def25.2%
*-commutative25.2%
fma-def25.2%
*-commutative25.2%
fma-def25.2%
Simplified25.2%
Taylor expanded in z around -inf 80.1%
Simplified91.5%
Taylor expanded in y around 0 92.1%
associate-*r/92.1%
metadata-eval92.1%
unpow292.1%
unpow292.1%
associate-*r/92.1%
metadata-eval92.1%
Simplified92.1%
Taylor expanded in t around inf 92.1%
unpow292.1%
Simplified92.1%
if -6.99999999999999968e-7 < z < 4.99999999999999972e-30Initial program 99.7%
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 77.6%
Taylor expanded in b around inf 79.9%
Final simplification86.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -8.2e-7) (not (<= z 2.6e+40)))
(+ x (* y (- (+ 3.13060547623 (/ t (* z z))) (/ 36.52704169880642 z))))
(+
x
(+ (* 1.6453555072203998 (* y b)) (* 1.6453555072203998 (* a (* y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8.2e-7) || !(z <= 2.6e+40)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * 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.2d-7)) .or. (.not. (z <= 2.6d+40))) then
tmp = x + (y * ((3.13060547623d0 + (t / (z * z))) - (36.52704169880642d0 / z)))
else
tmp = x + ((1.6453555072203998d0 * (y * b)) + (1.6453555072203998d0 * (a * (y * 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.2e-7) || !(z <= 2.6e+40)) {
tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z)));
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -8.2e-7) or not (z <= 2.6e+40): tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))) else: tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -8.2e-7) || !(z <= 2.6e+40)) tmp = Float64(x + Float64(y * Float64(Float64(3.13060547623 + Float64(t / Float64(z * z))) - Float64(36.52704169880642 / z)))); else tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(1.6453555072203998 * Float64(a * Float64(y * z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -8.2e-7) || ~((z <= 2.6e+40))) tmp = x + (y * ((3.13060547623 + (t / (z * z))) - (36.52704169880642 / z))); else tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -8.2e-7], N[Not[LessEqual[z, 2.6e+40]], $MachinePrecision]], N[(x + N[(y * N[(N[(3.13060547623 + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{-7} \lor \neg \left(z \leq 2.6 \cdot 10^{+40}\right):\\
\;\;\;\;x + y \cdot \left(\left(3.13060547623 + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + 1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if z < -8.1999999999999998e-7 or 2.6000000000000001e40 < z Initial program 14.2%
associate-*l/20.0%
*-commutative20.0%
fma-def20.0%
*-commutative20.0%
fma-def20.0%
*-commutative20.0%
fma-def20.0%
*-commutative20.0%
fma-def20.0%
Simplified20.0%
Taylor expanded in z around -inf 83.2%
Simplified95.3%
Taylor expanded in y around 0 95.9%
associate-*r/95.9%
metadata-eval95.9%
unpow295.9%
unpow295.9%
associate-*r/95.9%
metadata-eval95.9%
Simplified95.9%
Taylor expanded in t around inf 95.9%
unpow295.9%
Simplified95.9%
if -8.1999999999999998e-7 < z < 2.6000000000000001e40Initial program 98.2%
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 76.1%
Taylor expanded in a around inf 87.7%
Final simplification91.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 2000000000.0)
(+ x (/ y (/ (+ 0.607771387771 (* z 11.9400905721)) b)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 2000000000.0) {
tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 2000000000.0d0) then
tmp = x + (y / ((0.607771387771d0 + (z * 11.9400905721d0)) / b))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 2000000000.0) {
tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 2000000000.0: tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 2000000000.0) tmp = Float64(x + Float64(y / Float64(Float64(0.607771387771 + Float64(z * 11.9400905721)) / b))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 2000000000.0) tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2000000000.0], N[(x + N[(y / N[(N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 2000000000:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771 + z \cdot 11.9400905721}{b}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 2e9Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around 0 78.3%
*-commutative78.3%
Simplified78.3%
if 2e9 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 27000000.0)
(+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 27000000.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 27000000.0d0) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 27000000.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 27000000.0: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 27000000.0) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 27000000.0) tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 27000000.0], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 27000000:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 2.7e7Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around 0 78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in y around 0 78.3%
if 2.7e7 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.0006) (not (<= z 3400000000.0))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.0006) || !(z <= 3400000000.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-0.0006d0)) .or. (.not. (z <= 3400000000.0d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.0006) || !(z <= 3400000000.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.0006) or not (z <= 3400000000.0): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.0006) || !(z <= 3400000000.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.0006) || ~((z <= 3400000000.0))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.0006], N[Not[LessEqual[z, 3400000000.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006 \lor \neg \left(z \leq 3400000000\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4 or 3.4e9 < z Initial program 15.3%
+-commutative15.3%
associate-*l/22.4%
fma-def22.4%
Simplified22.4%
Taylor expanded in z around inf 87.4%
+-commutative87.4%
*-commutative87.4%
Simplified87.4%
if -5.99999999999999947e-4 < z < 3.4e9Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around 0 78.1%
*-commutative78.1%
associate-*r*78.1%
Simplified78.1%
Final simplification83.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 1350000.0)
(+ x (* b (* y 1.6453555072203998)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 1350000.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 1350000.0d0) then
tmp = x + (b * (y * 1.6453555072203998d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 1350000.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 1350000.0: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 1350000.0) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 1350000.0) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1350000.0], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 1350000:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 1.35e6Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around 0 78.1%
*-commutative78.1%
associate-*r*78.1%
Simplified78.1%
if 1.35e6 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -3.9e-38) (not (<= z 1.52e-59))) (+ x (* y 3.13060547623)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.9e-38) || !(z <= 1.52e-59)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-3.9d-38)) .or. (.not. (z <= 1.52d-59))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.9e-38) || !(z <= 1.52e-59)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -3.9e-38) or not (z <= 1.52e-59): tmp = x + (y * 3.13060547623) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.9e-38) || !(z <= 1.52e-59)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -3.9e-38) || ~((z <= 1.52e-59))) tmp = x + (y * 3.13060547623); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.9e-38], N[Not[LessEqual[z, 1.52e-59]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{-38} \lor \neg \left(z \leq 1.52 \cdot 10^{-59}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -3.8999999999999999e-38 or 1.51999999999999998e-59 < z Initial program 24.8%
+-commutative24.8%
associate-*l/31.1%
fma-def31.1%
Simplified31.1%
Taylor expanded in z around inf 79.0%
+-commutative79.0%
*-commutative79.0%
Simplified79.0%
if -3.8999999999999999e-38 < z < 1.51999999999999998e-59Initial program 99.7%
+-commutative99.7%
associate-*l/99.7%
fma-def99.8%
Simplified99.8%
Taylor expanded in y around 0 38.3%
Final simplification62.3%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 55.5%
+-commutative55.5%
associate-*l/59.2%
fma-def59.3%
Simplified59.3%
Taylor expanded in y around 0 41.7%
Final simplification41.7%
(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 2023297
(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))))