
(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 (or (<= z -65000000000.0) (not (<= z 128000000.0)))
(+ x (/ 1.0 (- (/ 14.431876219268936 y) (/ 15.646356830292042 (* y z)))))
(+
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 <= -65000000000.0) || !(z <= 128000000.0)) {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
} 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 <= (-65000000000.0d0)) .or. (.not. (z <= 128000000.0d0))) then
tmp = x + (1.0d0 / ((14.431876219268936d0 / y) - (15.646356830292042d0 / (y * z))))
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 <= -65000000000.0) || !(z <= 128000000.0)) {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
} 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 <= -65000000000.0) or not (z <= 128000000.0): tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))) 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 <= -65000000000.0) || !(z <= 128000000.0)) tmp = Float64(x + Float64(1.0 / Float64(Float64(14.431876219268936 / y) - Float64(15.646356830292042 / Float64(y * z))))); 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 <= -65000000000.0) || ~((z <= 128000000.0))) tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))); 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, -65000000000.0], N[Not[LessEqual[z, 128000000.0]], $MachinePrecision]], N[(x + N[(1.0 / N[(N[(14.431876219268936 / y), $MachinePrecision] - N[(15.646356830292042 / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -65000000000 \lor \neg \left(z \leq 128000000\right):\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y} - \frac{15.646356830292042}{y \cdot z}}\\
\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 < -6.5e10 or 1.28e8 < z Initial program 39.2%
remove-double-neg39.2%
associate-/l*48.5%
distribute-rgt-neg-in48.5%
distribute-lft-neg-in48.5%
distribute-lft-neg-in48.5%
distribute-rgt-neg-in48.5%
remove-double-neg48.5%
fma-define48.5%
fma-define48.5%
fma-define48.5%
Simplified48.5%
fma-define48.5%
fma-define48.5%
fma-define48.5%
associate-/l*39.2%
clear-num39.2%
*-commutative39.2%
fma-undefine39.2%
*-commutative39.2%
fma-define39.2%
*-commutative39.2%
fma-undefine39.2%
Applied egg-rr39.2%
Taylor expanded in z around inf 99.8%
associate-*r/99.9%
metadata-eval99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
if -6.5e10 < z < 1.28e8Initial program 99.7%
Taylor expanded in z around 0 99.7%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
4e+299)
(+
x
(*
y
(/
(fma (fma z 0.0692910599291889 0.4917317610505968) z 0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+ x (/ 1.0 (/ 14.431876219268936 y)))))
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)) <= 4e+299) {
tmp = x + (y * (fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
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)) <= 4e+299) 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(1.0 / Float64(14.431876219268936 / y))); 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], 4e+299], 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[(1.0 / N[(14.431876219268936 / y), $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 4 \cdot 10^{+299}:\\
\;\;\;\;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{1}{\frac{14.431876219268936}{y}}\\
\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))) < 4.0000000000000002e299Initial program 95.7%
remove-double-neg95.7%
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 4.0000000000000002e299 < (/.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.3%
remove-double-neg0.3%
associate-/l*6.0%
distribute-rgt-neg-in6.0%
distribute-lft-neg-in6.0%
distribute-lft-neg-in6.0%
distribute-rgt-neg-in6.0%
remove-double-neg6.0%
fma-define6.0%
fma-define6.0%
fma-define6.0%
Simplified6.0%
fma-define6.0%
fma-define6.0%
fma-define6.0%
associate-/l*0.3%
clear-num0.3%
*-commutative0.3%
fma-undefine0.3%
*-commutative0.3%
fma-define0.3%
*-commutative0.3%
fma-undefine0.3%
Applied egg-rr0.3%
Taylor expanded in z around inf 99.8%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(if (<= z -2.1e+36)
(+ x (/ 1.0 (/ 14.431876219268936 y)))
(if (<= z 65000000.0)
(+
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
x)
(+
x
(/ 1.0 (- (/ 14.431876219268936 y) (/ 15.646356830292042 (* y z))))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+36) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else if (z <= 65000000.0) {
tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
} else {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * 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 <= (-2.1d+36)) then
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
else if (z <= 65000000.0d0) then
tmp = ((y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)) + x
else
tmp = x + (1.0d0 / ((14.431876219268936d0 / y) - (15.646356830292042d0 / (y * z))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+36) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else if (z <= 65000000.0) {
tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
} else {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.1e+36: tmp = x + (1.0 / (14.431876219268936 / y)) elif z <= 65000000.0: tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x else: tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.1e+36) tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); elseif (z <= 65000000.0) 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); else tmp = Float64(x + Float64(1.0 / Float64(Float64(14.431876219268936 / y) - Float64(15.646356830292042 / Float64(y * z))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.1e+36) tmp = x + (1.0 / (14.431876219268936 / y)); elseif (z <= 65000000.0) tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x; else tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.1e+36], N[(x + N[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 65000000.0], 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], N[(x + N[(1.0 / N[(N[(14.431876219268936 / y), $MachinePrecision] - N[(15.646356830292042 / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+36}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\mathbf{elif}\;z \leq 65000000:\\
\;\;\;\;\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\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y} - \frac{15.646356830292042}{y \cdot z}}\\
\end{array}
\end{array}
if z < -2.10000000000000004e36Initial program 32.7%
remove-double-neg32.7%
associate-/l*38.5%
distribute-rgt-neg-in38.5%
distribute-lft-neg-in38.5%
distribute-lft-neg-in38.5%
distribute-rgt-neg-in38.5%
remove-double-neg38.5%
fma-define38.5%
fma-define38.5%
fma-define38.5%
Simplified38.5%
fma-define38.5%
fma-define38.5%
fma-define38.5%
associate-/l*32.7%
clear-num32.7%
*-commutative32.7%
fma-undefine32.7%
*-commutative32.7%
fma-define32.7%
*-commutative32.7%
fma-undefine32.7%
Applied egg-rr32.7%
Taylor expanded in z around inf 99.9%
if -2.10000000000000004e36 < z < 6.5e7Initial program 99.7%
if 6.5e7 < z Initial program 38.5%
remove-double-neg38.5%
associate-/l*51.3%
distribute-rgt-neg-in51.3%
distribute-lft-neg-in51.3%
distribute-lft-neg-in51.3%
distribute-rgt-neg-in51.3%
remove-double-neg51.3%
fma-define51.3%
fma-define51.3%
fma-define51.3%
Simplified51.3%
fma-define51.3%
fma-define51.3%
fma-define51.3%
associate-/l*38.5%
clear-num38.6%
*-commutative38.6%
fma-undefine38.6%
*-commutative38.6%
fma-define38.6%
*-commutative38.6%
fma-undefine38.6%
Applied egg-rr38.6%
Taylor expanded in z around inf 99.8%
associate-*r/99.8%
metadata-eval99.8%
associate-*r/99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(if (or (<= z -5.5) (not (<= z 3.4)))
(+ x (/ 1.0 (- (/ 14.431876219268936 y) (/ 15.646356830292042 (* y z)))))
(+
x
(*
y
(+
0.08333333333333323
(*
z
(-
(* z (+ 0.0007936505811533442 (* z -0.0005951669793454025)))
0.00277777777751721)))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 3.4)) {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
} else {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-5.5d0)) .or. (.not. (z <= 3.4d0))) then
tmp = x + (1.0d0 / ((14.431876219268936d0 / y) - (15.646356830292042d0 / (y * z))))
else
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * (0.0007936505811533442d0 + (z * (-0.0005951669793454025d0)))) - 0.00277777777751721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 3.4)) {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
} else {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.5) or not (z <= 3.4): tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))) else: tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.5) || !(z <= 3.4)) tmp = Float64(x + Float64(1.0 / Float64(Float64(14.431876219268936 / y) - Float64(15.646356830292042 / Float64(y * z))))); else tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * Float64(0.0007936505811533442 + Float64(z * -0.0005951669793454025))) - 0.00277777777751721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.5) || ~((z <= 3.4))) tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))); else tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.5], N[Not[LessEqual[z, 3.4]], $MachinePrecision]], N[(x + N[(1.0 / N[(N[(14.431876219268936 / y), $MachinePrecision] - N[(15.646356830292042 / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * N[(0.0007936505811533442 + N[(z * -0.0005951669793454025), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 3.4\right):\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y} - \frac{15.646356830292042}{y \cdot z}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right) - 0.00277777777751721\right)\right)\\
\end{array}
\end{array}
if z < -5.5 or 3.39999999999999991 < z Initial program 41.2%
remove-double-neg41.2%
associate-/l*50.1%
distribute-rgt-neg-in50.1%
distribute-lft-neg-in50.1%
distribute-lft-neg-in50.1%
distribute-rgt-neg-in50.1%
remove-double-neg50.1%
fma-define50.1%
fma-define50.1%
fma-define50.1%
Simplified50.1%
fma-define50.1%
fma-define50.1%
fma-define50.1%
associate-/l*41.2%
clear-num41.1%
*-commutative41.1%
fma-undefine41.1%
*-commutative41.1%
fma-define41.1%
*-commutative41.1%
fma-undefine41.1%
Applied egg-rr41.1%
Taylor expanded in z around inf 98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
if -5.5 < z < 3.39999999999999991Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.9%
distribute-rgt-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
remove-double-neg99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.6%
Final simplification99.2%
(FPCore (x y z)
:precision binary64
(if (or (<= z -5.5) (not (<= z 4.9)))
(+ x (/ 1.0 (- (/ 14.431876219268936 y) (/ 15.646356830292042 (* y z)))))
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 4.9)) {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
} else {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-5.5d0)) .or. (.not. (z <= 4.9d0))) then
tmp = x + (1.0d0 / ((14.431876219268936d0 / y) - (15.646356830292042d0 / (y * z))))
else
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 4.9)) {
tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z))));
} else {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.5) or not (z <= 4.9): tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))) else: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.5) || !(z <= 4.9)) tmp = Float64(x + Float64(1.0 / Float64(Float64(14.431876219268936 / y) - Float64(15.646356830292042 / Float64(y * z))))); else tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.5) || ~((z <= 4.9))) tmp = x + (1.0 / ((14.431876219268936 / y) - (15.646356830292042 / (y * z)))); else tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.5], N[Not[LessEqual[z, 4.9]], $MachinePrecision]], N[(x + N[(1.0 / N[(N[(14.431876219268936 / y), $MachinePrecision] - N[(15.646356830292042 / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * 0.0007936505811533442), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \lor \neg \left(z \leq 4.9\right):\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y} - \frac{15.646356830292042}{y \cdot z}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\end{array}
\end{array}
if z < -5.5 or 4.9000000000000004 < z Initial program 41.2%
remove-double-neg41.2%
associate-/l*50.1%
distribute-rgt-neg-in50.1%
distribute-lft-neg-in50.1%
distribute-lft-neg-in50.1%
distribute-rgt-neg-in50.1%
remove-double-neg50.1%
fma-define50.1%
fma-define50.1%
fma-define50.1%
Simplified50.1%
fma-define50.1%
fma-define50.1%
fma-define50.1%
associate-/l*41.2%
clear-num41.1%
*-commutative41.1%
fma-undefine41.1%
*-commutative41.1%
fma-define41.1%
*-commutative41.1%
fma-undefine41.1%
Applied egg-rr41.1%
Taylor expanded in z around inf 98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
if -5.5 < z < 4.9000000000000004Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.9%
distribute-rgt-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
remove-double-neg99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.5%
Final simplification99.2%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
(if (<= z 4.4)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (/ 1.0 (/ 14.431876219268936 y))))))
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 <= 4.4) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
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 <= 4.4d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
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 <= 4.4) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) elif z <= 4.4: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + (1.0 / (14.431876219268936 / y)) 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 <= 4.4) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); 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 <= 4.4) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + (1.0 / (14.431876219268936 / y)); 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, 4.4], 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[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $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 4.4:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\end{array}
\end{array}
if z < -5.5Initial program 43.1%
remove-double-neg43.1%
associate-/l*48.0%
distribute-rgt-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-rgt-neg-in48.0%
remove-double-neg48.0%
fma-define48.0%
fma-define47.9%
fma-define47.9%
Simplified47.9%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 4.4000000000000004Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.9%
distribute-rgt-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
remove-double-neg99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.5%
if 4.4000000000000004 < z Initial program 39.5%
remove-double-neg39.5%
associate-/l*52.0%
distribute-rgt-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-rgt-neg-in52.0%
remove-double-neg52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
Simplified52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
associate-/l*39.5%
clear-num39.5%
*-commutative39.5%
fma-undefine39.5%
*-commutative39.5%
fma-define39.5%
*-commutative39.5%
fma-undefine39.5%
Applied egg-rr39.5%
Taylor expanded in z around inf 98.5%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ (/ 0.4046220386999212 z) -0.07512208616047561) z))))
(if (<= z 4.4)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (/ 1.0 (/ 14.431876219268936 y))))))
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.4) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
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.4d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
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.4) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
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.4: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + (1.0 / (14.431876219268936 / y)) 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.4) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); 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.4) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + (1.0 / (14.431876219268936 / y)); 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.4], 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[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $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.4:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\end{array}
\end{array}
if z < -5.5Initial program 43.1%
remove-double-neg43.1%
associate-/l*48.0%
distribute-rgt-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-rgt-neg-in48.0%
remove-double-neg48.0%
fma-define48.0%
fma-define47.9%
fma-define47.9%
Simplified47.9%
Taylor expanded in z around -inf 98.9%
mul-1-neg98.9%
unsub-neg98.9%
sub-neg98.9%
associate-*r/98.9%
metadata-eval98.9%
metadata-eval98.9%
Simplified98.9%
if -5.5 < z < 4.4000000000000004Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.9%
distribute-rgt-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
remove-double-neg99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.5%
if 4.4000000000000004 < z Initial program 39.5%
remove-double-neg39.5%
associate-/l*52.0%
distribute-rgt-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-rgt-neg-in52.0%
remove-double-neg52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
Simplified52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
associate-/l*39.5%
clear-num39.5%
*-commutative39.5%
fma-undefine39.5%
*-commutative39.5%
fma-define39.5%
*-commutative39.5%
fma-undefine39.5%
Applied egg-rr39.5%
Taylor expanded in z around inf 98.5%
Final simplification99.1%
(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 (/ 1.0 (/ 14.431876219268936 y))))))
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 + (1.0 / (14.431876219268936 / y));
}
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 + (1.0d0 / (14.431876219268936d0 / y))
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 + (1.0 / (14.431876219268936 / y));
}
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 + (1.0 / (14.431876219268936 / y)) 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(1.0 / Float64(14.431876219268936 / y))); 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 + (1.0 / (14.431876219268936 / y)); 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[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $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{1}{\frac{14.431876219268936}{y}}\\
\end{array}
\end{array}
if z < -5.5Initial program 43.1%
remove-double-neg43.1%
associate-/l*48.0%
distribute-rgt-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-rgt-neg-in48.0%
remove-double-neg48.0%
fma-define48.0%
fma-define47.9%
fma-define47.9%
Simplified47.9%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 5Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.9%
distribute-rgt-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
remove-double-neg99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around 0 99.4%
if 5 < z Initial program 39.5%
remove-double-neg39.5%
associate-/l*52.0%
distribute-rgt-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-rgt-neg-in52.0%
remove-double-neg52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
Simplified52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
associate-/l*39.5%
clear-num39.5%
*-commutative39.5%
fma-undefine39.5%
*-commutative39.5%
fma-define39.5%
*-commutative39.5%
fma-undefine39.5%
Applied egg-rr39.5%
Taylor expanded in z around inf 98.5%
Final simplification99.0%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.5) (not (<= z 5.8))) (+ x (/ 1.0 (/ 14.431876219268936 y))) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 5.8)) {
tmp = x + (1.0 / (14.431876219268936 / y));
} 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.8d0))) then
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
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.8)) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.5) or not (z <= 5.8): tmp = x + (1.0 / (14.431876219268936 / y)) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.5) || !(z <= 5.8)) tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); 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.8))) tmp = x + (1.0 / (14.431876219268936 / y)); 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.8]], $MachinePrecision]], N[(x + N[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $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.8\right):\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -5.5 or 5.79999999999999982 < z Initial program 41.2%
remove-double-neg41.2%
associate-/l*50.1%
distribute-rgt-neg-in50.1%
distribute-lft-neg-in50.1%
distribute-lft-neg-in50.1%
distribute-rgt-neg-in50.1%
remove-double-neg50.1%
fma-define50.1%
fma-define50.1%
fma-define50.1%
Simplified50.1%
fma-define50.1%
fma-define50.1%
fma-define50.1%
associate-/l*41.2%
clear-num41.1%
*-commutative41.1%
fma-undefine41.1%
*-commutative41.1%
fma-define41.1%
*-commutative41.1%
fma-undefine41.1%
Applied egg-rr41.1%
Taylor expanded in z around inf 98.4%
if -5.5 < z < 5.79999999999999982Initial 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.7%
+-commutative98.7%
Simplified98.7%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5)
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z))))
(if (<= z 6.1)
(+ x (* y 0.08333333333333323))
(+ x (/ 1.0 (/ 14.431876219268936 y))))))
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 <= 6.1) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
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 <= 6.1d0) then
tmp = x + (y * 0.08333333333333323d0)
else
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
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 <= 6.1) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (1.0 / (14.431876219268936 / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) elif z <= 6.1: tmp = x + (y * 0.08333333333333323) else: tmp = x + (1.0 / (14.431876219268936 / y)) 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 <= 6.1) tmp = Float64(x + Float64(y * 0.08333333333333323)); else tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); 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 <= 6.1) tmp = x + (y * 0.08333333333333323); else tmp = x + (1.0 / (14.431876219268936 / y)); 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, 6.1], N[(x + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $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 6.1:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\end{array}
\end{array}
if z < -5.5Initial program 43.1%
remove-double-neg43.1%
associate-/l*48.0%
distribute-rgt-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-lft-neg-in48.0%
distribute-rgt-neg-in48.0%
remove-double-neg48.0%
fma-define48.0%
fma-define47.9%
fma-define47.9%
Simplified47.9%
Taylor expanded in z around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -5.5 < z < 6.0999999999999996Initial 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.7%
+-commutative98.7%
Simplified98.7%
if 6.0999999999999996 < z Initial program 39.5%
remove-double-neg39.5%
associate-/l*52.0%
distribute-rgt-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-lft-neg-in52.0%
distribute-rgt-neg-in52.0%
remove-double-neg52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
Simplified52.0%
fma-define52.0%
fma-define52.0%
fma-define52.0%
associate-/l*39.5%
clear-num39.5%
*-commutative39.5%
fma-undefine39.5%
*-commutative39.5%
fma-define39.5%
*-commutative39.5%
fma-undefine39.5%
Applied egg-rr39.5%
Taylor expanded in z around inf 98.5%
Final simplification98.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -2.7e+269) (not (<= y 5.2e+152))) (* y 0.08333333333333323) (+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -2.7e+269) || !(y <= 5.2e+152)) {
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 <= (-2.7d+269)) .or. (.not. (y <= 5.2d+152))) 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 <= -2.7e+269) || !(y <= 5.2e+152)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -2.7e+269) or not (y <= 5.2e+152): tmp = y * 0.08333333333333323 else: tmp = x + (y * 0.0692910599291889) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -2.7e+269) || !(y <= 5.2e+152)) 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 <= -2.7e+269) || ~((y <= 5.2e+152))) tmp = y * 0.08333333333333323; else tmp = x + (y * 0.0692910599291889); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -2.7e+269], N[Not[LessEqual[y, 5.2e+152]], $MachinePrecision]], N[(y * 0.08333333333333323), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+269} \lor \neg \left(y \leq 5.2 \cdot 10^{+152}\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if y < -2.6999999999999999e269 or 5.2000000000000001e152 < y Initial program 76.5%
+-commutative76.5%
*-commutative76.5%
associate-/l*83.7%
fma-define83.6%
*-commutative83.6%
fma-define83.6%
fma-define83.6%
*-commutative83.6%
fma-define83.6%
Simplified83.6%
Taylor expanded in z around 0 76.7%
+-commutative76.7%
Simplified76.7%
Taylor expanded in y around inf 73.1%
if -2.6999999999999999e269 < y < 5.2000000000000001e152Initial program 70.2%
+-commutative70.2%
*-commutative70.2%
associate-/l*73.5%
fma-define73.5%
*-commutative73.5%
fma-define73.5%
fma-define73.5%
*-commutative73.5%
fma-define73.5%
Simplified73.5%
Taylor expanded in z around inf 83.0%
+-commutative83.0%
Simplified83.0%
Final simplification81.5%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.5) (not (<= z 6.0))) (+ x (* y 0.0692910599291889)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.5) || !(z <= 6.0)) {
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 <= (-5.5d0)) .or. (.not. (z <= 6.0d0))) 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 <= -5.5) || !(z <= 6.0)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.5) or not (z <= 6.0): tmp = x + (y * 0.0692910599291889) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.5) || !(z <= 6.0)) 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 <= -5.5) || ~((z <= 6.0))) tmp = x + (y * 0.0692910599291889); 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, 6.0]], $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 -5.5 \lor \neg \left(z \leq 6\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -5.5 or 6 < z Initial program 41.2%
+-commutative41.2%
*-commutative41.2%
associate-/l*49.2%
fma-define49.2%
*-commutative49.2%
fma-define49.2%
fma-define49.2%
*-commutative49.2%
fma-define49.2%
Simplified49.2%
Taylor expanded in z around inf 98.2%
+-commutative98.2%
Simplified98.2%
if -5.5 < z < 6Initial 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.7%
+-commutative98.7%
Simplified98.7%
Final simplification98.5%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.75e+90) (not (<= y 2.7e-19))) (* y 0.08333333333333323) x))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.75e+90) || !(y <= 2.7e-19)) {
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.75d+90)) .or. (.not. (y <= 2.7d-19))) 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.75e+90) || !(y <= 2.7e-19)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.75e+90) or not (y <= 2.7e-19): tmp = y * 0.08333333333333323 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.75e+90) || !(y <= 2.7e-19)) 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.75e+90) || ~((y <= 2.7e-19))) tmp = y * 0.08333333333333323; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.75e+90], N[Not[LessEqual[y, 2.7e-19]], $MachinePrecision]], N[(y * 0.08333333333333323), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+90} \lor \neg \left(y \leq 2.7 \cdot 10^{-19}\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.7499999999999999e90 or 2.7000000000000001e-19 < y Initial program 66.8%
+-commutative66.8%
*-commutative66.8%
associate-/l*74.7%
fma-define74.7%
*-commutative74.7%
fma-define74.7%
fma-define74.7%
*-commutative74.7%
fma-define74.7%
Simplified74.7%
Taylor expanded in z around 0 70.4%
+-commutative70.4%
Simplified70.4%
Taylor expanded in y around inf 53.2%
if -1.7499999999999999e90 < y < 2.7000000000000001e-19Initial program 74.1%
+-commutative74.1%
*-commutative74.1%
associate-/l*75.2%
fma-define75.2%
*-commutative75.2%
fma-define75.2%
fma-define75.2%
*-commutative75.2%
fma-define75.2%
Simplified75.2%
Taylor expanded in y around 0 72.7%
Final simplification64.7%
(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 71.1%
+-commutative71.1%
*-commutative71.1%
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 50.7%
Final simplification50.7%
(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 2024067
(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))))