
(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 15 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))
5e+302)
(+
x
(*
y
(/
(fma (fma z 0.0692910599291889 0.4917317610505968) z 0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z))))))
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)) <= 5e+302) {
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 - (15.646356830292042 / z)));
}
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)) <= 5e+302) 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 / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); 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], 5e+302], 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 / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} \leq 5 \cdot 10^{+302}:\\
\;\;\;\;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 - \frac{15.646356830292042}{z}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) < 5e302Initial program 97.1%
remove-double-neg97.1%
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%
if 5e302 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z 692910599291889/10000000000000000) 307332350656623/625000000000000) z) 11167812716741/40000000000000)) (+.f64 (*.f64 (+.f64 z 6012459259764103/1000000000000000) z) 104698244219447/31250000000000)) Initial program 0.7%
remove-double-neg0.7%
associate-/l*7.9%
distribute-rgt-neg-in7.9%
distribute-lft-neg-in7.9%
distribute-lft-neg-in7.9%
distribute-rgt-neg-in7.9%
remove-double-neg7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
Simplified7.9%
fma-define7.9%
fma-define7.9%
fma-define7.9%
associate-/l*0.7%
clear-num0.7%
*-commutative0.7%
fma-undefine0.7%
*-commutative0.7%
fma-define0.7%
*-commutative0.7%
fma-undefine0.7%
Applied egg-rr0.7%
Taylor expanded in z around inf 99.7%
Taylor expanded in y around 0 100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(if (or (<= z -4200000000.0) (not (<= z 1.3e-6)))
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z))))
(+
(/
(*
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 <= -4200000000.0) || !(z <= 1.3e-6)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} 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 <= (-4200000000.0d0)) .or. (.not. (z <= 1.3d-6))) then
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
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 <= -4200000000.0) || !(z <= 1.3e-6)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} 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 <= -4200000000.0) or not (z <= 1.3e-6): tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) 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 <= -4200000000.0) || !(z <= 1.3e-6)) tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); 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 <= -4200000000.0) || ~((z <= 1.3e-6))) tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); 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, -4200000000.0], N[Not[LessEqual[z, 1.3e-6]], $MachinePrecision]], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $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 -4200000000 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\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 < -4.2e9 or 1.30000000000000005e-6 < z Initial program 35.5%
remove-double-neg35.5%
associate-/l*43.7%
distribute-rgt-neg-in43.7%
distribute-lft-neg-in43.7%
distribute-lft-neg-in43.7%
distribute-rgt-neg-in43.7%
remove-double-neg43.7%
fma-define43.7%
fma-define43.7%
fma-define43.7%
Simplified43.7%
fma-define43.7%
fma-define43.7%
fma-define43.7%
associate-/l*35.5%
clear-num35.5%
*-commutative35.5%
fma-undefine35.5%
*-commutative35.5%
fma-define35.5%
*-commutative35.5%
fma-undefine35.5%
Applied egg-rr35.5%
Taylor expanded in z around inf 99.7%
Taylor expanded in y around 0 99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
if -4.2e9 < z < 1.30000000000000005e-6Initial program 99.7%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(if (<= x -2.3e-61)
x
(if (<= x -2.5e-174)
(* y 0.08333333333333323)
(if (or (<= x 5.1e-100) (and (not (<= x 7.7e-72)) (<= x 1.9e-5)))
(* y 0.0692910599291889)
x))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.3e-61) {
tmp = x;
} else if (x <= -2.5e-174) {
tmp = y * 0.08333333333333323;
} else if ((x <= 5.1e-100) || (!(x <= 7.7e-72) && (x <= 1.9e-5))) {
tmp = y * 0.0692910599291889;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.3d-61)) then
tmp = x
else if (x <= (-2.5d-174)) then
tmp = y * 0.08333333333333323d0
else if ((x <= 5.1d-100) .or. (.not. (x <= 7.7d-72)) .and. (x <= 1.9d-5)) then
tmp = y * 0.0692910599291889d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.3e-61) {
tmp = x;
} else if (x <= -2.5e-174) {
tmp = y * 0.08333333333333323;
} else if ((x <= 5.1e-100) || (!(x <= 7.7e-72) && (x <= 1.9e-5))) {
tmp = y * 0.0692910599291889;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.3e-61: tmp = x elif x <= -2.5e-174: tmp = y * 0.08333333333333323 elif (x <= 5.1e-100) or (not (x <= 7.7e-72) and (x <= 1.9e-5)): tmp = y * 0.0692910599291889 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.3e-61) tmp = x; elseif (x <= -2.5e-174) tmp = Float64(y * 0.08333333333333323); elseif ((x <= 5.1e-100) || (!(x <= 7.7e-72) && (x <= 1.9e-5))) tmp = Float64(y * 0.0692910599291889); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.3e-61) tmp = x; elseif (x <= -2.5e-174) tmp = y * 0.08333333333333323; elseif ((x <= 5.1e-100) || (~((x <= 7.7e-72)) && (x <= 1.9e-5))) tmp = y * 0.0692910599291889; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.3e-61], x, If[LessEqual[x, -2.5e-174], N[(y * 0.08333333333333323), $MachinePrecision], If[Or[LessEqual[x, 5.1e-100], And[N[Not[LessEqual[x, 7.7e-72]], $MachinePrecision], LessEqual[x, 1.9e-5]]], N[(y * 0.0692910599291889), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.3 \cdot 10^{-61}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-174}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{elif}\;x \leq 5.1 \cdot 10^{-100} \lor \neg \left(x \leq 7.7 \cdot 10^{-72}\right) \land x \leq 1.9 \cdot 10^{-5}:\\
\;\;\;\;y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.29999999999999992e-61 or 5.0999999999999999e-100 < x < 7.6999999999999997e-72 or 1.9000000000000001e-5 < x Initial program 70.7%
+-commutative70.7%
*-commutative70.7%
associate-/l*74.2%
fma-define74.2%
*-commutative74.2%
fma-define74.2%
fma-define74.2%
*-commutative74.2%
fma-define74.2%
Simplified74.2%
Taylor expanded in y around 0 79.0%
if -2.29999999999999992e-61 < x < -2.5000000000000001e-174Initial program 87.6%
+-commutative87.6%
*-commutative87.6%
associate-/l*87.9%
fma-define87.9%
*-commutative87.9%
fma-define87.9%
fma-define88.0%
*-commutative88.0%
fma-define88.0%
Simplified88.0%
Taylor expanded in z around 0 82.6%
+-commutative82.6%
Simplified82.6%
Taylor expanded in y around inf 60.0%
*-commutative60.0%
Simplified60.0%
if -2.5000000000000001e-174 < x < 5.0999999999999999e-100 or 7.6999999999999997e-72 < x < 1.9000000000000001e-5Initial program 61.6%
+-commutative61.6%
*-commutative61.6%
associate-/l*60.3%
fma-define60.3%
*-commutative60.3%
fma-define60.3%
fma-define60.3%
*-commutative60.3%
fma-define60.3%
Simplified60.3%
Taylor expanded in z around inf 73.9%
+-commutative73.9%
Simplified73.9%
Taylor expanded in y around inf 55.3%
Final simplification70.1%
(FPCore (x y z)
:precision binary64
(if (<= x -1.92e-137)
x
(if (or (<= x 6.8e-101) (and (not (<= x 1.75e-71)) (<= x 4.6e-6)))
(* y 0.0692910599291889)
x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.92e-137) {
tmp = x;
} else if ((x <= 6.8e-101) || (!(x <= 1.75e-71) && (x <= 4.6e-6))) {
tmp = y * 0.0692910599291889;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.92d-137)) then
tmp = x
else if ((x <= 6.8d-101) .or. (.not. (x <= 1.75d-71)) .and. (x <= 4.6d-6)) then
tmp = y * 0.0692910599291889d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.92e-137) {
tmp = x;
} else if ((x <= 6.8e-101) || (!(x <= 1.75e-71) && (x <= 4.6e-6))) {
tmp = y * 0.0692910599291889;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.92e-137: tmp = x elif (x <= 6.8e-101) or (not (x <= 1.75e-71) and (x <= 4.6e-6)): tmp = y * 0.0692910599291889 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.92e-137) tmp = x; elseif ((x <= 6.8e-101) || (!(x <= 1.75e-71) && (x <= 4.6e-6))) tmp = Float64(y * 0.0692910599291889); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.92e-137) tmp = x; elseif ((x <= 6.8e-101) || (~((x <= 1.75e-71)) && (x <= 4.6e-6))) tmp = y * 0.0692910599291889; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.92e-137], x, If[Or[LessEqual[x, 6.8e-101], And[N[Not[LessEqual[x, 1.75e-71]], $MachinePrecision], LessEqual[x, 4.6e-6]]], N[(y * 0.0692910599291889), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.92 \cdot 10^{-137}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{-101} \lor \neg \left(x \leq 1.75 \cdot 10^{-71}\right) \land x \leq 4.6 \cdot 10^{-6}:\\
\;\;\;\;y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.9199999999999999e-137 or 6.79999999999999978e-101 < x < 1.75e-71 or 4.6e-6 < x Initial program 72.0%
+-commutative72.0%
*-commutative72.0%
associate-/l*75.3%
fma-define75.3%
*-commutative75.3%
fma-define75.3%
fma-define75.3%
*-commutative75.3%
fma-define75.3%
Simplified75.3%
Taylor expanded in y around 0 75.8%
if -1.9199999999999999e-137 < x < 6.79999999999999978e-101 or 1.75e-71 < x < 4.6e-6Initial program 63.0%
+-commutative63.0%
*-commutative63.0%
associate-/l*61.8%
fma-define61.8%
*-commutative61.8%
fma-define61.8%
fma-define61.9%
*-commutative61.9%
fma-define61.9%
Simplified61.9%
Taylor expanded in z around inf 72.9%
+-commutative72.9%
Simplified72.9%
Taylor expanded in y around inf 54.5%
Final simplification68.4%
(FPCore (x y z)
:precision binary64
(if (<= z -5.4)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ (/ 0.4046220386999212 z) -0.07512208616047561) z))))
(if (<= z 1.3e-6)
(+
x
(/
y
(+
12.000000000000014
(* z (+ 0.39999999996247915 (* z -0.10095235035524991))))))
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.4) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 1.3e-6) {
tmp = x + (y / (12.000000000000014 + (z * (0.39999999996247915 + (z * -0.10095235035524991)))));
} else {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / 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 <= (-5.4d0)) then
tmp = x + (y * (0.0692910599291889d0 - (((0.4046220386999212d0 / z) + (-0.07512208616047561d0)) / z)))
else if (z <= 1.3d-6) then
tmp = x + (y / (12.000000000000014d0 + (z * (0.39999999996247915d0 + (z * (-0.10095235035524991d0))))))
else
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.4) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 1.3e-6) {
tmp = x + (y / (12.000000000000014 + (z * (0.39999999996247915 + (z * -0.10095235035524991)))));
} else {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.4: tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))) elif z <= 1.3e-6: tmp = x + (y / (12.000000000000014 + (z * (0.39999999996247915 + (z * -0.10095235035524991))))) else: tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.4) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(Float64(0.4046220386999212 / z) + -0.07512208616047561) / z)))); elseif (z <= 1.3e-6) tmp = Float64(x + Float64(y / Float64(12.000000000000014 + Float64(z * Float64(0.39999999996247915 + Float64(z * -0.10095235035524991)))))); else tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.4) tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))); elseif (z <= 1.3e-6) tmp = x + (y / (12.000000000000014 + (z * (0.39999999996247915 + (z * -0.10095235035524991))))); else tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.4], 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, 1.3e-6], N[(x + N[(y / N[(12.000000000000014 + N[(z * N[(0.39999999996247915 + N[(z * -0.10095235035524991), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{\frac{0.4046220386999212}{z} + -0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-6}:\\
\;\;\;\;x + \frac{y}{12.000000000000014 + z \cdot \left(0.39999999996247915 + z \cdot -0.10095235035524991\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\end{array}
\end{array}
if z < -5.4000000000000004Initial program 27.4%
remove-double-neg27.4%
associate-/l*37.3%
distribute-rgt-neg-in37.3%
distribute-lft-neg-in37.3%
distribute-lft-neg-in37.3%
distribute-rgt-neg-in37.3%
remove-double-neg37.3%
fma-define37.3%
fma-define37.3%
fma-define37.3%
Simplified37.3%
Taylor expanded in z around -inf 98.6%
mul-1-neg98.6%
unsub-neg98.6%
sub-neg98.6%
associate-*r/98.6%
metadata-eval98.6%
metadata-eval98.6%
Simplified98.6%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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%
fma-define99.9%
fma-define99.9%
fma-define99.9%
associate-/l*99.7%
clear-num99.7%
*-commutative99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-undefine99.7%
Applied egg-rr99.7%
Taylor expanded in z around 0 99.8%
Taylor expanded in y around 0 100.0%
*-commutative100.0%
Simplified100.0%
if 1.30000000000000005e-6 < z Initial program 46.9%
remove-double-neg46.9%
associate-/l*53.0%
distribute-rgt-neg-in53.0%
distribute-lft-neg-in53.0%
distribute-lft-neg-in53.0%
distribute-rgt-neg-in53.0%
remove-double-neg53.0%
fma-define53.0%
fma-define53.0%
fma-define53.0%
Simplified53.0%
fma-define53.0%
fma-define53.0%
fma-define53.0%
associate-/l*46.9%
clear-num46.9%
*-commutative46.9%
fma-undefine46.9%
*-commutative46.9%
fma-define47.0%
*-commutative47.0%
fma-undefine47.0%
Applied egg-rr47.0%
Taylor expanded in z around inf 99.6%
Taylor expanded in y around 0 99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification99.6%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))) (+ x (/ 1.0 (/ 12.000000000000014 y)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (1.0 / (12.000000000000014 / 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.4d0)) .or. (.not. (z <= 1.3d-6))) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else
tmp = x + (1.0d0 / (12.000000000000014d0 / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (1.0 / (12.000000000000014 / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) else: tmp = x + (1.0 / (12.000000000000014 / y)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); else tmp = Float64(x + Float64(1.0 / Float64(12.000000000000014 / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.4) || ~((z <= 1.3e-6))) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); else tmp = x + (1.0 / (12.000000000000014 / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 1.3e-6]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 / N[(12.000000000000014 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{12.000000000000014}{y}}\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
remove-double-neg37.0%
associate-/l*45.0%
distribute-rgt-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-rgt-neg-in45.0%
remove-double-neg45.0%
fma-define45.0%
fma-define45.0%
fma-define45.0%
Simplified45.0%
Taylor expanded in z around inf 98.9%
associate-*r/98.9%
metadata-eval98.9%
Simplified98.9%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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%
fma-define99.9%
fma-define99.9%
fma-define99.9%
associate-/l*99.7%
clear-num99.7%
*-commutative99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-undefine99.7%
Applied egg-rr99.7%
Taylor expanded in z around 0 99.4%
Final simplification99.1%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))) (+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-5.4d0)) .or. (.not. (z <= 1.3d-6))) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else
tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) else: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); else tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.4) || ~((z <= 1.3e-6))) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); else tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 1.3e-6]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
remove-double-neg37.0%
associate-/l*45.0%
distribute-rgt-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-rgt-neg-in45.0%
remove-double-neg45.0%
fma-define45.0%
fma-define45.0%
fma-define45.0%
Simplified45.0%
Taylor expanded in z around inf 98.9%
associate-*r/98.9%
metadata-eval98.9%
Simplified98.9%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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.8%
Final simplification99.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))) (+ x (/ y (+ 12.000000000000014 (* z 0.39999999996247915))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915)));
}
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.4d0)) .or. (.not. (z <= 1.3d-6))) then
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
else
tmp = x + (y / (12.000000000000014d0 + (z * 0.39999999996247915d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
} else {
tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) else: tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); else tmp = Float64(x + Float64(y / Float64(12.000000000000014 + Float64(z * 0.39999999996247915)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.4) || ~((z <= 1.3e-6))) tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); else tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 1.3e-6]], $MachinePrecision]], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(12.000000000000014 + N[(z * 0.39999999996247915), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{12.000000000000014 + z \cdot 0.39999999996247915}\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
remove-double-neg37.0%
associate-/l*45.0%
distribute-rgt-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-rgt-neg-in45.0%
remove-double-neg45.0%
fma-define45.0%
fma-define45.0%
fma-define45.0%
Simplified45.0%
Taylor expanded in z around inf 98.9%
associate-*r/98.9%
metadata-eval98.9%
Simplified98.9%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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%
fma-define99.9%
fma-define99.9%
fma-define99.9%
associate-/l*99.7%
clear-num99.7%
*-commutative99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-undefine99.7%
Applied egg-rr99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
Simplified99.9%
Final simplification99.4%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))) (+ x (/ y (+ 12.000000000000014 (* z 0.39999999996247915))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else {
tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915)));
}
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.4d0)) .or. (.not. (z <= 1.3d-6))) then
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
else
tmp = x + (y / (12.000000000000014d0 + (z * 0.39999999996247915d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else {
tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) else: tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); else tmp = Float64(x + Float64(y / Float64(12.000000000000014 + Float64(z * 0.39999999996247915)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.4) || ~((z <= 1.3e-6))) tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); else tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 1.3e-6]], $MachinePrecision]], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(12.000000000000014 + N[(z * 0.39999999996247915), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{12.000000000000014 + z \cdot 0.39999999996247915}\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
remove-double-neg37.0%
associate-/l*45.0%
distribute-rgt-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-lft-neg-in45.0%
distribute-rgt-neg-in45.0%
remove-double-neg45.0%
fma-define45.0%
fma-define45.0%
fma-define45.0%
Simplified45.0%
fma-define45.0%
fma-define45.0%
fma-define45.0%
associate-/l*37.0%
clear-num37.0%
*-commutative37.0%
fma-undefine37.0%
*-commutative37.0%
fma-define37.0%
*-commutative37.0%
fma-undefine37.0%
Applied egg-rr37.0%
Taylor expanded in z around inf 98.9%
Taylor expanded in y around 0 99.1%
associate-*r/99.1%
metadata-eval99.1%
Simplified99.1%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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%
fma-define99.9%
fma-define99.9%
fma-define99.9%
associate-/l*99.7%
clear-num99.7%
*-commutative99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-undefine99.7%
Applied egg-rr99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
Simplified99.9%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -5.4)
(+
x
(*
y
(-
0.0692910599291889
(/ (+ (/ 0.4046220386999212 z) -0.07512208616047561) z))))
(if (<= z 1.3e-6)
(+ x (/ y (+ 12.000000000000014 (* z 0.39999999996247915))))
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.4) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 1.3e-6) {
tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915)));
} else {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / 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 <= (-5.4d0)) then
tmp = x + (y * (0.0692910599291889d0 - (((0.4046220386999212d0 / z) + (-0.07512208616047561d0)) / z)))
else if (z <= 1.3d-6) then
tmp = x + (y / (12.000000000000014d0 + (z * 0.39999999996247915d0)))
else
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.4) {
tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z)));
} else if (z <= 1.3e-6) {
tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915)));
} else {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.4: tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))) elif z <= 1.3e-6: tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915))) else: tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.4) tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(Float64(0.4046220386999212 / z) + -0.07512208616047561) / z)))); elseif (z <= 1.3e-6) tmp = Float64(x + Float64(y / Float64(12.000000000000014 + Float64(z * 0.39999999996247915)))); else tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.4) tmp = x + (y * (0.0692910599291889 - (((0.4046220386999212 / z) + -0.07512208616047561) / z))); elseif (z <= 1.3e-6) tmp = x + (y / (12.000000000000014 + (z * 0.39999999996247915))); else tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.4], 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, 1.3e-6], N[(x + N[(y / N[(12.000000000000014 + N[(z * 0.39999999996247915), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{\frac{0.4046220386999212}{z} + -0.07512208616047561}{z}\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-6}:\\
\;\;\;\;x + \frac{y}{12.000000000000014 + z \cdot 0.39999999996247915}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\end{array}
\end{array}
if z < -5.4000000000000004Initial program 27.4%
remove-double-neg27.4%
associate-/l*37.3%
distribute-rgt-neg-in37.3%
distribute-lft-neg-in37.3%
distribute-lft-neg-in37.3%
distribute-rgt-neg-in37.3%
remove-double-neg37.3%
fma-define37.3%
fma-define37.3%
fma-define37.3%
Simplified37.3%
Taylor expanded in z around -inf 98.6%
mul-1-neg98.6%
unsub-neg98.6%
sub-neg98.6%
associate-*r/98.6%
metadata-eval98.6%
metadata-eval98.6%
Simplified98.6%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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%
fma-define99.9%
fma-define99.9%
fma-define99.9%
associate-/l*99.7%
clear-num99.7%
*-commutative99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-undefine99.7%
Applied egg-rr99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
Simplified99.9%
if 1.30000000000000005e-6 < z Initial program 46.9%
remove-double-neg46.9%
associate-/l*53.0%
distribute-rgt-neg-in53.0%
distribute-lft-neg-in53.0%
distribute-lft-neg-in53.0%
distribute-rgt-neg-in53.0%
remove-double-neg53.0%
fma-define53.0%
fma-define53.0%
fma-define53.0%
Simplified53.0%
fma-define53.0%
fma-define53.0%
fma-define53.0%
associate-/l*46.9%
clear-num46.9%
*-commutative46.9%
fma-undefine46.9%
*-commutative46.9%
fma-define47.0%
*-commutative47.0%
fma-undefine47.0%
Applied egg-rr47.0%
Taylor expanded in z around inf 99.6%
Taylor expanded in y around 0 99.9%
associate-*r/99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification99.5%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (/ y 14.431876219268936)) (+ x (/ 1.0 (/ 12.000000000000014 y)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = x + (1.0 / (12.000000000000014 / 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.4d0)) .or. (.not. (z <= 1.3d-6))) then
tmp = x + (y / 14.431876219268936d0)
else
tmp = x + (1.0d0 / (12.000000000000014d0 / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = x + (1.0 / (12.000000000000014 / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y / 14.431876219268936) else: tmp = x + (1.0 / (12.000000000000014 / y)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) tmp = Float64(x + Float64(y / 14.431876219268936)); else tmp = Float64(x + Float64(1.0 / Float64(12.000000000000014 / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.4) || ~((z <= 1.3e-6))) tmp = x + (y / 14.431876219268936); else tmp = x + (1.0 / (12.000000000000014 / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.4], N[Not[LessEqual[z, 1.3e-6]], $MachinePrecision]], N[(x + N[(y / 14.431876219268936), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 / N[(12.000000000000014 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{12.000000000000014}{y}}\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
+-commutative37.0%
*-commutative37.0%
associate-/l*40.5%
fma-define40.6%
*-commutative40.6%
fma-define40.6%
fma-define40.6%
*-commutative40.6%
fma-define40.6%
Simplified40.6%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
Simplified98.1%
add-cbrt-cube66.5%
pow1/346.9%
pow346.9%
*-commutative46.9%
unpow-prod-down46.9%
metadata-eval46.9%
Applied egg-rr46.9%
unpow1/366.6%
Simplified66.6%
*-commutative66.6%
metadata-eval66.6%
unpow-prod-down66.6%
metadata-eval66.6%
associate-/r/66.6%
pow366.6%
add-cbrt-cube98.1%
clear-num98.3%
Applied egg-rr98.3%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial 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%
fma-define99.9%
fma-define99.9%
fma-define99.9%
associate-/l*99.7%
clear-num99.7%
*-commutative99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-undefine99.7%
Applied egg-rr99.7%
Taylor expanded in z around 0 99.4%
Final simplification98.9%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (* y 0.0692910599291889)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
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.4d0)) .or. (.not. (z <= 1.3d-6))) 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.4) || !(z <= 1.3e-6)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y * 0.0692910599291889) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) 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.4) || ~((z <= 1.3e-6))) 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.4], N[Not[LessEqual[z, 1.3e-6]], $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.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
+-commutative37.0%
*-commutative37.0%
associate-/l*40.5%
fma-define40.6%
*-commutative40.6%
fma-define40.6%
fma-define40.6%
*-commutative40.6%
fma-define40.6%
Simplified40.6%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
Simplified98.1%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial program 99.7%
+-commutative99.7%
*-commutative99.7%
associate-/l*99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.4%
+-commutative99.4%
Simplified99.4%
Final simplification98.8%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.4) (not (<= z 1.3e-6))) (+ x (/ y 14.431876219268936)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.4) || !(z <= 1.3e-6)) {
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.4d0)) .or. (.not. (z <= 1.3d-6))) 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.4) || !(z <= 1.3e-6)) {
tmp = x + (y / 14.431876219268936);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.4) or not (z <= 1.3e-6): tmp = x + (y / 14.431876219268936) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.4) || !(z <= 1.3e-6)) 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.4) || ~((z <= 1.3e-6))) 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.4], N[Not[LessEqual[z, 1.3e-6]], $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.4 \lor \neg \left(z \leq 1.3 \cdot 10^{-6}\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -5.4000000000000004 or 1.30000000000000005e-6 < z Initial program 37.0%
+-commutative37.0%
*-commutative37.0%
associate-/l*40.5%
fma-define40.6%
*-commutative40.6%
fma-define40.6%
fma-define40.6%
*-commutative40.6%
fma-define40.6%
Simplified40.6%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
Simplified98.1%
add-cbrt-cube66.5%
pow1/346.9%
pow346.9%
*-commutative46.9%
unpow-prod-down46.9%
metadata-eval46.9%
Applied egg-rr46.9%
unpow1/366.6%
Simplified66.6%
*-commutative66.6%
metadata-eval66.6%
unpow-prod-down66.6%
metadata-eval66.6%
associate-/r/66.6%
pow366.6%
add-cbrt-cube98.1%
clear-num98.3%
Applied egg-rr98.3%
if -5.4000000000000004 < z < 1.30000000000000005e-6Initial program 99.7%
+-commutative99.7%
*-commutative99.7%
associate-/l*99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.4%
+-commutative99.4%
Simplified99.4%
Final simplification98.9%
(FPCore (x y z) :precision binary64 (+ x (* y 0.0692910599291889)))
double code(double x, double y, double z) {
return x + (y * 0.0692910599291889);
}
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 * 0.0692910599291889d0)
end function
public static double code(double x, double y, double z) {
return x + (y * 0.0692910599291889);
}
def code(x, y, z): return x + (y * 0.0692910599291889)
function code(x, y, z) return Float64(x + Float64(y * 0.0692910599291889)) end
function tmp = code(x, y, z) tmp = x + (y * 0.0692910599291889); end
code[x_, y_, z_] := N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot 0.0692910599291889
\end{array}
Initial program 68.9%
+-commutative68.9%
*-commutative68.9%
associate-/l*70.6%
fma-define70.6%
*-commutative70.6%
fma-define70.6%
fma-define70.6%
*-commutative70.6%
fma-define70.6%
Simplified70.6%
Taylor expanded in z around inf 84.3%
+-commutative84.3%
Simplified84.3%
Final simplification84.3%
(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.9%
+-commutative68.9%
*-commutative68.9%
associate-/l*70.6%
fma-define70.6%
*-commutative70.6%
fma-define70.6%
fma-define70.6%
*-commutative70.6%
fma-define70.6%
Simplified70.6%
Taylor expanded in y around 0 56.9%
Final simplification56.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(-
(* (+ (/ 0.07512208616047561 z) 0.0692910599291889) y)
(- (/ (* 0.40462203869992125 y) (* z z)) x))))
(if (< z -8120153.652456675)
t_0
(if (< z 6.576118972787377e+20)
(+
x
(*
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(/ 1.0 (+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
t_0))))
double code(double x, double y, double z) {
double t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
double tmp;
if (z < -8120153.652456675) {
tmp = t_0;
} else if (z < 6.576118972787377e+20) {
tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (((0.07512208616047561d0 / z) + 0.0692910599291889d0) * y) - (((0.40462203869992125d0 * y) / (z * z)) - x)
if (z < (-8120153.652456675d0)) then
tmp = t_0
else if (z < 6.576118972787377d+20) then
tmp = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) * (1.0d0 / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x);
double tmp;
if (z < -8120153.652456675) {
tmp = t_0;
} else if (z < 6.576118972787377e+20) {
tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x) tmp = 0 if z < -8120153.652456675: tmp = t_0 elif z < 6.576118972787377e+20: tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(Float64(0.07512208616047561 / z) + 0.0692910599291889) * y) - Float64(Float64(Float64(0.40462203869992125 * y) / Float64(z * z)) - x)) tmp = 0.0 if (z < -8120153.652456675) tmp = t_0; elseif (z < 6.576118972787377e+20) tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * Float64(1.0 / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (((0.07512208616047561 / z) + 0.0692910599291889) * y) - (((0.40462203869992125 * y) / (z * z)) - x); tmp = 0.0; if (z < -8120153.652456675) tmp = t_0; elseif (z < 6.576118972787377e+20) tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) * (1.0 / (((z + 6.012459259764103) * z) + 3.350343815022304))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(0.07512208616047561 / z), $MachinePrecision] + 0.0692910599291889), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(0.40462203869992125 * y), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -8120153.652456675], t$95$0, If[Less[z, 6.576118972787377e+20], N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{0.07512208616047561}{z} + 0.0692910599291889\right) \cdot y - \left(\frac{0.40462203869992125 \cdot y}{z \cdot z} - x\right)\\
\mathbf{if}\;z < -8120153.652456675:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z < 6.576118972787377 \cdot 10^{+20}:\\
\;\;\;\;x + \left(y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)\right) \cdot \frac{1}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024055
(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))))