
(FPCore (x y z)
:precision binary64
(+
x
(/
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
public static double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
def code(x, y, z): return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304))
function code(x, y, z) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304))) end
function tmp = code(x, y, z) tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304)); end
code[x_, y_, z_] := N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(+
x
(/
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
public static double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
def code(x, y, z): return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304))
function code(x, y, z) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304))) end
function tmp = code(x, y, z) tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304)); end
code[x_, y_, z_] := N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ -0.07512208616047561 (/ 0.4046220386999212 z)) z)))
(if (<=
(/
(*
y
(+
0.279195317918525
(* z (+ 0.4917317610505968 (* z 0.0692910599291889)))))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
INFINITY)
(fma
y
(/
(fma z (fma z 0.0692910599291889 0.4917317610505968) 0.279195317918525)
(fma z (+ z 6.012459259764103) 3.350343815022304))
x)
(+
x
(*
(- 0.004801250986110448 (pow t_0 2.0))
(/ y (+ 0.0692910599291889 t_0)))))))
double code(double x, double y, double z) {
double t_0 = (-0.07512208616047561 + (0.4046220386999212 / z)) / z;
double tmp;
if (((y * (0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889))))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, 0.0692910599291889, 0.4917317610505968), 0.279195317918525) / fma(z, (z + 6.012459259764103), 3.350343815022304)), x);
} else {
tmp = x + ((0.004801250986110448 - pow(t_0, 2.0)) * (y / (0.0692910599291889 + t_0)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(-0.07512208616047561 + Float64(0.4046220386999212 / z)) / z) tmp = 0.0 if (Float64(Float64(y * Float64(0.279195317918525 + Float64(z * Float64(0.4917317610505968 + Float64(z * 0.0692910599291889))))) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, 0.0692910599291889, 0.4917317610505968), 0.279195317918525) / fma(z, Float64(z + 6.012459259764103), 3.350343815022304)), x); else tmp = Float64(x + Float64(Float64(0.004801250986110448 - (t_0 ^ 2.0)) * Float64(y / Float64(0.0692910599291889 + t_0)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-0.07512208616047561 + N[(0.4046220386999212 / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(0.279195317918525 + N[(z * N[(0.4917317610505968 + N[(z * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(z * N[(z * 0.0692910599291889 + 0.4917317610505968), $MachinePrecision] + 0.279195317918525), $MachinePrecision] / N[(z * N[(z + 6.012459259764103), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(0.004801250986110448 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(y / N[(0.0692910599291889 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-0.07512208616047561 + \frac{0.4046220386999212}{z}}{z}\\
\mathbf{if}\;\frac{y \cdot \left(0.279195317918525 + z \cdot \left(0.4917317610505968 + z \cdot 0.0692910599291889\right)\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), 0.279195317918525\right)}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(0.004801250986110448 - {t\_0}^{2}\right) \cdot \frac{y}{0.0692910599291889 + t\_0}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < +inf.0Initial program 92.6%
+-commutative92.6%
associate-/l*99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
Simplified99.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) Initial program 0.0%
remove-double-neg0.0%
distribute-lft-neg-out0.0%
distribute-neg-frac0.0%
associate-/l*0.0%
distribute-rgt-neg-in0.0%
distribute-lft-neg-in0.0%
distribute-rgt-neg-in0.0%
remove-double-neg0.0%
Simplified0.0%
Taylor expanded in z around -inf 99.5%
mul-1-neg99.5%
unsub-neg99.5%
sub-neg99.5%
associate-*r/99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
add-cube-cbrt99.1%
pow399.2%
Applied egg-rr99.2%
rem-cube-cbrt99.5%
flip--99.5%
associate-*r/99.4%
metadata-eval99.7%
pow299.7%
+-commutative99.7%
+-commutative99.7%
Applied egg-rr99.7%
*-commutative99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ -0.07512208616047561 (/ 0.4046220386999212 z)) z)))
(if (<=
(/
(*
y
(+
0.279195317918525
(* z (+ 0.4917317610505968 (* z 0.0692910599291889)))))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
INFINITY)
(+
x
(*
y
(/
(fma (fma z 0.0692910599291889 0.4917317610505968) z 0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+
x
(*
(- 0.004801250986110448 (pow t_0 2.0))
(/ y (+ 0.0692910599291889 t_0)))))))
double code(double x, double y, double z) {
double t_0 = (-0.07512208616047561 + (0.4046220386999212 / z)) / z;
double tmp;
if (((y * (0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889))))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= ((double) INFINITY)) {
tmp = x + (y * (fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
} else {
tmp = x + ((0.004801250986110448 - pow(t_0, 2.0)) * (y / (0.0692910599291889 + t_0)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(-0.07512208616047561 + Float64(0.4046220386999212 / z)) / z) tmp = 0.0 if (Float64(Float64(y * Float64(0.279195317918525 + Float64(z * Float64(0.4917317610505968 + Float64(z * 0.0692910599291889))))) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= Inf) tmp = Float64(x + Float64(y * Float64(fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma(Float64(z + 6.012459259764103), z, 3.350343815022304)))); else tmp = Float64(x + Float64(Float64(0.004801250986110448 - (t_0 ^ 2.0)) * Float64(y / Float64(0.0692910599291889 + t_0)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-0.07512208616047561 + N[(0.4046220386999212 / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(0.279195317918525 + N[(z * N[(0.4917317610505968 + N[(z * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(N[(z * 0.0692910599291889 + 0.4917317610505968), $MachinePrecision] * z + 0.279195317918525), $MachinePrecision] / N[(N[(z + 6.012459259764103), $MachinePrecision] * z + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(0.004801250986110448 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(y / N[(0.0692910599291889 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-0.07512208616047561 + \frac{0.4046220386999212}{z}}{z}\\
\mathbf{if}\;\frac{y \cdot \left(0.279195317918525 + z \cdot \left(0.4917317610505968 + z \cdot 0.0692910599291889\right)\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq \infty:\\
\;\;\;\;x + y \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right), z, 0.279195317918525\right)}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(0.004801250986110448 - {t\_0}^{2}\right) \cdot \frac{y}{0.0692910599291889 + t\_0}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < +inf.0Initial program 92.6%
remove-double-neg92.6%
distribute-lft-neg-out92.6%
distribute-neg-frac92.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) Initial program 0.0%
remove-double-neg0.0%
distribute-lft-neg-out0.0%
distribute-neg-frac0.0%
associate-/l*0.0%
distribute-rgt-neg-in0.0%
distribute-lft-neg-in0.0%
distribute-rgt-neg-in0.0%
remove-double-neg0.0%
Simplified0.0%
Taylor expanded in z around -inf 99.5%
mul-1-neg99.5%
unsub-neg99.5%
sub-neg99.5%
associate-*r/99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
add-cube-cbrt99.1%
pow399.2%
Applied egg-rr99.2%
rem-cube-cbrt99.5%
flip--99.5%
associate-*r/99.4%
metadata-eval99.7%
pow299.7%
+-commutative99.7%
+-commutative99.7%
Applied egg-rr99.7%
*-commutative99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (* z (+ z 6.012459259764103)) 3.350343815022304))
(t_1
(+
0.279195317918525
(* z (+ 0.4917317610505968 (* z 0.0692910599291889)))))
(t_2 (/ (* y t_1) t_0)))
(if (<= t_2 -1e+188)
(* y (+ (/ x y) (/ t_1 t_0)))
(if (<= t_2 5e+297)
(+ t_2 x)
(+
x
(/
(* y (- 0.004801250986110448 (/ 0.005643327829101921 (pow z 2.0))))
(+ 0.0692910599291889 (/ -0.07512208616047561 z))))))))
double code(double x, double y, double z) {
double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889)));
double t_2 = (y * t_1) / t_0;
double tmp;
if (t_2 <= -1e+188) {
tmp = y * ((x / y) + (t_1 / t_0));
} else if (t_2 <= 5e+297) {
tmp = t_2 + x;
} else {
tmp = x + ((y * (0.004801250986110448 - (0.005643327829101921 / pow(z, 2.0)))) / (0.0692910599291889 + (-0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (z * (z + 6.012459259764103d0)) + 3.350343815022304d0
t_1 = 0.279195317918525d0 + (z * (0.4917317610505968d0 + (z * 0.0692910599291889d0)))
t_2 = (y * t_1) / t_0
if (t_2 <= (-1d+188)) then
tmp = y * ((x / y) + (t_1 / t_0))
else if (t_2 <= 5d+297) then
tmp = t_2 + x
else
tmp = x + ((y * (0.004801250986110448d0 - (0.005643327829101921d0 / (z ** 2.0d0)))) / (0.0692910599291889d0 + ((-0.07512208616047561d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889)));
double t_2 = (y * t_1) / t_0;
double tmp;
if (t_2 <= -1e+188) {
tmp = y * ((x / y) + (t_1 / t_0));
} else if (t_2 <= 5e+297) {
tmp = t_2 + x;
} else {
tmp = x + ((y * (0.004801250986110448 - (0.005643327829101921 / Math.pow(z, 2.0)))) / (0.0692910599291889 + (-0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304 t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889))) t_2 = (y * t_1) / t_0 tmp = 0 if t_2 <= -1e+188: tmp = y * ((x / y) + (t_1 / t_0)) elif t_2 <= 5e+297: tmp = t_2 + x else: tmp = x + ((y * (0.004801250986110448 - (0.005643327829101921 / math.pow(z, 2.0)))) / (0.0692910599291889 + (-0.07512208616047561 / z))) return tmp
function code(x, y, z) t_0 = Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304) t_1 = Float64(0.279195317918525 + Float64(z * Float64(0.4917317610505968 + Float64(z * 0.0692910599291889)))) t_2 = Float64(Float64(y * t_1) / t_0) tmp = 0.0 if (t_2 <= -1e+188) tmp = Float64(y * Float64(Float64(x / y) + Float64(t_1 / t_0))); elseif (t_2 <= 5e+297) tmp = Float64(t_2 + x); else tmp = Float64(x + Float64(Float64(y * Float64(0.004801250986110448 - Float64(0.005643327829101921 / (z ^ 2.0)))) / Float64(0.0692910599291889 + Float64(-0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304; t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889))); t_2 = (y * t_1) / t_0; tmp = 0.0; if (t_2 <= -1e+188) tmp = y * ((x / y) + (t_1 / t_0)); elseif (t_2 <= 5e+297) tmp = t_2 + x; else tmp = x + ((y * (0.004801250986110448 - (0.005643327829101921 / (z ^ 2.0)))) / (0.0692910599291889 + (-0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]}, Block[{t$95$1 = N[(0.279195317918525 + N[(z * N[(0.4917317610505968 + N[(z * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+188], N[(y * N[(N[(x / y), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+297], N[(t$95$2 + x), $MachinePrecision], N[(x + N[(N[(y * N[(0.004801250986110448 - N[(0.005643327829101921 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.0692910599291889 + N[(-0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304\\
t_1 := 0.279195317918525 + z \cdot \left(0.4917317610505968 + z \cdot 0.0692910599291889\right)\\
t_2 := \frac{y \cdot t\_1}{t\_0}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+188}:\\
\;\;\;\;y \cdot \left(\frac{x}{y} + \frac{t\_1}{t\_0}\right)\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+297}:\\
\;\;\;\;t\_2 + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(0.004801250986110448 - \frac{0.005643327829101921}{{z}^{2}}\right)}{0.0692910599291889 + \frac{-0.07512208616047561}{z}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < -1e188Initial program 76.2%
+-commutative76.2%
associate-/l*99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around -inf 99.5%
if -1e188 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < 4.9999999999999998e297Initial program 99.7%
if 4.9999999999999998e297 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) Initial program 0.5%
remove-double-neg0.5%
distribute-lft-neg-out0.5%
distribute-neg-frac0.5%
associate-/l*11.0%
distribute-rgt-neg-in11.0%
distribute-lft-neg-in11.0%
distribute-rgt-neg-in11.0%
remove-double-neg11.0%
Simplified11.0%
Taylor expanded in z around -inf 99.5%
mul-1-neg99.5%
unsub-neg99.5%
sub-neg99.5%
associate-*r/99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around inf 99.5%
*-commutative99.5%
flip--99.5%
associate-*l/99.4%
metadata-eval99.6%
frac-times99.6%
metadata-eval99.6%
pow299.6%
Applied egg-rr99.6%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ -0.07512208616047561 (/ 0.4046220386999212 z)) z)))
(if (or (<= z -64.0) (not (<= z 1.7e-10)))
(+
x
(*
(- 0.004801250986110448 (pow t_0 2.0))
(/ y (+ 0.0692910599291889 t_0))))
(+
x
(*
y
(+
0.08333333333333323
(*
z
(-
(* z (+ 0.0007936505811533442 (* z -0.0005951669793454025)))
0.00277777777751721))))))))
double code(double x, double y, double z) {
double t_0 = (-0.07512208616047561 + (0.4046220386999212 / z)) / z;
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + ((0.004801250986110448 - pow(t_0, 2.0)) * (y / (0.0692910599291889 + t_0)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((-0.07512208616047561d0) + (0.4046220386999212d0 / z)) / z
if ((z <= (-64.0d0)) .or. (.not. (z <= 1.7d-10))) then
tmp = x + ((0.004801250986110448d0 - (t_0 ** 2.0d0)) * (y / (0.0692910599291889d0 + t_0)))
else
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * (0.0007936505811533442d0 + (z * (-0.0005951669793454025d0)))) - 0.00277777777751721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (-0.07512208616047561 + (0.4046220386999212 / z)) / z;
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + ((0.004801250986110448 - Math.pow(t_0, 2.0)) * (y / (0.0692910599291889 + t_0)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
}
return tmp;
}
def code(x, y, z): t_0 = (-0.07512208616047561 + (0.4046220386999212 / z)) / z tmp = 0 if (z <= -64.0) or not (z <= 1.7e-10): tmp = x + ((0.004801250986110448 - math.pow(t_0, 2.0)) * (y / (0.0692910599291889 + t_0))) else: tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(-0.07512208616047561 + Float64(0.4046220386999212 / z)) / z) tmp = 0.0 if ((z <= -64.0) || !(z <= 1.7e-10)) tmp = Float64(x + Float64(Float64(0.004801250986110448 - (t_0 ^ 2.0)) * Float64(y / Float64(0.0692910599291889 + t_0)))); else tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * Float64(0.0007936505811533442 + Float64(z * -0.0005951669793454025))) - 0.00277777777751721))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (-0.07512208616047561 + (0.4046220386999212 / z)) / z; tmp = 0.0; if ((z <= -64.0) || ~((z <= 1.7e-10))) tmp = x + ((0.004801250986110448 - (t_0 ^ 2.0)) * (y / (0.0692910599291889 + t_0))); else tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-0.07512208616047561 + N[(0.4046220386999212 / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, If[Or[LessEqual[z, -64.0], N[Not[LessEqual[z, 1.7e-10]], $MachinePrecision]], N[(x + N[(N[(0.004801250986110448 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(y / N[(0.0692910599291889 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * N[(0.0007936505811533442 + N[(z * -0.0005951669793454025), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-0.07512208616047561 + \frac{0.4046220386999212}{z}}{z}\\
\mathbf{if}\;z \leq -64 \lor \neg \left(z \leq 1.7 \cdot 10^{-10}\right):\\
\;\;\;\;x + \left(0.004801250986110448 - {t\_0}^{2}\right) \cdot \frac{y}{0.0692910599291889 + t\_0}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right) - 0.00277777777751721\right)\right)\\
\end{array}
\end{array}
if z < -64 or 1.70000000000000007e-10 < z Initial program 36.7%
remove-double-neg36.7%
distribute-lft-neg-out36.7%
distribute-neg-frac36.7%
associate-/l*49.3%
distribute-rgt-neg-in49.3%
distribute-lft-neg-in49.3%
distribute-rgt-neg-in49.3%
remove-double-neg49.3%
Simplified49.3%
Taylor expanded in z around -inf 99.3%
mul-1-neg99.3%
unsub-neg99.3%
sub-neg99.3%
associate-*r/99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
add-cube-cbrt98.9%
pow398.9%
Applied egg-rr98.9%
rem-cube-cbrt99.3%
flip--99.3%
associate-*r/99.3%
metadata-eval99.4%
pow299.4%
+-commutative99.4%
+-commutative99.4%
Applied egg-rr99.4%
*-commutative99.4%
associate-/l*99.5%
Simplified99.5%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (* z (+ z 6.012459259764103)) 3.350343815022304))
(t_1
(+
0.279195317918525
(* z (+ 0.4917317610505968 (* z 0.0692910599291889)))))
(t_2 (/ (* y t_1) t_0)))
(if (<= t_2 -1e+188)
(* y (+ (/ x y) (/ t_1 t_0)))
(if (<= t_2 5e+297) (+ t_2 x) (+ x (* y 0.0692910599291889))))))
double code(double x, double y, double z) {
double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889)));
double t_2 = (y * t_1) / t_0;
double tmp;
if (t_2 <= -1e+188) {
tmp = y * ((x / y) + (t_1 / t_0));
} else if (t_2 <= 5e+297) {
tmp = t_2 + x;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (z * (z + 6.012459259764103d0)) + 3.350343815022304d0
t_1 = 0.279195317918525d0 + (z * (0.4917317610505968d0 + (z * 0.0692910599291889d0)))
t_2 = (y * t_1) / t_0
if (t_2 <= (-1d+188)) then
tmp = y * ((x / y) + (t_1 / t_0))
else if (t_2 <= 5d+297) then
tmp = t_2 + x
else
tmp = x + (y * 0.0692910599291889d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889)));
double t_2 = (y * t_1) / t_0;
double tmp;
if (t_2 <= -1e+188) {
tmp = y * ((x / y) + (t_1 / t_0));
} else if (t_2 <= 5e+297) {
tmp = t_2 + x;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
def code(x, y, z): t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304 t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889))) t_2 = (y * t_1) / t_0 tmp = 0 if t_2 <= -1e+188: tmp = y * ((x / y) + (t_1 / t_0)) elif t_2 <= 5e+297: tmp = t_2 + x else: tmp = x + (y * 0.0692910599291889) return tmp
function code(x, y, z) t_0 = Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304) t_1 = Float64(0.279195317918525 + Float64(z * Float64(0.4917317610505968 + Float64(z * 0.0692910599291889)))) t_2 = Float64(Float64(y * t_1) / t_0) tmp = 0.0 if (t_2 <= -1e+188) tmp = Float64(y * Float64(Float64(x / y) + Float64(t_1 / t_0))); elseif (t_2 <= 5e+297) tmp = Float64(t_2 + x); else tmp = Float64(x + Float64(y * 0.0692910599291889)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304; t_1 = 0.279195317918525 + (z * (0.4917317610505968 + (z * 0.0692910599291889))); t_2 = (y * t_1) / t_0; tmp = 0.0; if (t_2 <= -1e+188) tmp = y * ((x / y) + (t_1 / t_0)); elseif (t_2 <= 5e+297) tmp = t_2 + x; else tmp = x + (y * 0.0692910599291889); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]}, Block[{t$95$1 = N[(0.279195317918525 + N[(z * N[(0.4917317610505968 + N[(z * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+188], N[(y * N[(N[(x / y), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+297], N[(t$95$2 + x), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304\\
t_1 := 0.279195317918525 + z \cdot \left(0.4917317610505968 + z \cdot 0.0692910599291889\right)\\
t_2 := \frac{y \cdot t\_1}{t\_0}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+188}:\\
\;\;\;\;y \cdot \left(\frac{x}{y} + \frac{t\_1}{t\_0}\right)\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+297}:\\
\;\;\;\;t\_2 + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < -1e188Initial program 76.2%
+-commutative76.2%
associate-/l*99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in y around -inf 99.5%
if -1e188 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < 4.9999999999999998e297Initial program 99.7%
if 4.9999999999999998e297 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) Initial program 0.5%
+-commutative0.5%
associate-/l*11.0%
fma-define11.0%
*-commutative11.0%
fma-define11.0%
fma-define11.0%
*-commutative11.0%
fma-define11.0%
Simplified11.0%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(if (<= y -2.4e+231)
(* y 0.08333333333333323)
(if (<= y -8e+202)
(* y 0.0692910599291889)
(if (<= y -2.75e+112)
(* y 0.08333333333333323)
(if (<= y 8.4e+162)
x
(if (<= y 1.2e+281)
(* y 0.0692910599291889)
(* y 0.08333333333333323)))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -2.4e+231) {
tmp = y * 0.08333333333333323;
} else if (y <= -8e+202) {
tmp = y * 0.0692910599291889;
} else if (y <= -2.75e+112) {
tmp = y * 0.08333333333333323;
} else if (y <= 8.4e+162) {
tmp = x;
} else if (y <= 1.2e+281) {
tmp = y * 0.0692910599291889;
} else {
tmp = y * 0.08333333333333323;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= (-2.4d+231)) then
tmp = y * 0.08333333333333323d0
else if (y <= (-8d+202)) then
tmp = y * 0.0692910599291889d0
else if (y <= (-2.75d+112)) then
tmp = y * 0.08333333333333323d0
else if (y <= 8.4d+162) then
tmp = x
else if (y <= 1.2d+281) then
tmp = y * 0.0692910599291889d0
else
tmp = y * 0.08333333333333323d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -2.4e+231) {
tmp = y * 0.08333333333333323;
} else if (y <= -8e+202) {
tmp = y * 0.0692910599291889;
} else if (y <= -2.75e+112) {
tmp = y * 0.08333333333333323;
} else if (y <= 8.4e+162) {
tmp = x;
} else if (y <= 1.2e+281) {
tmp = y * 0.0692910599291889;
} else {
tmp = y * 0.08333333333333323;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -2.4e+231: tmp = y * 0.08333333333333323 elif y <= -8e+202: tmp = y * 0.0692910599291889 elif y <= -2.75e+112: tmp = y * 0.08333333333333323 elif y <= 8.4e+162: tmp = x elif y <= 1.2e+281: tmp = y * 0.0692910599291889 else: tmp = y * 0.08333333333333323 return tmp
function code(x, y, z) tmp = 0.0 if (y <= -2.4e+231) tmp = Float64(y * 0.08333333333333323); elseif (y <= -8e+202) tmp = Float64(y * 0.0692910599291889); elseif (y <= -2.75e+112) tmp = Float64(y * 0.08333333333333323); elseif (y <= 8.4e+162) tmp = x; elseif (y <= 1.2e+281) tmp = Float64(y * 0.0692910599291889); else tmp = Float64(y * 0.08333333333333323); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -2.4e+231) tmp = y * 0.08333333333333323; elseif (y <= -8e+202) tmp = y * 0.0692910599291889; elseif (y <= -2.75e+112) tmp = y * 0.08333333333333323; elseif (y <= 8.4e+162) tmp = x; elseif (y <= 1.2e+281) tmp = y * 0.0692910599291889; else tmp = y * 0.08333333333333323; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -2.4e+231], N[(y * 0.08333333333333323), $MachinePrecision], If[LessEqual[y, -8e+202], N[(y * 0.0692910599291889), $MachinePrecision], If[LessEqual[y, -2.75e+112], N[(y * 0.08333333333333323), $MachinePrecision], If[LessEqual[y, 8.4e+162], x, If[LessEqual[y, 1.2e+281], N[(y * 0.0692910599291889), $MachinePrecision], N[(y * 0.08333333333333323), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+231}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{elif}\;y \leq -8 \cdot 10^{+202}:\\
\;\;\;\;y \cdot 0.0692910599291889\\
\mathbf{elif}\;y \leq -2.75 \cdot 10^{+112}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{elif}\;y \leq 8.4 \cdot 10^{+162}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+281}:\\
\;\;\;\;y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if y < -2.40000000000000007e231 or -7.9999999999999992e202 < y < -2.75000000000000013e112 or 1.2e281 < y Initial program 73.8%
+-commutative73.8%
associate-/l*83.8%
fma-define83.8%
*-commutative83.8%
fma-define83.8%
fma-define83.8%
*-commutative83.8%
fma-define83.8%
Simplified83.8%
Taylor expanded in z around 0 78.6%
+-commutative78.6%
Simplified78.6%
Taylor expanded in y around inf 69.7%
if -2.40000000000000007e231 < y < -7.9999999999999992e202 or 8.4000000000000001e162 < y < 1.2e281Initial program 40.0%
+-commutative40.0%
associate-/l*56.9%
fma-define56.9%
*-commutative56.9%
fma-define56.9%
fma-define56.9%
*-commutative56.9%
fma-define56.9%
Simplified56.9%
Taylor expanded in z around inf 85.4%
+-commutative85.4%
Simplified85.4%
Taylor expanded in y around inf 68.5%
*-commutative68.5%
Simplified68.5%
if -2.75000000000000013e112 < y < 8.4000000000000001e162Initial program 77.1%
+-commutative77.1%
associate-/l*79.4%
fma-define79.4%
*-commutative79.4%
fma-define79.4%
fma-define79.4%
*-commutative79.4%
fma-define79.4%
Simplified79.4%
Taylor expanded in y around 0 73.8%
Final simplification72.3%
(FPCore (x y z)
:precision binary64
(if (<= z -64.0)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ -0.07512208616047561 (/ 0.4046220386999212 z)) z))))
(if (<= z 1.7e-10)
(+
x
(*
y
(+
0.08333333333333323
(*
z
(-
(* z (+ 0.0007936505811533442 (* z -0.0005951669793454025)))
0.00277777777751721)))))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z)));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-64.0d0)) then
tmp = x + (y * (0.0692910599291889d0 - (((-0.07512208616047561d0) + (0.4046220386999212d0 / z)) / z)))
else if (z <= 1.7d-10) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * (0.0007936505811533442d0 + (z * (-0.0005951669793454025d0)))) - 0.00277777777751721d0))))
else
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z)));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -64.0: tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z))) elif z <= 1.7e-10: tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -64.0) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(-0.07512208616047561 + Float64(0.4046220386999212 / z)) / z)))); elseif (z <= 1.7e-10) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * Float64(0.0007936505811533442 + Float64(z * -0.0005951669793454025))) - 0.00277777777751721))))); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -64.0) tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z))); elseif (z <= 1.7e-10) tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -64.0], N[(x + N[(y * N[(0.0692910599291889 - N[(N[(-0.07512208616047561 + N[(0.4046220386999212 / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-10], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * N[(0.0007936505811533442 + N[(z * -0.0005951669793454025), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{-0.07512208616047561 + \frac{0.4046220386999212}{z}}{z}\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-10}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right) - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -64Initial program 33.3%
remove-double-neg33.3%
distribute-lft-neg-out33.3%
distribute-neg-frac33.3%
associate-/l*44.6%
distribute-rgt-neg-in44.6%
distribute-lft-neg-in44.6%
distribute-rgt-neg-in44.6%
remove-double-neg44.6%
Simplified44.6%
Taylor expanded in z around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
metadata-eval99.0%
Simplified99.0%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
if 1.70000000000000007e-10 < z Initial program 40.5%
remove-double-neg40.5%
distribute-lft-neg-out40.5%
distribute-neg-frac40.5%
associate-/l*54.5%
distribute-rgt-neg-in54.5%
distribute-lft-neg-in54.5%
distribute-rgt-neg-in54.5%
remove-double-neg54.5%
Simplified54.5%
Taylor expanded in z around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(if (<= z -64.0)
(+ x (* y (/ (+ (* z 0.0692910599291889) 0.07512208616047561) z)))
(if (<= z 1.7e-10)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-64.0d0)) then
tmp = x + (y * (((z * 0.0692910599291889d0) + 0.07512208616047561d0) / z))
else if (z <= 1.7d-10) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -64.0: tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z)) elif z <= 1.7e-10: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -64.0) tmp = Float64(x + Float64(y * Float64(Float64(Float64(z * 0.0692910599291889) + 0.07512208616047561) / z))); elseif (z <= 1.7e-10) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -64.0) tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z)); elseif (z <= 1.7e-10) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -64.0], N[(x + N[(y * N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-10], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * 0.0007936505811533442), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64:\\
\;\;\;\;x + y \cdot \frac{z \cdot 0.0692910599291889 + 0.07512208616047561}{z}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-10}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -64Initial program 33.3%
remove-double-neg33.3%
distribute-lft-neg-out33.3%
distribute-neg-frac33.3%
associate-/l*44.6%
distribute-rgt-neg-in44.6%
distribute-lft-neg-in44.6%
distribute-rgt-neg-in44.6%
remove-double-neg44.6%
Simplified44.6%
Taylor expanded in z around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
metadata-eval99.0%
Simplified99.0%
Taylor expanded in z around inf 98.7%
Taylor expanded in z around 0 98.7%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.7%
if 1.70000000000000007e-10 < z Initial program 40.5%
remove-double-neg40.5%
distribute-lft-neg-out40.5%
distribute-neg-frac40.5%
associate-/l*54.5%
distribute-rgt-neg-in54.5%
distribute-lft-neg-in54.5%
distribute-rgt-neg-in54.5%
remove-double-neg54.5%
Simplified54.5%
Taylor expanded in z around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -64.0)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ -0.07512208616047561 (/ 0.4046220386999212 z)) z))))
(if (<= z 1.7e-10)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z)));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-64.0d0)) then
tmp = x + (y * (0.0692910599291889d0 - (((-0.07512208616047561d0) + (0.4046220386999212d0 / z)) / z)))
else if (z <= 1.7d-10) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z)));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -64.0: tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z))) elif z <= 1.7e-10: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -64.0) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(-0.07512208616047561 + Float64(0.4046220386999212 / z)) / z)))); elseif (z <= 1.7e-10) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -64.0) tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z))); elseif (z <= 1.7e-10) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -64.0], N[(x + N[(y * N[(0.0692910599291889 - N[(N[(-0.07512208616047561 + N[(0.4046220386999212 / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-10], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * 0.0007936505811533442), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{-0.07512208616047561 + \frac{0.4046220386999212}{z}}{z}\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-10}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -64Initial program 33.3%
remove-double-neg33.3%
distribute-lft-neg-out33.3%
distribute-neg-frac33.3%
associate-/l*44.6%
distribute-rgt-neg-in44.6%
distribute-lft-neg-in44.6%
distribute-rgt-neg-in44.6%
remove-double-neg44.6%
Simplified44.6%
Taylor expanded in z around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
metadata-eval99.0%
Simplified99.0%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.7%
if 1.70000000000000007e-10 < z Initial program 40.5%
remove-double-neg40.5%
distribute-lft-neg-out40.5%
distribute-neg-frac40.5%
associate-/l*54.5%
distribute-rgt-neg-in54.5%
distribute-lft-neg-in54.5%
distribute-rgt-neg-in54.5%
remove-double-neg54.5%
Simplified54.5%
Taylor expanded in z around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.6%
(FPCore (x y z) :precision binary64 (if (or (<= z -64.0) (not (<= z 1.7e-10))) (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-64.0d0)) .or. (.not. (z <= 1.7d-10))) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else
tmp = x + (y * 0.08333333333333323d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -64.0) or not (z <= 1.7e-10): tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -64.0) || !(z <= 1.7e-10)) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); else tmp = Float64(x + Float64(y * 0.08333333333333323)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -64.0) || ~((z <= 1.7e-10))) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); else tmp = x + (y * 0.08333333333333323); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -64.0], N[Not[LessEqual[z, 1.7e-10]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64 \lor \neg \left(z \leq 1.7 \cdot 10^{-10}\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -64 or 1.70000000000000007e-10 < z Initial program 36.7%
remove-double-neg36.7%
distribute-lft-neg-out36.7%
distribute-neg-frac36.7%
associate-/l*49.3%
distribute-rgt-neg-in49.3%
distribute-lft-neg-in49.3%
distribute-rgt-neg-in49.3%
remove-double-neg49.3%
Simplified49.3%
Taylor expanded in z around inf 99.2%
associate-*r/99.2%
metadata-eval99.2%
Simplified99.2%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
+-commutative99.6%
associate-/l*99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.1%
+-commutative99.1%
Simplified99.1%
Final simplification99.1%
(FPCore (x y z) :precision binary64 (if (or (<= z -64.0) (not (<= z 1.7e-10))) (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))) (+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-64.0d0)) .or. (.not. (z <= 1.7d-10))) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else
tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -64.0) or not (z <= 1.7e-10): tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) else: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -64.0) || !(z <= 1.7e-10)) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); else tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -64.0) || ~((z <= 1.7e-10))) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); else tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -64.0], N[Not[LessEqual[z, 1.7e-10]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64 \lor \neg \left(z \leq 1.7 \cdot 10^{-10}\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\end{array}
\end{array}
if z < -64 or 1.70000000000000007e-10 < z Initial program 36.7%
remove-double-neg36.7%
distribute-lft-neg-out36.7%
distribute-neg-frac36.7%
associate-/l*49.3%
distribute-rgt-neg-in49.3%
distribute-lft-neg-in49.3%
distribute-rgt-neg-in49.3%
remove-double-neg49.3%
Simplified49.3%
Taylor expanded in z around inf 99.2%
associate-*r/99.2%
metadata-eval99.2%
Simplified99.2%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (<= z -64.0)
(+ x (* y (/ (+ (* z 0.0692910599291889) 0.07512208616047561) z)))
(if (<= z 1.7e-10)
(+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-64.0d0)) then
tmp = x + (y * (((z * 0.0692910599291889d0) + 0.07512208616047561d0) / z))
else if (z <= 1.7d-10) then
tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
else
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -64.0) {
tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z));
} else if (z <= 1.7e-10) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -64.0: tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z)) elif z <= 1.7e-10: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -64.0) tmp = Float64(x + Float64(y * Float64(Float64(Float64(z * 0.0692910599291889) + 0.07512208616047561) / z))); elseif (z <= 1.7e-10) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721)))); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -64.0) tmp = x + (y * (((z * 0.0692910599291889) + 0.07512208616047561) / z)); elseif (z <= 1.7e-10) tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -64.0], N[(x + N[(y * N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-10], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64:\\
\;\;\;\;x + y \cdot \frac{z \cdot 0.0692910599291889 + 0.07512208616047561}{z}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-10}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -64Initial program 33.3%
remove-double-neg33.3%
distribute-lft-neg-out33.3%
distribute-neg-frac33.3%
associate-/l*44.6%
distribute-rgt-neg-in44.6%
distribute-lft-neg-in44.6%
distribute-rgt-neg-in44.6%
remove-double-neg44.6%
Simplified44.6%
Taylor expanded in z around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
metadata-eval99.0%
Simplified99.0%
Taylor expanded in z around inf 98.7%
Taylor expanded in z around 0 98.7%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
if 1.70000000000000007e-10 < z Initial program 40.5%
remove-double-neg40.5%
distribute-lft-neg-out40.5%
distribute-neg-frac40.5%
associate-/l*54.5%
distribute-rgt-neg-in54.5%
distribute-lft-neg-in54.5%
distribute-rgt-neg-in54.5%
remove-double-neg54.5%
Simplified54.5%
Taylor expanded in z around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.4%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.3e+255) (not (<= y 5.4e+280))) (* y 0.08333333333333323) (+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.3e+255) || !(y <= 5.4e+280)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= (-1.3d+255)) .or. (.not. (y <= 5.4d+280))) then
tmp = y * 0.08333333333333323d0
else
tmp = x + (y * 0.0692910599291889d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -1.3e+255) || !(y <= 5.4e+280)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.3e+255) or not (y <= 5.4e+280): tmp = y * 0.08333333333333323 else: tmp = x + (y * 0.0692910599291889) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.3e+255) || !(y <= 5.4e+280)) tmp = Float64(y * 0.08333333333333323); else tmp = Float64(x + Float64(y * 0.0692910599291889)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.3e+255) || ~((y <= 5.4e+280))) tmp = y * 0.08333333333333323; else tmp = x + (y * 0.0692910599291889); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.3e+255], N[Not[LessEqual[y, 5.4e+280]], $MachinePrecision]], N[(y * 0.08333333333333323), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+255} \lor \neg \left(y \leq 5.4 \cdot 10^{+280}\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if y < -1.30000000000000005e255 or 5.40000000000000034e280 < y Initial program 80.5%
+-commutative80.5%
associate-/l*84.4%
fma-define84.4%
*-commutative84.4%
fma-define84.4%
fma-define84.4%
*-commutative84.4%
fma-define84.4%
Simplified84.4%
Taylor expanded in z around 0 84.7%
+-commutative84.7%
Simplified84.7%
Taylor expanded in y around inf 80.0%
if -1.30000000000000005e255 < y < 5.40000000000000034e280Initial program 71.4%
+-commutative71.4%
associate-/l*77.2%
fma-define77.2%
*-commutative77.2%
fma-define77.2%
fma-define77.2%
*-commutative77.2%
fma-define77.2%
Simplified77.2%
Taylor expanded in z around inf 81.6%
+-commutative81.6%
Simplified81.6%
Final simplification81.4%
(FPCore (x y z) :precision binary64 (if (or (<= z -64.0) (not (<= z 1.7e-10))) (+ x (* y 0.0692910599291889)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-64.0d0)) .or. (.not. (z <= 1.7d-10))) then
tmp = x + (y * 0.0692910599291889d0)
else
tmp = x + (y * 0.08333333333333323d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -64.0) || !(z <= 1.7e-10)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -64.0) or not (z <= 1.7e-10): tmp = x + (y * 0.0692910599291889) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -64.0) || !(z <= 1.7e-10)) tmp = Float64(x + Float64(y * 0.0692910599291889)); else tmp = Float64(x + Float64(y * 0.08333333333333323)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -64.0) || ~((z <= 1.7e-10))) tmp = x + (y * 0.0692910599291889); else tmp = x + (y * 0.08333333333333323); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -64.0], N[Not[LessEqual[z, 1.7e-10]], $MachinePrecision]], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -64 \lor \neg \left(z \leq 1.7 \cdot 10^{-10}\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -64 or 1.70000000000000007e-10 < z Initial program 36.7%
+-commutative36.7%
associate-/l*49.3%
fma-define49.3%
*-commutative49.3%
fma-define49.3%
fma-define49.3%
*-commutative49.3%
fma-define49.3%
Simplified49.3%
Taylor expanded in z around inf 98.8%
+-commutative98.8%
Simplified98.8%
if -64 < z < 1.70000000000000007e-10Initial program 99.6%
+-commutative99.6%
associate-/l*99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.1%
+-commutative99.1%
Simplified99.1%
Final simplification99.0%
(FPCore (x y z) :precision binary64 (if (or (<= y -2.7e+104) (not (<= y 2.4e+162))) (* y 0.08333333333333323) x))
double code(double x, double y, double z) {
double tmp;
if ((y <= -2.7e+104) || !(y <= 2.4e+162)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= (-2.7d+104)) .or. (.not. (y <= 2.4d+162))) then
tmp = y * 0.08333333333333323d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -2.7e+104) || !(y <= 2.4e+162)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -2.7e+104) or not (y <= 2.4e+162): tmp = y * 0.08333333333333323 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -2.7e+104) || !(y <= 2.4e+162)) tmp = Float64(y * 0.08333333333333323); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -2.7e+104) || ~((y <= 2.4e+162))) tmp = y * 0.08333333333333323; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -2.7e+104], N[Not[LessEqual[y, 2.4e+162]], $MachinePrecision]], N[(y * 0.08333333333333323), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+104} \lor \neg \left(y \leq 2.4 \cdot 10^{+162}\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.69999999999999985e104 or 2.40000000000000009e162 < y Initial program 62.7%
+-commutative62.7%
associate-/l*74.9%
fma-define74.9%
*-commutative74.9%
fma-define74.9%
fma-define74.9%
*-commutative74.9%
fma-define74.9%
Simplified74.9%
Taylor expanded in z around 0 69.0%
+-commutative69.0%
Simplified69.0%
Taylor expanded in y around inf 57.5%
if -2.69999999999999985e104 < y < 2.40000000000000009e162Initial program 77.1%
+-commutative77.1%
associate-/l*79.4%
fma-define79.4%
*-commutative79.4%
fma-define79.4%
fma-define79.4%
*-commutative79.4%
fma-define79.4%
Simplified79.4%
Taylor expanded in y around 0 73.8%
Final simplification68.4%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 72.3%
+-commutative72.3%
associate-/l*77.9%
fma-define78.0%
*-commutative78.0%
fma-define77.9%
fma-define77.9%
*-commutative77.9%
fma-define77.9%
Simplified77.9%
Taylor expanded in y around 0 53.9%
Final simplification53.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(-
(* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y)
(- (/ (* 0.40462203869992125 y) (* z z)) x))))
(if (< z -8120153.652456675)
t_0
(if (< z 6.576118972787377e+20)
(+
x
(*
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(/ 1.0 (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
t_0))))
double code(double x, double y, double z) {
double t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
double tmp;
if (z < -8120153.652456675) {
tmp = t_0;
} else if (z < 6.576118972787377e+20) {
tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (((0.07512208616047561d0 / z) + 0.0692910599291889d0) * y) - (((0.40462203869992125d0 * y) / (z * z)) - x)
if (z < (-8120153.652456675d0)) then
tmp = t_0
else if (z < 6.576118972787377d+20) then
tmp = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) * (1.0d0 / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
double tmp;
if (z < -8120153.652456675) {
tmp = t_0;
} else if (z < 6.576118972787377e+20) {
tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x) tmp = 0 if z < -8120153.652456675: tmp = t_0 elif z < 6.576118972787377e+20: tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(Float64(0.07512208616047561 / z) + 0.0692910599291889) * y) - Float64(Float64(Float64(0.40462203869992125 * y) / Float64(z * z)) - x)) tmp = 0.0 if (z < -8120153.652456675) tmp = t_0; elseif (z < 6.576118972787377e+20) tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * Float64(1.0 / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x); tmp = 0.0; if (z < -8120153.652456675) tmp = t_0; elseif (z < 6.576118972787377e+20) tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(0.07512208616047561 / z), $MachinePrecision] + 0.0692910599291889), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(0.40462203869992125 * y), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -8120153.652456675], t$95$0, If[Less[z, 6.576118972787377e+20], N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{0.07512208616047561}{z} + 0.0692910599291889\right) \cdot y - \left(\frac{0.40462203869992125 \cdot y}{z \cdot z} - x\right)\\
\mathbf{if}\;z < -8120153.652456675:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z < 6.576118972787377 \cdot 10^{+20}:\\
\;\;\;\;x + \left(y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)\right) \cdot \frac{1}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024078
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, B"
:precision binary64
:alt
(if (< z -8120153.652456675) (- (* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y) (- (/ (* 0.40462203869992125 y) (* z z)) x)) (if (< z 6.576118972787377e+20) (+ x (* (* y (+ (* (+ (* z 0.0692910599291889) 0.4917317610505968) z) 0.279195317918525)) (/ 1.0 (+ (* (+ z 6.012459259764103) z) 3.350343815022304)))) (- (* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y) (- (/ (* 0.40462203869992125 y) (* z z)) x))))
(+ x (/ (* y (+ (* (+ (* z 0.0692910599291889) 0.4917317610505968) z) 0.279195317918525)) (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))