
(FPCore (x y z)
:precision binary64
(+
x
(/
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
public static double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
def code(x, y, z): return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304))
function code(x, y, z) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304))) end
function tmp = code(x, y, z) tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304)); end
code[x_, y_, z_] := N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(+
x
(/
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
public static double code(double x, double y, double z) {
return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
}
def code(x, y, z): return x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304))
function code(x, y, z) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304))) end
function tmp = code(x, y, z) tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304)); end
code[x_, y_, z_] := N[(x + N[(N[(y * N[(N[(N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision] * z), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(z + 6.012459259764103), $MachinePrecision] * z), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
1e+283)
(+
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)) <= 1e+283) {
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)) <= 1e+283) 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], 1e+283], 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 10^{+283}:\\
\;\;\;\;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 #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < 9.99999999999999955e282Initial program 98.0%
remove-double-neg98.0%
distribute-lft-neg-out98.0%
distribute-neg-frac98.0%
associate-/l*99.8%
distribute-lft-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
if 9.99999999999999955e282 < (/.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.6%
remove-double-neg0.6%
distribute-lft-neg-out0.6%
distribute-neg-frac0.6%
associate-/l*10.9%
distribute-lft-neg-in10.9%
remove-double-neg10.9%
fma-define10.9%
fma-define10.9%
fma-define10.9%
Simplified10.9%
fma-define10.9%
fma-define10.9%
fma-define10.9%
associate-/l*0.6%
clear-num0.6%
*-commutative0.6%
fma-undefine0.6%
*-commutative0.6%
fma-define0.6%
*-commutative0.6%
fma-undefine0.6%
Applied egg-rr0.6%
Taylor expanded in z around inf 99.8%
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
(let* ((t_0 (+ (* z (+ z 6.012459259764103)) 3.350343815022304)))
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
t_0)
1e+283)
(+
x
(/
(+
(* y 0.279195317918525)
(* z (+ (* 0.0692910599291889 (* y z)) (* y 0.4917317610505968))))
t_0))
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))))))
double code(double x, double y, double z) {
double t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 1e+283) {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / t_0);
} 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) :: t_0
real(8) :: tmp
t_0 = (z * (z + 6.012459259764103d0)) + 3.350343815022304d0
if (((y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / t_0) <= 1d+283) then
tmp = x + (((y * 0.279195317918525d0) + (z * ((0.0692910599291889d0 * (y * z)) + (y * 0.4917317610505968d0)))) / t_0)
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 t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304;
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 1e+283) {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / t_0);
} else {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
}
return tmp;
}
def code(x, y, z): t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304 tmp = 0 if ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 1e+283: tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / t_0) else: tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) return tmp
function code(x, y, z) t_0 = Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 1e+283) tmp = Float64(x + Float64(Float64(Float64(y * 0.279195317918525) + Float64(z * Float64(Float64(0.0692910599291889 * Float64(y * z)) + Float64(y * 0.4917317610505968)))) / t_0)); else tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (z * (z + 6.012459259764103)) + 3.350343815022304; tmp = 0.0; if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / t_0) <= 1e+283) tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / t_0); else tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+283], 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] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304\\
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{t\_0} \leq 10^{+283}:\\
\;\;\;\;x + \frac{y \cdot 0.279195317918525 + z \cdot \left(0.0692910599291889 \cdot \left(y \cdot z\right) + y \cdot 0.4917317610505968\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < 9.99999999999999955e282Initial program 98.0%
Taylor expanded in z around 0 98.0%
if 9.99999999999999955e282 < (/.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.6%
remove-double-neg0.6%
distribute-lft-neg-out0.6%
distribute-neg-frac0.6%
associate-/l*10.9%
distribute-lft-neg-in10.9%
remove-double-neg10.9%
fma-define10.9%
fma-define10.9%
fma-define10.9%
Simplified10.9%
fma-define10.9%
fma-define10.9%
fma-define10.9%
associate-/l*0.6%
clear-num0.6%
*-commutative0.6%
fma-undefine0.6%
*-commutative0.6%
fma-define0.6%
*-commutative0.6%
fma-undefine0.6%
Applied egg-rr0.6%
Taylor expanded in z around inf 99.8%
Taylor expanded in y around 0 100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))))
(if (<= t_0 1e+283)
(+ t_0 x)
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))))))
double code(double x, double y, double z) {
double t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304);
double tmp;
if (t_0 <= 1e+283) {
tmp = t_0 + x;
} 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) :: t_0
real(8) :: tmp
t_0 = (y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)
if (t_0 <= 1d+283) then
tmp = t_0 + x
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 t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304);
double tmp;
if (t_0 <= 1e+283) {
tmp = t_0 + x;
} else {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
}
return tmp;
}
def code(x, y, z): t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304) tmp = 0 if t_0 <= 1e+283: tmp = t_0 + x else: tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) return tmp
function code(x, y, z) t_0 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) tmp = 0.0 if (t_0 <= 1e+283) tmp = Float64(t_0 + x); else tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304); tmp = 0.0; if (t_0 <= 1e+283) tmp = t_0 + x; else tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 1e+283], N[(t$95$0 + x), $MachinePrecision], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\
\mathbf{if}\;t\_0 \leq 10^{+283}:\\
\;\;\;\;t\_0 + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 692910599291889/10000000000000000 binary64)) #s(literal 307332350656623/625000000000000 binary64)) z) #s(literal 11167812716741/40000000000000 binary64))) (+.f64 (*.f64 (+.f64 z #s(literal 6012459259764103/1000000000000000 binary64)) z) #s(literal 104698244219447/31250000000000 binary64))) < 9.99999999999999955e282Initial program 98.0%
if 9.99999999999999955e282 < (/.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.6%
remove-double-neg0.6%
distribute-lft-neg-out0.6%
distribute-neg-frac0.6%
associate-/l*10.9%
distribute-lft-neg-in10.9%
remove-double-neg10.9%
fma-define10.9%
fma-define10.9%
fma-define10.9%
Simplified10.9%
fma-define10.9%
fma-define10.9%
fma-define10.9%
associate-/l*0.6%
clear-num0.6%
*-commutative0.6%
fma-undefine0.6%
*-commutative0.6%
fma-define0.6%
*-commutative0.6%
fma-undefine0.6%
Applied egg-rr0.6%
Taylor expanded in z around inf 99.8%
Taylor expanded in y around 0 100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(if (<= z -2.1e+20)
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z))))
(if (<= z 5.4)
(+ x (+ (* y 0.08333333333333323) (* z (* y -0.00277777777751721))))
(+
x
(-
(* y 0.0692910599291889)
(/ (+ (* y -0.07512208616047561) (* 0.4046220386999212 (/ y z))) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else if (z <= 5.4) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + ((y * 0.0692910599291889) - (((y * -0.07512208616047561) + (0.4046220386999212 * (y / z))) / 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+20)) then
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
else if (z <= 5.4d0) then
tmp = x + ((y * 0.08333333333333323d0) + (z * (y * (-0.00277777777751721d0))))
else
tmp = x + ((y * 0.0692910599291889d0) - (((y * (-0.07512208616047561d0)) + (0.4046220386999212d0 * (y / z))) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else if (z <= 5.4) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + ((y * 0.0692910599291889) - (((y * -0.07512208616047561) + (0.4046220386999212 * (y / z))) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.1e+20: tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) elif z <= 5.4: tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))) else: tmp = x + ((y * 0.0692910599291889) - (((y * -0.07512208616047561) + (0.4046220386999212 * (y / z))) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.1e+20) tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); elseif (z <= 5.4) tmp = Float64(x + Float64(Float64(y * 0.08333333333333323) + Float64(z * Float64(y * -0.00277777777751721)))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(Float64(y * -0.07512208616047561) + Float64(0.4046220386999212 * Float64(y / z))) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.1e+20) tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); elseif (z <= 5.4) tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))); else tmp = x + ((y * 0.0692910599291889) - (((y * -0.07512208616047561) + (0.4046220386999212 * (y / z))) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.1e+20], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4], N[(x + N[(N[(y * 0.08333333333333323), $MachinePrecision] + N[(z * N[(y * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(N[(y * -0.07512208616047561), $MachinePrecision] + N[(0.4046220386999212 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\mathbf{elif}\;z \leq 5.4:\\
\;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561 + 0.4046220386999212 \cdot \frac{y}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -2.1e20Initial program 34.1%
remove-double-neg34.1%
distribute-lft-neg-out34.1%
distribute-neg-frac34.1%
associate-/l*41.7%
distribute-lft-neg-in41.7%
remove-double-neg41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
Simplified41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
associate-/l*34.1%
clear-num34.1%
*-commutative34.1%
fma-undefine34.1%
*-commutative34.1%
fma-define34.1%
*-commutative34.1%
fma-undefine34.1%
Applied egg-rr34.1%
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%
if -2.1e20 < z < 5.4000000000000004Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.9%
distribute-lft-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.9%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
Simplified99.9%
if 5.4000000000000004 < z Initial program 32.7%
remove-double-neg32.7%
distribute-lft-neg-out32.7%
distribute-neg-frac32.7%
associate-/l*42.8%
distribute-lft-neg-in42.8%
remove-double-neg42.8%
fma-define42.8%
fma-define42.8%
fma-define42.8%
Simplified42.8%
Taylor expanded in z around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
sub-neg97.9%
associate-*r/97.9%
metadata-eval97.9%
metadata-eval97.9%
Simplified97.9%
Taylor expanded in z around -inf 97.9%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (or (<= z -1.55e-82)
(and (not (<= z -4e-186))
(or (<= z -1.12e-271) (not (<= z 3.9e-84)))))
(+ x (* y 0.0692910599291889))
(* y 0.08333333333333323)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -1.55e-82) || (!(z <= -4e-186) && ((z <= -1.12e-271) || !(z <= 3.9e-84)))) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = y * 0.08333333333333323;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-1.55d-82)) .or. (.not. (z <= (-4d-186))) .and. (z <= (-1.12d-271)) .or. (.not. (z <= 3.9d-84))) then
tmp = x + (y * 0.0692910599291889d0)
else
tmp = y * 0.08333333333333323d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -1.55e-82) || (!(z <= -4e-186) && ((z <= -1.12e-271) || !(z <= 3.9e-84)))) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = y * 0.08333333333333323;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -1.55e-82) or (not (z <= -4e-186) and ((z <= -1.12e-271) or not (z <= 3.9e-84))): tmp = x + (y * 0.0692910599291889) else: tmp = y * 0.08333333333333323 return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -1.55e-82) || (!(z <= -4e-186) && ((z <= -1.12e-271) || !(z <= 3.9e-84)))) tmp = Float64(x + Float64(y * 0.0692910599291889)); else tmp = Float64(y * 0.08333333333333323); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -1.55e-82) || (~((z <= -4e-186)) && ((z <= -1.12e-271) || ~((z <= 3.9e-84))))) tmp = x + (y * 0.0692910599291889); else tmp = y * 0.08333333333333323; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -1.55e-82], And[N[Not[LessEqual[z, -4e-186]], $MachinePrecision], Or[LessEqual[z, -1.12e-271], N[Not[LessEqual[z, 3.9e-84]], $MachinePrecision]]]], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], N[(y * 0.08333333333333323), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{-82} \lor \neg \left(z \leq -4 \cdot 10^{-186}\right) \land \left(z \leq -1.12 \cdot 10^{-271} \lor \neg \left(z \leq 3.9 \cdot 10^{-84}\right)\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -1.55e-82 or -3.9999999999999996e-186 < z < -1.11999999999999997e-271 or 3.90000000000000023e-84 < z Initial program 53.5%
+-commutative53.5%
*-commutative53.5%
associate-/l*57.6%
fma-define57.6%
*-commutative57.6%
fma-define57.6%
fma-define57.6%
*-commutative57.6%
fma-define57.6%
Simplified57.6%
Taylor expanded in z around inf 91.1%
+-commutative91.1%
Simplified91.1%
if -1.55e-82 < z < -3.9999999999999996e-186 or -1.11999999999999997e-271 < z < 3.90000000000000023e-84Initial program 99.5%
+-commutative99.5%
*-commutative99.5%
associate-/l*99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around inf 70.7%
Final simplification85.2%
(FPCore (x y z)
:precision binary64
(if (<= z -2.1e+20)
(+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z))))
(if (<= z 5.4)
(+ x (+ (* y 0.08333333333333323) (* z (* y -0.00277777777751721))))
(+
x
(*
y
(-
0.0692910599291889
(/ (+ -0.07512208616047561 (/ 0.4046220386999212 z)) z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else if (z <= 5.4) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / 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+20)) then
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
else if (z <= 5.4d0) then
tmp = x + ((y * 0.08333333333333323d0) + (z * (y * (-0.00277777777751721d0))))
else
tmp = x + (y * (0.0692910599291889d0 - (((-0.07512208616047561d0) + (0.4046220386999212d0 / z)) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else if (z <= 5.4) {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.1e+20: tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) elif z <= 5.4: tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))) else: tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.1e+20) tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); elseif (z <= 5.4) tmp = Float64(x + Float64(Float64(y * 0.08333333333333323) + Float64(z * Float64(y * -0.00277777777751721)))); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 - Float64(Float64(-0.07512208616047561 + Float64(0.4046220386999212 / z)) / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.1e+20) tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); elseif (z <= 5.4) tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))); else tmp = x + (y * (0.0692910599291889 - ((-0.07512208616047561 + (0.4046220386999212 / z)) / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.1e+20], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4], N[(x + N[(N[(y * 0.08333333333333323), $MachinePrecision] + N[(z * N[(y * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 - N[(N[(-0.07512208616047561 + N[(0.4046220386999212 / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\mathbf{elif}\;z \leq 5.4:\\
\;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 - \frac{-0.07512208616047561 + \frac{0.4046220386999212}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -2.1e20Initial program 34.1%
remove-double-neg34.1%
distribute-lft-neg-out34.1%
distribute-neg-frac34.1%
associate-/l*41.7%
distribute-lft-neg-in41.7%
remove-double-neg41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
Simplified41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
associate-/l*34.1%
clear-num34.1%
*-commutative34.1%
fma-undefine34.1%
*-commutative34.1%
fma-define34.1%
*-commutative34.1%
fma-undefine34.1%
Applied egg-rr34.1%
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%
if -2.1e20 < z < 5.4000000000000004Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.9%
distribute-lft-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.9%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
Simplified99.9%
if 5.4000000000000004 < z Initial program 32.7%
remove-double-neg32.7%
distribute-lft-neg-out32.7%
distribute-neg-frac32.7%
associate-/l*42.8%
distribute-lft-neg-in42.8%
remove-double-neg42.8%
fma-define42.8%
fma-define42.8%
fma-define42.8%
Simplified42.8%
Taylor expanded in z around -inf 97.9%
mul-1-neg97.9%
unsub-neg97.9%
sub-neg97.9%
associate-*r/97.9%
metadata-eval97.9%
metadata-eval97.9%
Simplified97.9%
Final simplification99.4%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.1e+20) (not (<= z 5.5))) (+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))) (+ x (+ (* y 0.08333333333333323) (* z (* y -0.00277777777751721))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.1e+20) || !(z <= 5.5)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -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 <= (-2.1d+20)) .or. (.not. (z <= 5.5d0))) then
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / z)))
else
tmp = x + ((y * 0.08333333333333323d0) + (z * (y * (-0.00277777777751721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.1e+20) || !(z <= 5.5)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else {
tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.1e+20) or not (z <= 5.5): tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) else: tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.1e+20) || !(z <= 5.5)) tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / z)))); else tmp = Float64(x + Float64(Float64(y * 0.08333333333333323) + Float64(z * Float64(y * -0.00277777777751721)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.1e+20) || ~((z <= 5.5))) tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); else tmp = x + ((y * 0.08333333333333323) + (z * (y * -0.00277777777751721))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.1e+20], N[Not[LessEqual[z, 5.5]], $MachinePrecision]], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.08333333333333323), $MachinePrecision] + N[(z * N[(y * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+20} \lor \neg \left(z \leq 5.5\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.08333333333333323 + z \cdot \left(y \cdot -0.00277777777751721\right)\right)\\
\end{array}
\end{array}
if z < -2.1e20 or 5.5 < z Initial program 33.4%
remove-double-neg33.4%
distribute-lft-neg-out33.4%
distribute-neg-frac33.4%
associate-/l*42.3%
distribute-lft-neg-in42.3%
remove-double-neg42.3%
fma-define42.3%
fma-define42.3%
fma-define42.3%
Simplified42.3%
fma-define42.3%
fma-define42.3%
fma-define42.3%
associate-/l*33.4%
clear-num33.4%
*-commutative33.4%
fma-undefine33.4%
*-commutative33.4%
fma-define33.4%
*-commutative33.4%
fma-undefine33.4%
Applied egg-rr33.4%
Taylor expanded in z around inf 98.5%
Taylor expanded in y around 0 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -2.1e20 < z < 5.5Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.9%
distribute-lft-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.9%
Taylor expanded in y around 0 99.9%
*-commutative99.9%
Simplified99.9%
Final simplification99.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.1e+20) (not (<= z 5.5))) (+ x (/ y (- 14.431876219268936 (/ 15.646356830292042 z)))) (+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.1e+20) || !(z <= 5.5)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / 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 <= (-2.1d+20)) .or. (.not. (z <= 5.5d0))) then
tmp = x + (y / (14.431876219268936d0 - (15.646356830292042d0 / 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 <= -2.1e+20) || !(z <= 5.5)) {
tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z)));
} else {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.1e+20) or not (z <= 5.5): tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))) else: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.1e+20) || !(z <= 5.5)) tmp = Float64(x + Float64(y / Float64(14.431876219268936 - Float64(15.646356830292042 / 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 <= -2.1e+20) || ~((z <= 5.5))) tmp = x + (y / (14.431876219268936 - (15.646356830292042 / z))); else tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.1e+20], N[Not[LessEqual[z, 5.5]], $MachinePrecision]], N[(x + N[(y / N[(14.431876219268936 - N[(15.646356830292042 / 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 -2.1 \cdot 10^{+20} \lor \neg \left(z \leq 5.5\right):\\
\;\;\;\;x + \frac{y}{14.431876219268936 - \frac{15.646356830292042}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\end{array}
\end{array}
if z < -2.1e20 or 5.5 < z Initial program 33.4%
remove-double-neg33.4%
distribute-lft-neg-out33.4%
distribute-neg-frac33.4%
associate-/l*42.3%
distribute-lft-neg-in42.3%
remove-double-neg42.3%
fma-define42.3%
fma-define42.3%
fma-define42.3%
Simplified42.3%
fma-define42.3%
fma-define42.3%
fma-define42.3%
associate-/l*33.4%
clear-num33.4%
*-commutative33.4%
fma-undefine33.4%
*-commutative33.4%
fma-define33.4%
*-commutative33.4%
fma-undefine33.4%
Applied egg-rr33.4%
Taylor expanded in z around inf 98.5%
Taylor expanded in y around 0 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -2.1e20 < z < 5.5Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.9%
distribute-lft-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.9%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(if (<= z -2.1e+20)
(+ x (/ 1.0 (/ 14.431876219268936 y)))
(if (<= z 5.4)
(+ x (* y 0.08333333333333323))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else if (z <= 5.4) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-2.1d+20)) then
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
else if (z <= 5.4d0) then
tmp = x + (y * 0.08333333333333323d0)
else
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else if (z <= 5.4) {
tmp = x + (y * 0.08333333333333323);
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.1e+20: tmp = x + (1.0 / (14.431876219268936 / y)) elif z <= 5.4: tmp = x + (y * 0.08333333333333323) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.1e+20) tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); elseif (z <= 5.4) tmp = Float64(x + Float64(y * 0.08333333333333323)); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.1e+20) tmp = x + (1.0 / (14.431876219268936 / y)); elseif (z <= 5.4) tmp = x + (y * 0.08333333333333323); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.1e+20], N[(x + N[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4], N[(x + N[(y * 0.08333333333333323), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\mathbf{elif}\;z \leq 5.4:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -2.1e20Initial program 34.1%
remove-double-neg34.1%
distribute-lft-neg-out34.1%
distribute-neg-frac34.1%
associate-/l*41.7%
distribute-lft-neg-in41.7%
remove-double-neg41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
Simplified41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
associate-/l*34.1%
clear-num34.1%
*-commutative34.1%
fma-undefine34.1%
*-commutative34.1%
fma-define34.1%
*-commutative34.1%
fma-undefine34.1%
Applied egg-rr34.1%
Taylor expanded in z around inf 99.8%
if -2.1e20 < z < 5.4000000000000004Initial program 99.6%
+-commutative99.6%
*-commutative99.6%
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 99.3%
+-commutative99.3%
Simplified99.3%
if 5.4000000000000004 < z Initial program 32.7%
remove-double-neg32.7%
distribute-lft-neg-out32.7%
distribute-neg-frac32.7%
associate-/l*42.8%
distribute-lft-neg-in42.8%
remove-double-neg42.8%
fma-define42.8%
fma-define42.8%
fma-define42.8%
Simplified42.8%
Taylor expanded in z around inf 97.3%
associate-*r/97.3%
metadata-eval97.3%
Simplified97.3%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(if (<= z -2.1e+20)
(+ x (/ 1.0 (/ 14.431876219268936 y)))
(if (<= z 4.8)
(+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else if (z <= 4.8) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-2.1d+20)) then
tmp = x + (1.0d0 / (14.431876219268936d0 / y))
else if (z <= 4.8d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
else
tmp = x + (y * (0.0692910599291889d0 + (0.07512208616047561d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.1e+20) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else if (z <= 4.8) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.1e+20: tmp = x + (1.0 / (14.431876219268936 / y)) elif z <= 4.8: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) else: tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.1e+20) tmp = Float64(x + Float64(1.0 / Float64(14.431876219268936 / y))); elseif (z <= 4.8) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721)))); else tmp = Float64(x + Float64(y * Float64(0.0692910599291889 + Float64(0.07512208616047561 / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.1e+20) tmp = x + (1.0 / (14.431876219268936 / y)); elseif (z <= 4.8) tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); else tmp = x + (y * (0.0692910599291889 + (0.07512208616047561 / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.1e+20], N[(x + N[(1.0 / N[(14.431876219268936 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.0692910599291889 + N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\mathbf{elif}\;z \leq 4.8:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -2.1e20Initial program 34.1%
remove-double-neg34.1%
distribute-lft-neg-out34.1%
distribute-neg-frac34.1%
associate-/l*41.7%
distribute-lft-neg-in41.7%
remove-double-neg41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
Simplified41.7%
fma-define41.7%
fma-define41.7%
fma-define41.7%
associate-/l*34.1%
clear-num34.1%
*-commutative34.1%
fma-undefine34.1%
*-commutative34.1%
fma-define34.1%
*-commutative34.1%
fma-undefine34.1%
Applied egg-rr34.1%
Taylor expanded in z around inf 99.8%
if -2.1e20 < z < 4.79999999999999982Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-neg-frac99.6%
associate-/l*99.9%
distribute-lft-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.9%
if 4.79999999999999982 < z Initial program 32.7%
remove-double-neg32.7%
distribute-lft-neg-out32.7%
distribute-neg-frac32.7%
associate-/l*42.8%
distribute-lft-neg-in42.8%
remove-double-neg42.8%
fma-define42.8%
fma-define42.8%
fma-define42.8%
Simplified42.8%
Taylor expanded in z around inf 97.3%
associate-*r/97.3%
metadata-eval97.3%
Simplified97.3%
Final simplification99.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.1e+20) (not (<= z 5.5))) (+ x (/ 1.0 (/ 14.431876219268936 y))) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.1e+20) || !(z <= 5.5)) {
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 <= (-2.1d+20)) .or. (.not. (z <= 5.5d0))) 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 <= -2.1e+20) || !(z <= 5.5)) {
tmp = x + (1.0 / (14.431876219268936 / y));
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.1e+20) or not (z <= 5.5): 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 <= -2.1e+20) || !(z <= 5.5)) 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 <= -2.1e+20) || ~((z <= 5.5))) 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, -2.1e+20], N[Not[LessEqual[z, 5.5]], $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 -2.1 \cdot 10^{+20} \lor \neg \left(z \leq 5.5\right):\\
\;\;\;\;x + \frac{1}{\frac{14.431876219268936}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -2.1e20 or 5.5 < z Initial program 33.4%
remove-double-neg33.4%
distribute-lft-neg-out33.4%
distribute-neg-frac33.4%
associate-/l*42.3%
distribute-lft-neg-in42.3%
remove-double-neg42.3%
fma-define42.3%
fma-define42.3%
fma-define42.3%
Simplified42.3%
fma-define42.3%
fma-define42.3%
fma-define42.3%
associate-/l*33.4%
clear-num33.4%
*-commutative33.4%
fma-undefine33.4%
*-commutative33.4%
fma-define33.4%
*-commutative33.4%
fma-undefine33.4%
Applied egg-rr33.4%
Taylor expanded in z around inf 98.3%
if -2.1e20 < z < 5.5Initial program 99.6%
+-commutative99.6%
*-commutative99.6%
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 99.3%
+-commutative99.3%
Simplified99.3%
Final simplification98.8%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.1e+20) (not (<= z 6.2))) (+ x (* y 0.0692910599291889)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.1e+20) || !(z <= 6.2)) {
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 <= (-2.1d+20)) .or. (.not. (z <= 6.2d0))) 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 <= -2.1e+20) || !(z <= 6.2)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.1e+20) or not (z <= 6.2): tmp = x + (y * 0.0692910599291889) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.1e+20) || !(z <= 6.2)) 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 <= -2.1e+20) || ~((z <= 6.2))) tmp = x + (y * 0.0692910599291889); else tmp = x + (y * 0.08333333333333323); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.1e+20], N[Not[LessEqual[z, 6.2]], $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 -2.1 \cdot 10^{+20} \lor \neg \left(z \leq 6.2\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -2.1e20 or 6.20000000000000018 < z Initial program 33.4%
+-commutative33.4%
*-commutative33.4%
associate-/l*39.4%
fma-define39.3%
*-commutative39.3%
fma-define39.3%
fma-define39.3%
*-commutative39.3%
fma-define39.3%
Simplified39.3%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
Simplified98.1%
if -2.1e20 < z < 6.20000000000000018Initial program 99.6%
+-commutative99.6%
*-commutative99.6%
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 99.3%
+-commutative99.3%
Simplified99.3%
Final simplification98.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -6500000000.0) (not (<= y 3.6e+72))) (* y 0.08333333333333323) x))
double code(double x, double y, double z) {
double tmp;
if ((y <= -6500000000.0) || !(y <= 3.6e+72)) {
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 <= (-6500000000.0d0)) .or. (.not. (y <= 3.6d+72))) 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 <= -6500000000.0) || !(y <= 3.6e+72)) {
tmp = y * 0.08333333333333323;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -6500000000.0) or not (y <= 3.6e+72): tmp = y * 0.08333333333333323 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -6500000000.0) || !(y <= 3.6e+72)) tmp = Float64(y * 0.08333333333333323); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -6500000000.0) || ~((y <= 3.6e+72))) tmp = y * 0.08333333333333323; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -6500000000.0], N[Not[LessEqual[y, 3.6e+72]], $MachinePrecision]], N[(y * 0.08333333333333323), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6500000000 \lor \neg \left(y \leq 3.6 \cdot 10^{+72}\right):\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -6.5e9 or 3.60000000000000035e72 < y Initial program 60.4%
+-commutative60.4%
*-commutative60.4%
associate-/l*70.0%
fma-define70.0%
*-commutative70.0%
fma-define70.0%
fma-define70.0%
*-commutative70.0%
fma-define70.0%
Simplified70.0%
Taylor expanded in z around 0 67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in y around inf 53.1%
if -6.5e9 < y < 3.60000000000000035e72Initial program 71.4%
+-commutative71.4%
*-commutative71.4%
associate-/l*69.6%
fma-define69.6%
*-commutative69.6%
fma-define69.6%
fma-define69.6%
*-commutative69.6%
fma-define69.6%
Simplified69.6%
Taylor expanded in y around 0 72.7%
Final simplification64.4%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 66.8%
+-commutative66.8%
*-commutative66.8%
associate-/l*69.8%
fma-define69.8%
*-commutative69.8%
fma-define69.8%
fma-define69.8%
*-commutative69.8%
fma-define69.8%
Simplified69.8%
Taylor expanded in y around 0 49.1%
Final simplification49.1%
(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 2024095
(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))))