
(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 13 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))
1e+307)
(+
x
(*
y
(/
(fma (fma z 0.0692910599291889 0.4917317610505968) z 0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+ x (/ y 14.431876219268936))))
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)) <= 1e+307) {
tmp = x + (y * (fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
} else {
tmp = x + (y / 14.431876219268936);
}
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)) <= 1e+307) 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(y / 14.431876219268936)); 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], 1e+307], 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[(y / 14.431876219268936), $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 10^{+307}:\\
\;\;\;\;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 + \frac{y}{14.431876219268936}\\
\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))) < 9.99999999999999986e306Initial program 96.5%
remove-double-neg96.5%
associate-/l*99.7%
distribute-rgt-neg-in99.7%
distribute-lft-neg-in99.7%
distribute-lft-neg-in99.7%
distribute-rgt-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
if 9.99999999999999986e306 < (/.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%
associate-/l*9.4%
distribute-rgt-neg-in9.4%
distribute-lft-neg-in9.4%
distribute-lft-neg-in9.4%
distribute-rgt-neg-in9.4%
remove-double-neg9.4%
fma-define9.4%
fma-define9.4%
fma-define9.4%
Simplified9.4%
fma-define9.4%
fma-define9.4%
fma-define9.4%
associate-/l*0.5%
clear-num0.5%
*-commutative0.5%
fma-undefine0.5%
*-commutative0.5%
fma-define0.5%
*-commutative0.5%
fma-undefine0.5%
Applied egg-rr0.5%
Taylor expanded in z around inf 99.8%
inv-pow99.8%
div-inv99.7%
unpow-prod-down99.5%
metadata-eval99.5%
Applied egg-rr99.5%
*-commutative99.5%
unpow-199.5%
remove-double-div99.5%
metadata-eval99.5%
div-inv100.0%
Applied egg-rr100.0%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(if (or (<= z -5.8e+53) (not (<= z 2.05e+15)))
(+ x (/ y 14.431876219268936))
(+
x
(/
(+
(* y 0.279195317918525)
(* z (+ (* 0.0692910599291889 (* y z)) (* y 0.4917317610505968))))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.8e+53) || !(z <= 2.05e+15)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
}
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 <= (-5.8d+53)) .or. (.not. (z <= 2.05d+15))) then
tmp = x + (y / 14.431876219268936d0)
else
tmp = x + (((y * 0.279195317918525d0) + (z * ((0.0692910599291889d0 * (y * z)) + (y * 0.4917317610505968d0)))) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.8e+53) || !(z <= 2.05e+15)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.8e+53) or not (z <= 2.05e+15): tmp = x + (y / 14.431876219268936) else: tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.8e+53) || !(z <= 2.05e+15)) tmp = Float64(x + Float64(y / 14.431876219268936)); else tmp = Float64(x + Float64(Float64(Float64(y * 0.279195317918525) + Float64(z * Float64(Float64(0.0692910599291889 * Float64(y * z)) + Float64(y * 0.4917317610505968)))) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.8e+53) || ~((z <= 2.05e+15))) tmp = x + (y / 14.431876219268936); else tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.8e+53], N[Not[LessEqual[z, 2.05e+15]], $MachinePrecision]], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y * 0.279195317918525), $MachinePrecision] + N[(z * N[(N[(0.0692910599291889 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * 0.4917317610505968), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+53} \lor \neg \left(z \leq 2.05 \cdot 10^{+15}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot 0.279195317918525 + z \cdot \left(0.0692910599291889 \cdot \left(y \cdot z\right) + y \cdot 0.4917317610505968\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\
\end{array}
\end{array}
if z < -5.8000000000000004e53 or 2.05e15 < z Initial program 29.8%
remove-double-neg29.8%
associate-/l*40.5%
distribute-rgt-neg-in40.5%
distribute-lft-neg-in40.5%
distribute-lft-neg-in40.5%
distribute-rgt-neg-in40.5%
remove-double-neg40.5%
fma-define40.5%
fma-define40.5%
fma-define40.5%
Simplified40.5%
fma-define40.5%
fma-define40.5%
fma-define40.5%
associate-/l*29.8%
clear-num29.7%
*-commutative29.7%
fma-undefine29.7%
*-commutative29.7%
fma-define29.7%
*-commutative29.7%
fma-undefine29.7%
Applied egg-rr29.7%
Taylor expanded in z around inf 99.7%
inv-pow99.7%
div-inv99.6%
unpow-prod-down99.5%
metadata-eval99.5%
Applied egg-rr99.5%
*-commutative99.5%
unpow-199.5%
remove-double-div99.5%
metadata-eval99.5%
div-inv100.0%
Applied egg-rr100.0%
if -5.8000000000000004e53 < z < 2.05e15Initial program 99.5%
Taylor expanded in z around 0 99.6%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (or (<= z -2.6e+28) (not (<= z 1.36e+14)))
(+ x (/ y 14.431876219268936))
(+
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
x)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.6e+28) || !(z <= 1.36e+14)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + 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 ((z <= (-2.6d+28)) .or. (.not. (z <= 1.36d+14))) then
tmp = x + (y / 14.431876219268936d0)
else
tmp = ((y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)) + x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.6e+28) || !(z <= 1.36e+14)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.6e+28) or not (z <= 1.36e+14): tmp = x + (y / 14.431876219268936) else: tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.6e+28) || !(z <= 1.36e+14)) tmp = Float64(x + Float64(y / 14.431876219268936)); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) + x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.6e+28) || ~((z <= 1.36e+14))) tmp = x + (y / 14.431876219268936); else tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.6e+28], N[Not[LessEqual[z, 1.36e+14]], $MachinePrecision]], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], N[(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] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+28} \lor \neg \left(z \leq 1.36 \cdot 10^{+14}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\mathbf{else}:\\
\;\;\;\;\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} + x\\
\end{array}
\end{array}
if z < -2.6000000000000002e28 or 1.36e14 < z Initial program 31.6%
remove-double-neg31.6%
associate-/l*42.0%
distribute-rgt-neg-in42.0%
distribute-lft-neg-in42.0%
distribute-lft-neg-in42.0%
distribute-rgt-neg-in42.0%
remove-double-neg42.0%
fma-define42.0%
fma-define42.0%
fma-define42.0%
Simplified42.0%
fma-define42.0%
fma-define42.0%
fma-define42.0%
associate-/l*31.6%
clear-num31.5%
*-commutative31.5%
fma-undefine31.5%
*-commutative31.5%
fma-define31.5%
*-commutative31.5%
fma-undefine31.5%
Applied egg-rr31.5%
Taylor expanded in z around inf 99.7%
inv-pow99.7%
div-inv99.6%
unpow-prod-down99.5%
metadata-eval99.5%
Applied egg-rr99.5%
*-commutative99.5%
unpow-199.5%
remove-double-div99.5%
metadata-eval99.5%
div-inv100.0%
Applied egg-rr100.0%
if -2.6000000000000002e28 < z < 1.36e14Initial program 99.6%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ (/ 0.4046220386999212 z) -0.07512208616047561) z))))
(if (<= z 2.7)
(+
x
(*
y
(+
0.08333333333333323
(*
z
(-
(* z (+ 0.0007936505811533442 (* z -0.0005951669793454025)))
0.00277777777751721)))))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 2.7) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + (y * (0.0692910599291889d0 - (((0.4046220386999212d0 / z) + (-0.07512208616047561d0)) / z)))
else if (z <= 2.7d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * (0.0007936505811533442d0 + (z * (-0.0005951669793454025d0)))) - 0.00277777777751721d0))))
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 2.7) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))) elif z <= 2.7: tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(Float64(0.4046220386999212 / z) + -0.07512208616047561) / z)))); elseif (z <= 2.7) 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 / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))); elseif (z <= 2.7) tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(y * N[(0.0692910599291889 - N[(N[(N[(0.4046220386999212 / z), $MachinePrecision] + -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7], 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 / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{\frac{0.4046220386999212}{z} + -0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 2.7:\\
\;\;\;\;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 + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around -inf 98.8%
mul-1-neg98.8%
unsub-neg98.8%
sub-neg98.8%
associate-*r/98.8%
metadata-eval98.8%
metadata-eval98.8%
Simplified98.8%
if -5.5 < z < 2.7000000000000002Initial program 99.6%
remove-double-neg99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
if 2.7000000000000002 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z)))
(if (<= z 4.5)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
} else if (z <= 4.5) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
else if (z <= 4.5d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
} else if (z <= 4.5) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) elif z <= 4.5: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); elseif (z <= 4.5) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(y / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); elseif (z <= 4.5) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5], 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 / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 4.5:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around -inf 98.7%
+-commutative98.7%
mul-1-neg98.7%
unsub-neg98.7%
distribute-rgt-out--98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 4.5Initial program 99.6%
remove-double-neg99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
if 4.5 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ (/ 0.4046220386999212 z) -0.07512208616047561) z))))
(if (<= z 4.2)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 4.2) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + (y * (0.0692910599291889d0 - (((0.4046220386999212d0 / z) + (-0.07512208616047561d0)) / z)))
else if (z <= 4.2d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 4.2) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))) elif z <= 4.2: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(Float64(0.4046220386999212 / z) + -0.07512208616047561) / z)))); elseif (z <= 4.2) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(y / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))); elseif (z <= 4.2) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(y * N[(0.0692910599291889 - N[(N[(N[(0.4046220386999212 / z), $MachinePrecision] + -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2], 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 / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{\frac{0.4046220386999212}{z} + -0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 4.2:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around -inf 98.8%
mul-1-neg98.8%
unsub-neg98.8%
sub-neg98.8%
associate-*r/98.8%
metadata-eval98.8%
metadata-eval98.8%
Simplified98.8%
if -5.5 < z < 4.20000000000000018Initial program 99.6%
remove-double-neg99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
if 4.20000000000000018 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
(if (<= z 5.0)
(+ x (+ (* (* y z) -0.00277777777751721) (* y 0.08333333333333323)))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else if (z <= 5.0) {
tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323));
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else if (z <= 5.0d0) then
tmp = x + (((y * z) * (-0.00277777777751721d0)) + (y * 0.08333333333333323d0))
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else if (z <= 5.0) {
tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323));
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) elif z <= 5.0: tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323)) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); elseif (z <= 5.0) tmp = Float64(x + Float64(Float64(Float64(y * z) * -0.00277777777751721) + Float64(y * 0.08333333333333323))); else tmp = Float64(x + Float64(y / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); elseif (z <= 5.0) tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323)); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.0], N[(x + N[(N[(N[(y * z), $MachinePrecision] * -0.00277777777751721), $MachinePrecision] + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 5:\\
\;\;\;\;x + \left(\left(y \cdot z\right) \cdot -0.00277777777751721 + y \cdot 0.08333333333333323\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 5Initial program 99.6%
remove-double-neg99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
Taylor expanded in z around 0 99.4%
if 5 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification99.2%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z)))
(if (<= z 5.0)
(+ x (+ (* (* y z) -0.00277777777751721) (* y 0.08333333333333323)))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
} else if (z <= 5.0) {
tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323));
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
else if (z <= 5.0d0) then
tmp = x + (((y * z) * (-0.00277777777751721d0)) + (y * 0.08333333333333323d0))
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
} else if (z <= 5.0) {
tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323));
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) elif z <= 5.0: tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323)) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); elseif (z <= 5.0) tmp = Float64(x + Float64(Float64(Float64(y * z) * -0.00277777777751721) + Float64(y * 0.08333333333333323))); else tmp = Float64(x + Float64(y / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); elseif (z <= 5.0) tmp = x + (((y * z) * -0.00277777777751721) + (y * 0.08333333333333323)); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.0], N[(x + N[(N[(N[(y * z), $MachinePrecision] * -0.00277777777751721), $MachinePrecision] + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 5:\\
\;\;\;\;x + \left(\left(y \cdot z\right) \cdot -0.00277777777751721 + y \cdot 0.08333333333333323\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around -inf 98.7%
+-commutative98.7%
mul-1-neg98.7%
unsub-neg98.7%
distribute-rgt-out--98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 5Initial program 99.6%
remove-double-neg99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
Taylor expanded in z around 0 99.4%
if 5 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
(if (<= z 5.0)
(+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else if (z <= 5.0) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else if (z <= 5.0d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else if (z <= 5.0) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) elif z <= 5.0: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); elseif (z <= 5.0) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721)))); else tmp = Float64(x + Float64(y / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); elseif (z <= 5.0) tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.0], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 5:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 5Initial program 99.6%
remove-double-neg99.6%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.4%
if 5 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification99.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.5) (not (<= z 5.5))) (+ x (/ y 14.431876219268936)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 5.5)) {
tmp = x + (y / 14.431876219268936);
} 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 <= (-5.5d0)) .or. (.not. (z <= 5.5d0))) then
tmp = x + (y / 14.431876219268936d0)
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 <= -5.5) || !(z <= 5.5)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.5) or not (z <= 5.5): tmp = x + (y / 14.431876219268936) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.5) || !(z <= 5.5)) tmp = Float64(x + Float64(y / 14.431876219268936)); else tmp = Float64(x + Float64(y * 0.08333333333333323)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.5) || ~((z <= 5.5))) tmp = x + (y / 14.431876219268936); else tmp = x + (y * 0.08333333333333323); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.5], N[Not[LessEqual[z, 5.5]], $MachinePrecision]], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 5.5\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -5.5 or 5.5 < z Initial program 38.0%
remove-double-neg38.0%
associate-/l*47.4%
distribute-rgt-neg-in47.4%
distribute-lft-neg-in47.4%
distribute-lft-neg-in47.4%
distribute-rgt-neg-in47.4%
remove-double-neg47.4%
fma-define47.4%
fma-define47.4%
fma-define47.4%
Simplified47.4%
fma-define47.4%
fma-define47.4%
fma-define47.4%
associate-/l*38.0%
clear-num37.9%
*-commutative37.9%
fma-undefine37.9%
*-commutative37.9%
fma-define37.9%
*-commutative37.9%
fma-undefine37.9%
Applied egg-rr37.9%
Taylor expanded in z around inf 98.8%
inv-pow98.8%
div-inv98.7%
unpow-prod-down98.6%
metadata-eval98.6%
Applied egg-rr98.6%
*-commutative98.6%
unpow-198.6%
remove-double-div98.6%
metadata-eval98.6%
div-inv99.0%
Applied egg-rr99.0%
if -5.5 < z < 5.5Initial program 99.6%
+-commutative99.6%
*-commutative99.6%
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 z around 0 98.5%
+-commutative98.5%
Simplified98.5%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
(if (<= z 5.6)
(+ x (* y 0.08333333333333323))
(+ x (/ y 14.431876219268936)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else if (z <= 5.6) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (y / 14.431876219268936);
}
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 <= (-5.5d0)) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else if (z <= 5.6d0) then
tmp = x + (y * 0.08333333333333323d0)
else
tmp = x + (y / 14.431876219268936d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else if (z <= 5.6) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (y / 14.431876219268936);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) elif z <= 5.6: tmp = x + (y * 0.08333333333333323) else: tmp = x + (y / 14.431876219268936) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); elseif (z <= 5.6) tmp = Float64(x + Float64(y * 0.08333333333333323)); else tmp = Float64(x + Float64(y / 14.431876219268936)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); elseif (z <= 5.6) tmp = x + (y * 0.08333333333333323); else tmp = x + (y / 14.431876219268936); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6], N[(x + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 5.6:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\end{array}
\end{array}
if z < -5.5Initial program 34.0%
remove-double-neg34.0%
associate-/l*47.5%
distribute-rgt-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-lft-neg-in47.5%
distribute-rgt-neg-in47.5%
remove-double-neg47.5%
fma-define47.5%
fma-define47.5%
fma-define47.5%
Simplified47.5%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 5.5999999999999996Initial program 99.6%
+-commutative99.6%
*-commutative99.6%
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 z around 0 98.5%
+-commutative98.5%
Simplified98.5%
if 5.5999999999999996 < z Initial program 42.5%
remove-double-neg42.5%
associate-/l*47.2%
distribute-rgt-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-lft-neg-in47.2%
distribute-rgt-neg-in47.2%
remove-double-neg47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
Simplified47.2%
fma-define47.2%
fma-define47.2%
fma-define47.2%
associate-/l*42.5%
clear-num42.5%
*-commutative42.5%
fma-undefine42.5%
*-commutative42.5%
fma-define42.5%
*-commutative42.5%
fma-undefine42.5%
Applied egg-rr42.5%
Taylor expanded in z around inf 99.5%
inv-pow99.5%
div-inv99.4%
unpow-prod-down99.2%
metadata-eval99.2%
Applied egg-rr99.2%
*-commutative99.2%
unpow-199.2%
remove-double-div99.1%
metadata-eval99.1%
div-inv99.6%
Applied egg-rr99.6%
Final simplification98.8%
(FPCore (x y z) :precision binary64 (+ x (/ y 14.431876219268936)))
double code(double x, double y, double z) {
return x + (y / 14.431876219268936);
}
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 / 14.431876219268936d0)
end function
public static double code(double x, double y, double z) {
return x + (y / 14.431876219268936);
}
def code(x, y, z): return x + (y / 14.431876219268936)
function code(x, y, z) return Float64(x + Float64(y / 14.431876219268936)) end
function tmp = code(x, y, z) tmp = x + (y / 14.431876219268936); end
code[x_, y_, z_] := N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{14.431876219268936}
\end{array}
Initial program 68.8%
remove-double-neg68.8%
associate-/l*73.6%
distribute-rgt-neg-in73.6%
distribute-lft-neg-in73.6%
distribute-lft-neg-in73.6%
distribute-rgt-neg-in73.6%
remove-double-neg73.6%
fma-define73.6%
fma-define73.6%
fma-define73.6%
Simplified73.6%
fma-define73.6%
fma-define73.6%
fma-define73.6%
associate-/l*68.8%
clear-num68.7%
*-commutative68.7%
fma-undefine68.7%
*-commutative68.7%
fma-define68.7%
*-commutative68.7%
fma-undefine68.7%
Applied egg-rr68.7%
Taylor expanded in z around inf 77.6%
inv-pow77.6%
div-inv77.6%
unpow-prod-down77.5%
metadata-eval77.5%
Applied egg-rr77.5%
*-commutative77.5%
unpow-177.5%
remove-double-div77.5%
metadata-eval77.5%
div-inv77.8%
Applied egg-rr77.8%
Final simplification77.8%
(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 68.8%
+-commutative68.8%
*-commutative68.8%
associate-/l*72.4%
fma-define72.4%
*-commutative72.4%
fma-define72.4%
fma-define72.4%
*-commutative72.4%
fma-define72.4%
Simplified72.4%
Taylor expanded in y around 0 46.8%
Final simplification46.8%
(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 2024077
(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))))