
(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 14 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
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
INFINITY)
(+
x
(*
y
(/
(fma
(/
(- 0.24180012482592123 (* (pow z 2.0) 0.004801250986110448))
(- 0.4917317610505968 (* z 0.0692910599291889)))
z
0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+
x
(*
y
(/
(- (pow (/ 0.07512208616047561 z) 2.0) 0.004801250986110448)
(- (/ 0.07512208616047561 z) 0.0692910599291889))))))
double code(double x, double y, double z) {
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= ((double) INFINITY)) {
tmp = x + (y * (fma(((0.24180012482592123 - (pow(z, 2.0) * 0.004801250986110448)) / (0.4917317610505968 - (z * 0.0692910599291889))), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
} else {
tmp = x + (y * ((pow((0.07512208616047561 / z), 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 0.0692910599291889)));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= Inf) tmp = Float64(x + Float64(y * Float64(fma(Float64(Float64(0.24180012482592123 - Float64((z ^ 2.0) * 0.004801250986110448)) / Float64(0.4917317610505968 - Float64(z * 0.0692910599291889))), z, 0.279195317918525) / fma(Float64(z + 6.012459259764103), z, 3.350343815022304)))); else tmp = Float64(x + Float64(y * Float64(Float64((Float64(0.07512208616047561 / z) ^ 2.0) - 0.004801250986110448) / Float64(Float64(0.07512208616047561 / z) - 0.0692910599291889)))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(N[(N[(0.24180012482592123 - N[(N[Power[z, 2.0], $MachinePrecision] * 0.004801250986110448), $MachinePrecision]), $MachinePrecision] / N[(0.4917317610505968 - N[(z * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z + 0.279195317918525), $MachinePrecision] / N[(N[(z + 6.012459259764103), $MachinePrecision] * z + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(N[Power[N[(0.07512208616047561 / z), $MachinePrecision], 2.0], $MachinePrecision] - 0.004801250986110448), $MachinePrecision] / N[(N[(0.07512208616047561 / z), $MachinePrecision] - 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq \infty:\\
\;\;\;\;x + y \cdot \frac{\mathsf{fma}\left(\frac{0.24180012482592123 - {z}^{2} \cdot 0.004801250986110448}{0.4917317610505968 - z \cdot 0.0692910599291889}, z, 0.279195317918525\right)}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{{\left(\frac{0.07512208616047561}{z}\right)}^{2} - 0.004801250986110448}{\frac{0.07512208616047561}{z} - 0.0692910599291889}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < +inf.0Initial program 96.1%
remove-double-neg96.1%
distribute-lft-neg-out96.1%
distribute-neg-frac96.1%
associate-/l*99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
fma-define99.7%
+-commutative99.7%
flip-+99.7%
metadata-eval99.7%
swap-sqr99.7%
pow299.7%
metadata-eval99.7%
Applied egg-rr99.7%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) Initial program 0.0%
remove-double-neg0.0%
distribute-lft-neg-out0.0%
distribute-neg-frac0.0%
associate-/l*0.0%
distribute-lft-neg-in0.0%
remove-double-neg0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
+-commutative99.5%
flip-+99.5%
pow299.5%
metadata-eval99.5%
Applied egg-rr99.5%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
INFINITY)
(+
x
(*
y
(/
(+
0.279195317918525
(*
z
(/
(+ 0.24180012482592123 (* (pow z 2.0) -0.004801250986110448))
(+ 0.4917317610505968 (* z -0.0692910599291889)))))
(fma z (+ z 6.012459259764103) 3.350343815022304))))
(+
x
(*
y
(/
(- (pow (/ 0.07512208616047561 z) 2.0) 0.004801250986110448)
(- (/ 0.07512208616047561 z) 0.0692910599291889))))))
double code(double x, double y, double z) {
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= ((double) INFINITY)) {
tmp = x + (y * ((0.279195317918525 + (z * ((0.24180012482592123 + (pow(z, 2.0) * -0.004801250986110448)) / (0.4917317610505968 + (z * -0.0692910599291889))))) / fma(z, (z + 6.012459259764103), 3.350343815022304)));
} else {
tmp = x + (y * ((pow((0.07512208616047561 / z), 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 0.0692910599291889)));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= Inf) tmp = Float64(x + Float64(y * Float64(Float64(0.279195317918525 + Float64(z * Float64(Float64(0.24180012482592123 + Float64((z ^ 2.0) * -0.004801250986110448)) / Float64(0.4917317610505968 + Float64(z * -0.0692910599291889))))) / fma(z, Float64(z + 6.012459259764103), 3.350343815022304)))); else tmp = Float64(x + Float64(y * Float64(Float64((Float64(0.07512208616047561 / z) ^ 2.0) - 0.004801250986110448) / Float64(Float64(0.07512208616047561 / z) - 0.0692910599291889)))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(0.279195317918525 + N[(z * N[(N[(0.24180012482592123 + N[(N[Power[z, 2.0], $MachinePrecision] * -0.004801250986110448), $MachinePrecision]), $MachinePrecision] / N[(0.4917317610505968 + N[(z * -0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * N[(z + 6.012459259764103), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(N[Power[N[(0.07512208616047561 / z), $MachinePrecision], 2.0], $MachinePrecision] - 0.004801250986110448), $MachinePrecision] / N[(N[(0.07512208616047561 / z), $MachinePrecision] - 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq \infty:\\
\;\;\;\;x + y \cdot \frac{0.279195317918525 + z \cdot \frac{0.24180012482592123 + {z}^{2} \cdot -0.004801250986110448}{0.4917317610505968 + z \cdot -0.0692910599291889}}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{{\left(\frac{0.07512208616047561}{z}\right)}^{2} - 0.004801250986110448}{\frac{0.07512208616047561}{z} - 0.0692910599291889}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < +inf.0Initial program 96.1%
remove-double-neg96.1%
distribute-lft-neg-out96.1%
distribute-neg-frac96.1%
associate-/l*99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
fma-define99.7%
+-commutative99.7%
flip-+99.7%
metadata-eval99.7%
swap-sqr99.7%
pow299.7%
metadata-eval99.7%
Applied egg-rr99.7%
Taylor expanded in y around 0 89.9%
associate-/l*92.4%
associate-/l*99.7%
cancel-sign-sub-inv99.7%
metadata-eval99.7%
*-commutative99.7%
cancel-sign-sub-inv99.7%
metadata-eval99.7%
*-commutative99.7%
+-commutative99.7%
+-commutative99.7%
fma-undefine99.7%
Simplified99.7%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) Initial program 0.0%
remove-double-neg0.0%
distribute-lft-neg-out0.0%
distribute-neg-frac0.0%
associate-/l*0.0%
distribute-lft-neg-in0.0%
remove-double-neg0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
+-commutative99.5%
flip-+99.5%
pow299.5%
metadata-eval99.5%
Applied egg-rr99.5%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (* z (+ z 6.012459259764103)) 3.350343815022304)))
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
t_0)
2e+304)
(+
x
(/
(+
(* (fma z 0.0692910599291889 0.4917317610505968) (* y z))
(* y 0.279195317918525))
t_0))
(+
x
(*
y
(/
(- (pow (/ 0.07512208616047561 z) 2.0) 0.004801250986110448)
(- (/ 0.07512208616047561 z) 0.0692910599291889)))))))
double code(double x, double y, double z) {
double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 2e+304) {
tmp = x + (((fma(z, 0.0692910599291889, 0.4917317610505968) * (y * z)) + (y * 0.279195317918525)) / t_0);
} else {
tmp = x + (y * ((pow((0.07512208616047561 / z), 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 0.0692910599291889)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 2e+304) tmp = Float64(x + Float64(Float64(Float64(fma(z, 0.0692910599291889, 0.4917317610505968) * Float64(y * z)) + Float64(y * 0.279195317918525)) / t_0)); else tmp = Float64(x + Float64(y * Float64(Float64((Float64(0.07512208616047561 / z) ^ 2.0) - 0.004801250986110448) / Float64(Float64(0.07512208616047561 / z) - 0.0692910599291889)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+304], N[(x + N[(N[(N[(N[(z * 0.0692910599291889 + 0.4917317610505968), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * 0.279195317918525), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(N[Power[N[(0.07512208616047561 / z), $MachinePrecision], 2.0], $MachinePrecision] - 0.004801250986110448), $MachinePrecision] / N[(N[(0.07512208616047561 / z), $MachinePrecision] - 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304\\
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{t\_0} \leq 2 \cdot 10^{+304}:\\
\;\;\;\;x + \frac{\mathsf{fma}\left(z, 0.0692910599291889, 0.4917317610505968\right) \cdot \left(y \cdot z\right) + y \cdot 0.279195317918525}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{{\left(\frac{0.07512208616047561}{z}\right)}^{2} - 0.004801250986110448}{\frac{0.07512208616047561}{z} - 0.0692910599291889}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 1.9999999999999999e304Initial program 97.6%
distribute-rgt-in97.6%
fma-define97.6%
associate-*l*97.6%
Applied egg-rr97.6%
if 1.9999999999999999e304 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) Initial program 0.2%
remove-double-neg0.2%
distribute-lft-neg-out0.2%
distribute-neg-frac0.2%
associate-/l*4.1%
distribute-lft-neg-in4.1%
remove-double-neg4.1%
fma-define4.1%
fma-define4.1%
fma-define4.1%
Simplified4.1%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
+-commutative99.5%
flip-+99.5%
pow299.5%
metadata-eval99.5%
Applied egg-rr99.5%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))))
(if (<= t_0 2e+304)
(+ t_0 x)
(+
x
(*
y
(/
(- (pow (/ 0.07512208616047561 z) 2.0) 0.004801250986110448)
(- (/ 0.07512208616047561 z) 0.0692910599291889)))))))
double code(double x, double y, double z) {
double t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304);
double tmp;
if (t_0 <= 2e+304) {
tmp = t_0 + x;
} else {
tmp = x + (y * ((pow((0.07512208616047561 / z), 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 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) :: tmp
t_0 = (y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)
if (t_0 <= 2d+304) then
tmp = t_0 + x
else
tmp = x + (y * ((((0.07512208616047561d0 / z) ** 2.0d0) - 0.004801250986110448d0) / ((0.07512208616047561d0 / z) - 0.0692910599291889d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304);
double tmp;
if (t_0 <= 2e+304) {
tmp = t_0 + x;
} else {
tmp = x + (y * ((Math.pow((0.07512208616047561 / z), 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 0.0692910599291889)));
}
return tmp;
}
def code(x, y, z): t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304) tmp = 0 if t_0 <= 2e+304: tmp = t_0 + x else: tmp = x + (y * ((math.pow((0.07512208616047561 / z), 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 0.0692910599291889))) return tmp
function code(x, y, z) t_0 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) tmp = 0.0 if (t_0 <= 2e+304) tmp = Float64(t_0 + x); else tmp = Float64(x + Float64(y * Float64(Float64((Float64(0.07512208616047561 / z) ^ 2.0) - 0.004801250986110448) / Float64(Float64(0.07512208616047561 / z) - 0.0692910599291889)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304); tmp = 0.0; if (t_0 <= 2e+304) tmp = t_0 + x; else tmp = x + (y * ((((0.07512208616047561 / z) ^ 2.0) - 0.004801250986110448) / ((0.07512208616047561 / z) - 0.0692910599291889))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 2e+304], N[(t$95$0 + x), $MachinePrecision], N[(x + N[(y * N[(N[(N[Power[N[(0.07512208616047561 / z), $MachinePrecision], 2.0], $MachinePrecision] - 0.004801250986110448), $MachinePrecision] / N[(N[(0.07512208616047561 / z), $MachinePrecision] - 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\
\mathbf{if}\;t\_0 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t\_0 + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{{\left(\frac{0.07512208616047561}{z}\right)}^{2} - 0.004801250986110448}{\frac{0.07512208616047561}{z} - 0.0692910599291889}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 1.9999999999999999e304Initial program 97.6%
if 1.9999999999999999e304 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) Initial program 0.2%
remove-double-neg0.2%
distribute-lft-neg-out0.2%
distribute-neg-frac0.2%
associate-/l*4.1%
distribute-lft-neg-in4.1%
remove-double-neg4.1%
fma-define4.1%
fma-define4.1%
fma-define4.1%
Simplified4.1%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
+-commutative99.5%
flip-+99.5%
pow299.5%
metadata-eval99.5%
Applied egg-rr99.5%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))))
(if (<= t_0 2e+304) (+ t_0 x) (+ x (* y 0.0692910599291889)))))
double code(double x, double y, double z) {
double t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304);
double tmp;
if (t_0 <= 2e+304) {
tmp = t_0 + 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) :: tmp
t_0 = (y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)
if (t_0 <= 2d+304) then
tmp = t_0 + 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 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304);
double tmp;
if (t_0 <= 2e+304) {
tmp = t_0 + x;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
def code(x, y, z): t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304) tmp = 0 if t_0 <= 2e+304: tmp = t_0 + x else: tmp = x + (y * 0.0692910599291889) return tmp
function code(x, y, z) t_0 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) tmp = 0.0 if (t_0 <= 2e+304) tmp = Float64(t_0 + x); else tmp = Float64(x + Float64(y * 0.0692910599291889)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304); tmp = 0.0; if (t_0 <= 2e+304) tmp = t_0 + x; else tmp = x + (y * 0.0692910599291889); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 2e+304], N[(t$95$0 + x), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\
\mathbf{if}\;t\_0 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t\_0 + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 1.9999999999999999e304Initial program 97.6%
if 1.9999999999999999e304 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) Initial program 0.2%
+-commutative0.2%
*-commutative0.2%
associate-/l*4.1%
fma-define4.1%
*-commutative4.1%
fma-define4.1%
fma-define4.1%
*-commutative4.1%
fma-define4.1%
Simplified4.1%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(if (<= z -3e+29)
(+ x (* y 0.0692910599291889))
(if (<= z 2.25e-11)
(+ x (+ (* y 0.08333333333333323) (* z (* y -0.00277777777751721))))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -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 <= (-3d+29)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 2.25d-11) then
tmp = x + ((y * 0.08333333333333323d0) + (z * (y * (-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 <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -3e+29: tmp = x + (y * 0.0692910599291889) elif z <= 2.25e-11: tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -3e+29) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 2.25e-11) tmp = Float64(x + Float64(Float64(y * 0.08333333333333323) + Float64(z * Float64(y * -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 <= -3e+29) tmp = x + (y * 0.0692910599291889); elseif (z <= 2.25e-11) tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -3e+29], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-11], N[(x + N[(N[(y * 0.08333333333333323), $MachinePrecision] + N[(z * N[(y * -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 -3 \cdot 10^{+29}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-11}:\\
\;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -2.9999999999999999e29Initial program 31.9%
+-commutative31.9%
*-commutative31.9%
associate-/l*32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
Simplified32.8%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
if -2.9999999999999999e29 < z < 2.25e-11Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-neg-frac99.7%
associate-/l*99.8%
distribute-lft-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.3%
Taylor expanded in y around 0 99.3%
*-commutative99.3%
Simplified99.3%
if 2.25e-11 < z Initial program 38.4%
remove-double-neg38.4%
distribute-lft-neg-out38.4%
distribute-neg-frac38.4%
associate-/l*44.5%
distribute-lft-neg-in44.5%
remove-double-neg44.5%
fma-define44.5%
fma-define44.5%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (<= z -3e+29)
(+ x (* y 0.0692910599291889))
(if (<= z 2.25e-11)
(+ x (+ (* y 0.08333333333333323) (* z (* y -0.00277777777751721))))
(+ x (- (* y 0.0692910599291889) (* y (/ -0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + ((y * 0.0692910599291889) - (y * (-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 <= (-3d+29)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 2.25d-11) then
tmp = x + ((y * 0.08333333333333323d0) + (z * (y * (-0.00277777777751721d0))))
else
tmp = x + ((y * 0.0692910599291889d0) - (y * ((-0.07512208616047561d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + ((y * 0.0692910599291889) - (y * (-0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -3e+29: tmp = x + (y * 0.0692910599291889) elif z <= 2.25e-11: tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))) else: tmp = x + ((y * 0.0692910599291889) - (y * (-0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -3e+29) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 2.25e-11) tmp = Float64(x + Float64(Float64(y * 0.08333333333333323) + Float64(z * Float64(y * -0.00277777777751721)))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(y * Float64(-0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -3e+29) tmp = x + (y * 0.0692910599291889); elseif (z <= 2.25e-11) tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))); else tmp = x + ((y * 0.0692910599291889) - (y * (-0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -3e+29], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-11], N[(x + N[(N[(y * 0.08333333333333323), $MachinePrecision] + N[(z * N[(y * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(y * N[(-0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+29}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-11}:\\
\;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - y \cdot \frac{-0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -2.9999999999999999e29Initial program 31.9%
+-commutative31.9%
*-commutative31.9%
associate-/l*32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
Simplified32.8%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
if -2.9999999999999999e29 < z < 2.25e-11Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-neg-frac99.7%
associate-/l*99.8%
distribute-lft-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.3%
Taylor expanded in y around 0 99.3%
*-commutative99.3%
Simplified99.3%
if 2.25e-11 < z Initial program 38.4%
remove-double-neg38.4%
distribute-lft-neg-out38.4%
distribute-neg-frac38.4%
associate-/l*44.5%
distribute-lft-neg-in44.5%
remove-double-neg44.5%
fma-define44.5%
fma-define44.5%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around -inf 99.5%
+-commutative99.5%
mul-1-neg99.5%
unsub-neg99.5%
distribute-rgt-out--99.5%
associate-/l*99.5%
metadata-eval99.5%
Simplified99.5%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (<= z -3e+29)
(+ x (* y 0.0692910599291889))
(if (<= z 2.25e-11)
(+ x (* y 0.08333333333333323))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
tmp = x + (y * 0.08333333333333323);
} 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 <= (-3d+29)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 2.25d-11) then
tmp = x + (y * 0.08333333333333323d0)
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 <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -3e+29: tmp = x + (y * 0.0692910599291889) elif z <= 2.25e-11: tmp = x + (y * 0.08333333333333323) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -3e+29) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 2.25e-11) tmp = Float64(x + Float64(y * 0.08333333333333323)); 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 <= -3e+29) tmp = x + (y * 0.0692910599291889); elseif (z <= 2.25e-11) tmp = x + (y * 0.08333333333333323); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -3e+29], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-11], N[(x + N[(y * 0.08333333333333323), $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 -3 \cdot 10^{+29}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-11}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -2.9999999999999999e29Initial program 31.9%
+-commutative31.9%
*-commutative31.9%
associate-/l*32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
Simplified32.8%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
if -2.9999999999999999e29 < z < 2.25e-11Initial program 99.7%
+-commutative99.7%
*-commutative99.7%
associate-/l*99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 98.5%
+-commutative98.5%
Simplified98.5%
if 2.25e-11 < z Initial program 38.4%
remove-double-neg38.4%
distribute-lft-neg-out38.4%
distribute-neg-frac38.4%
associate-/l*44.5%
distribute-lft-neg-in44.5%
remove-double-neg44.5%
fma-define44.5%
fma-define44.5%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(if (<= z -3e+29)
(+ x (* y 0.0692910599291889))
(if (<= z 2.25e-11)
(+ 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 <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
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 <= (-3d+29)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 2.25d-11) 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 <= -3e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 2.25e-11) {
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 <= -3e+29: tmp = x + (y * 0.0692910599291889) elif z <= 2.25e-11: 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 <= -3e+29) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 2.25e-11) 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 <= -3e+29) tmp = x + (y * 0.0692910599291889); elseif (z <= 2.25e-11) 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, -3e+29], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-11], 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 -3 \cdot 10^{+29}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-11}:\\
\;\;\;\;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 < -2.9999999999999999e29Initial program 31.9%
+-commutative31.9%
*-commutative31.9%
associate-/l*32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
fma-define32.8%
*-commutative32.8%
fma-define32.8%
Simplified32.8%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
if -2.9999999999999999e29 < z < 2.25e-11Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-neg-frac99.7%
associate-/l*99.8%
distribute-lft-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.3%
if 2.25e-11 < z Initial program 38.4%
remove-double-neg38.4%
distribute-lft-neg-out38.4%
distribute-neg-frac38.4%
associate-/l*44.5%
distribute-lft-neg-in44.5%
remove-double-neg44.5%
fma-define44.5%
fma-define44.5%
fma-define44.5%
Simplified44.5%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
Final simplification99.4%
(FPCore (x y z) :precision binary64 (if (or (<= z -3e+29) (not (<= z 2.25e-11))) (+ x (* y 0.0692910599291889)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -3e+29) || !(z <= 2.25e-11)) {
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 <= (-3d+29)) .or. (.not. (z <= 2.25d-11))) 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 <= -3e+29) || !(z <= 2.25e-11)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -3e+29) or not (z <= 2.25e-11): tmp = x + (y * 0.0692910599291889) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -3e+29) || !(z <= 2.25e-11)) 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 <= -3e+29) || ~((z <= 2.25e-11))) tmp = x + (y * 0.0692910599291889); else tmp = x + (y * 0.08333333333333323); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -3e+29], N[Not[LessEqual[z, 2.25e-11]], $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 -3 \cdot 10^{+29} \lor \neg \left(z \leq 2.25 \cdot 10^{-11}\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -2.9999999999999999e29 or 2.25e-11 < z Initial program 36.0%
+-commutative36.0%
*-commutative36.0%
associate-/l*37.9%
fma-define37.8%
*-commutative37.8%
fma-define37.8%
fma-define37.8%
*-commutative37.8%
fma-define37.8%
Simplified37.8%
Taylor expanded in z around inf 99.3%
+-commutative99.3%
Simplified99.3%
if -2.9999999999999999e29 < z < 2.25e-11Initial program 99.7%
+-commutative99.7%
*-commutative99.7%
associate-/l*99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 98.5%
+-commutative98.5%
Simplified98.5%
Final simplification98.9%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.62e+47) (not (<= y 2.3e+20))) (* y 0.08333333333333323) x))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.62e+47) || !(y <= 2.3e+20)) {
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 <= (-1.62d+47)) .or. (.not. (y <= 2.3d+20))) 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 <= -1.62e+47) || !(y <= 2.3e+20)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.62e+47) or not (y <= 2.3e+20): tmp = y * 0.08333333333333323 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.62e+47) || !(y <= 2.3e+20)) tmp = Float64(y * 0.08333333333333323); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.62e+47) || ~((y <= 2.3e+20))) tmp = y * 0.08333333333333323; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.62e+47], N[Not[LessEqual[y, 2.3e+20]], $MachinePrecision]], N[(y * 0.08333333333333323), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.62 \cdot 10^{+47} \lor \neg \left(y \leq 2.3 \cdot 10^{+20}\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.6200000000000001e47 or 2.3e20 < y Initial program 68.6%
+-commutative68.6%
*-commutative68.6%
associate-/l*74.8%
fma-define74.8%
*-commutative74.8%
fma-define74.8%
fma-define74.8%
*-commutative74.8%
fma-define74.8%
Simplified74.8%
Taylor expanded in z around 0 75.2%
+-commutative75.2%
fma-define75.2%
Simplified75.2%
Taylor expanded in y around inf 56.2%
if -1.6200000000000001e47 < y < 2.3e20Initial program 70.7%
+-commutative70.7%
*-commutative70.7%
associate-/l*67.8%
fma-define67.8%
*-commutative67.8%
fma-define67.8%
fma-define67.8%
*-commutative67.8%
fma-define67.8%
Simplified67.8%
Taylor expanded in y around 0 73.7%
Final simplification66.5%
(FPCore (x y z) :precision binary64 (if (<= x -1.42e-5) x (if (<= x 5.5e-170) (* y 0.0692910599291889) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.42e-5) {
tmp = x;
} else if (x <= 5.5e-170) {
tmp = y * 0.0692910599291889;
} 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 (x <= (-1.42d-5)) then
tmp = x
else if (x <= 5.5d-170) then
tmp = y * 0.0692910599291889d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.42e-5) {
tmp = x;
} else if (x <= 5.5e-170) {
tmp = y * 0.0692910599291889;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.42e-5: tmp = x elif x <= 5.5e-170: tmp = y * 0.0692910599291889 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.42e-5) tmp = x; elseif (x <= 5.5e-170) tmp = Float64(y * 0.0692910599291889); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.42e-5) tmp = x; elseif (x <= 5.5e-170) tmp = y * 0.0692910599291889; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.42e-5], x, If[LessEqual[x, 5.5e-170], N[(y * 0.0692910599291889), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.42 \cdot 10^{-5}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-170}:\\
\;\;\;\;y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.42e-5 or 5.50000000000000018e-170 < x Initial program 72.2%
+-commutative72.2%
*-commutative72.2%
associate-/l*75.0%
fma-define75.0%
*-commutative75.0%
fma-define75.0%
fma-define75.0%
*-commutative75.0%
fma-define75.0%
Simplified75.0%
Taylor expanded in y around 0 70.6%
if -1.42e-5 < x < 5.50000000000000018e-170Initial program 65.7%
+-commutative65.7%
*-commutative65.7%
associate-/l*62.9%
fma-define62.9%
*-commutative62.9%
fma-define62.9%
fma-define62.9%
*-commutative62.9%
fma-define62.9%
Simplified62.9%
Taylor expanded in z around inf 67.5%
+-commutative67.5%
Simplified67.5%
Taylor expanded in y around inf 51.2%
Final simplification63.7%
(FPCore (x y z) :precision binary64 (if (<= y -3.05e+147) (* y 0.08333333333333323) (+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if (y <= -3.05e+147) {
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 <= (-3.05d+147)) 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 <= -3.05e+147) {
tmp = y * 0.08333333333333323;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -3.05e+147: tmp = y * 0.08333333333333323 else: tmp = x + (y * 0.0692910599291889) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -3.05e+147) 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 <= -3.05e+147) tmp = y * 0.08333333333333323; else tmp = x + (y * 0.0692910599291889); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -3.05e+147], N[(y * 0.08333333333333323), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.05 \cdot 10^{+147}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if y < -3.05000000000000016e147Initial program 78.6%
+-commutative78.6%
*-commutative78.6%
associate-/l*90.0%
fma-define90.1%
*-commutative90.1%
fma-define90.1%
fma-define90.1%
*-commutative90.1%
fma-define90.1%
Simplified90.1%
Taylor expanded in z around 0 81.1%
+-commutative81.1%
fma-define81.1%
Simplified81.1%
Taylor expanded in y around inf 69.7%
if -3.05000000000000016e147 < y Initial program 68.6%
+-commutative68.6%
*-commutative68.6%
associate-/l*67.9%
fma-define67.9%
*-commutative67.9%
fma-define67.9%
fma-define67.9%
*-commutative67.9%
fma-define67.9%
Simplified67.9%
Taylor expanded in z around inf 82.6%
+-commutative82.6%
Simplified82.6%
Final simplification81.0%
(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 69.8%
+-commutative69.8%
*-commutative69.8%
associate-/l*70.7%
fma-define70.7%
*-commutative70.7%
fma-define70.7%
fma-define70.7%
*-commutative70.7%
fma-define70.7%
Simplified70.7%
Taylor expanded in y around 0 52.2%
Final simplification52.2%
(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 2024043
(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))))