
(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 16 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+301)
(+
x
(*
y
(/
(fma
(/
(- 0.24180012482592123 (* (pow z 2.0) 0.004801250986110448))
(- 0.4917317610505968 (* z 0.0692910599291889)))
z
0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= 1e+301) {
tmp = x + (y * (fma(((0.24180012482592123 - (pow(z, 2.0) * 0.004801250986110448)) / (0.4917317610505968 - (z * 0.0692910599291889))), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= 1e+301) tmp = Float64(x + Float64(y * Float64(fma(Float64(Float64(0.24180012482592123 - Float64((z ^ 2.0) * 0.004801250986110448)) / Float64(0.4917317610505968 - Float64(z * 0.0692910599291889))), z, 0.279195317918525) / fma(Float64(z + 6.012459259764103), z, 3.350343815022304)))); else tmp = Float64(x + Float64(y * 0.0692910599291889)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], 1e+301], N[(x + N[(y * N[(N[(N[(N[(0.24180012482592123 - N[(N[Power[z, 2.0], $MachinePrecision] * 0.004801250986110448), $MachinePrecision]), $MachinePrecision] / N[(0.4917317610505968 - N[(z * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z + 0.279195317918525), $MachinePrecision] / N[(N[(z + 6.012459259764103), $MachinePrecision] * z + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $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^{+301}:\\
\;\;\;\;x + y \cdot \frac{\mathsf{fma}\left(\frac{0.24180012482592123 - {z}^{2} \cdot 0.004801250986110448}{0.4917317610505968 - z \cdot 0.0692910599291889}, z, 0.279195317918525\right)}{\mathsf{fma}\left(z + 6.012459259764103, z, 3.350343815022304\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\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))) < 1.00000000000000005e301Initial program 96.1%
remove-double-neg96.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.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
fma-define99.7%
+-commutative99.7%
flip-+99.8%
metadata-eval99.8%
swap-sqr99.7%
pow299.7%
metadata-eval99.7%
Applied egg-rr99.7%
if 1.00000000000000005e301 < (/.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%
+-commutative0.6%
*-commutative0.6%
associate-/l*10.6%
fma-define10.6%
*-commutative10.6%
fma-define10.6%
fma-define10.6%
*-commutative10.6%
fma-define10.6%
Simplified10.6%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
1e+301)
(+
x
(*
y
(/
(fma (fma z 0.0692910599291889 0.4917317610505968) z 0.279195317918525)
(fma (+ z 6.012459259764103) z 3.350343815022304))))
(+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= 1e+301) {
tmp = x + (y * (fma(fma(z, 0.0692910599291889, 0.4917317610505968), z, 0.279195317918525) / fma((z + 6.012459259764103), z, 3.350343815022304)));
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= 1e+301) 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 * 0.0692910599291889)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], 1e+301], 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 * 0.0692910599291889), $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^{+301}:\\
\;\;\;\;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 + y \cdot 0.0692910599291889\\
\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))) < 1.00000000000000005e301Initial program 96.1%
remove-double-neg96.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.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
if 1.00000000000000005e301 < (/.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%
+-commutative0.6%
*-commutative0.6%
associate-/l*10.6%
fma-define10.6%
*-commutative10.6%
fma-define10.6%
fma-define10.6%
*-commutative10.6%
fma-define10.6%
Simplified10.6%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
1e+301)
(fma
(fma z (* z 0.0692910599291889) 0.279195317918525)
(/ y (fma z (+ z 6.012459259764103) 3.350343815022304))
x)
(+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if (((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) <= 1e+301) {
tmp = fma(fma(z, (z * 0.0692910599291889), 0.279195317918525), (y / fma(z, (z + 6.012459259764103), 3.350343815022304)), x);
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) <= 1e+301) tmp = fma(fma(z, Float64(z * 0.0692910599291889), 0.279195317918525), Float64(y / fma(z, Float64(z + 6.012459259764103), 3.350343815022304)), x); else tmp = Float64(x + Float64(y * 0.0692910599291889)); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision], 1e+301], N[(N[(z * N[(z * 0.0692910599291889), $MachinePrecision] + 0.279195317918525), $MachinePrecision] * N[(y / N[(z * N[(z + 6.012459259764103), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $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^{+301}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, z \cdot 0.0692910599291889, 0.279195317918525\right), \frac{y}{\mathsf{fma}\left(z, z + 6.012459259764103, 3.350343815022304\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\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))) < 1.00000000000000005e301Initial program 96.1%
+-commutative96.1%
*-commutative96.1%
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 inf 98.8%
*-commutative98.8%
Simplified98.8%
if 1.00000000000000005e301 < (/.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%
+-commutative0.6%
*-commutative0.6%
associate-/l*10.6%
fma-define10.6%
*-commutative10.6%
fma-define10.6%
fma-define10.6%
*-commutative10.6%
fma-define10.6%
Simplified10.6%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(if (<= z -1.15e+32)
(+
x
(*
y
(/
(- 0.004801250986110448 (pow (/ 0.07512208616047561 z) 2.0))
(- 0.0692910599291889 (/ 0.07512208616047561 z)))))
(if (<= z 1.7e-8)
(+
x
(/
(+
(* y 0.279195317918525)
(* z (+ (* 0.0692910599291889 (* y z)) (* y 0.4917317610505968))))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304)))
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.15e+32) {
tmp = x + (y * ((0.004801250986110448 - pow((0.07512208616047561 / z), 2.0)) / (0.0692910599291889 - (0.07512208616047561 / z))));
} else if (z <= 1.7e-8) {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.15d+32)) then
tmp = x + (y * ((0.004801250986110448d0 - ((0.07512208616047561d0 / z) ** 2.0d0)) / (0.0692910599291889d0 - (0.07512208616047561d0 / z))))
else if (z <= 1.7d-8) then
tmp = x + (((y * 0.279195317918525d0) + (z * ((0.0692910599291889d0 * (y * z)) + (y * 0.4917317610505968d0)))) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0))
else
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.15e+32) {
tmp = x + (y * ((0.004801250986110448 - Math.pow((0.07512208616047561 / z), 2.0)) / (0.0692910599291889 - (0.07512208616047561 / z))));
} else if (z <= 1.7e-8) {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.15e+32: tmp = x + (y * ((0.004801250986110448 - math.pow((0.07512208616047561 / z), 2.0)) / (0.0692910599291889 - (0.07512208616047561 / z)))) elif z <= 1.7e-8: tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) else: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.15e+32) tmp = Float64(x + Float64(y * Float64(Float64(0.004801250986110448 - (Float64(0.07512208616047561 / z) ^ 2.0)) / Float64(0.0692910599291889 - Float64(0.07512208616047561 / z))))); elseif (z <= 1.7e-8) tmp = Float64(x + Float64(Float64(Float64(y * 0.279195317918525) + Float64(z * Float64(Float64(0.0692910599291889 * Float64(y * z)) + Float64(y * 0.4917317610505968)))) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.15e+32) tmp = x + (y * ((0.004801250986110448 - ((0.07512208616047561 / z) ^ 2.0)) / (0.0692910599291889 - (0.07512208616047561 / z)))); elseif (z <= 1.7e-8) tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)); else tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.15e+32], N[(x + N[(y * N[(N[(0.004801250986110448 - N[Power[N[(0.07512208616047561 / z), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(0.0692910599291889 - N[(0.07512208616047561 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(x + N[(N[(N[(y * 0.279195317918525), $MachinePrecision] + N[(z * N[(N[(0.0692910599291889 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * 0.4917317610505968), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+32}:\\
\;\;\;\;x + y \cdot \frac{0.004801250986110448 - {\left(\frac{0.07512208616047561}{z}\right)}^{2}}{0.0692910599291889 - \frac{0.07512208616047561}{z}}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;x + \frac{y \cdot 0.279195317918525 + z \cdot \left(0.0692910599291889 \cdot \left(y \cdot z\right) + y \cdot 0.4917317610505968\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -1.15e32Initial program 34.3%
remove-double-neg34.3%
associate-/l*48.9%
distribute-rgt-neg-in48.9%
distribute-lft-neg-in48.9%
distribute-lft-neg-in48.9%
distribute-rgt-neg-in48.9%
remove-double-neg48.9%
fma-define48.9%
fma-define48.9%
fma-define48.9%
Simplified48.9%
Taylor expanded in z around inf 99.5%
associate-*r/99.5%
metadata-eval99.5%
Simplified99.5%
flip-+99.5%
metadata-eval99.6%
div-sub99.6%
pow299.6%
Applied egg-rr99.6%
div-sub99.6%
Simplified99.6%
if -1.15e32 < z < 1.7e-8Initial program 99.7%
Taylor expanded in z around 0 99.7%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around -inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<= z -5.9e+29)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-8)
(+
x
(/
(+
(* y 0.279195317918525)
(* z (+ (* 0.0692910599291889 (* y z)) (* y 0.4917317610505968))))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304)))
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.9e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-5.9d+29)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) then
tmp = x + (((y * 0.279195317918525d0) + (z * ((0.0692910599291889d0 * (y * z)) + (y * 0.4917317610505968d0)))) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0))
else
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.9e+29) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.9e+29: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-8: tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) else: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.9e+29) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-8) tmp = Float64(x + Float64(Float64(Float64(y * 0.279195317918525) + Float64(z * Float64(Float64(0.0692910599291889 * Float64(y * z)) + Float64(y * 0.4917317610505968)))) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.9e+29) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-8) tmp = x + (((y * 0.279195317918525) + (z * ((0.0692910599291889 * (y * z)) + (y * 0.4917317610505968)))) / ((z * (z + 6.012459259764103)) + 3.350343815022304)); else tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.9e+29], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(x + N[(N[(N[(y * 0.279195317918525), $MachinePrecision] + N[(z * N[(N[(0.0692910599291889 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * 0.4917317610505968), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.9 \cdot 10^{+29}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;x + \frac{y \cdot 0.279195317918525 + z \cdot \left(0.0692910599291889 \cdot \left(y \cdot z\right) + y \cdot 0.4917317610505968\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -5.8999999999999999e29Initial program 36.5%
+-commutative36.5%
*-commutative36.5%
associate-/l*50.4%
fma-define50.4%
*-commutative50.4%
fma-define50.4%
fma-define50.4%
*-commutative50.4%
fma-define50.4%
Simplified50.4%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
if -5.8999999999999999e29 < z < 1.7e-8Initial program 99.7%
Taylor expanded in z around 0 99.7%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around -inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<= z -1.5e+23)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-8)
(+
(/
(*
y
(+
(* z (+ (* z 0.0692910599291889) 0.4917317610505968))
0.279195317918525))
(+ (* z (+ z 6.012459259764103)) 3.350343815022304))
x)
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.5e+23) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.5d+23)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) then
tmp = ((y * ((z * ((z * 0.0692910599291889d0) + 0.4917317610505968d0)) + 0.279195317918525d0)) / ((z * (z + 6.012459259764103d0)) + 3.350343815022304d0)) + x
else
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.5e+23) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x;
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.5e+23: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-8: tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x else: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.5e+23) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-8) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / Float64(Float64(z * Float64(z + 6.012459259764103)) + 3.350343815022304)) + x); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.5e+23) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-8) tmp = ((y * ((z * ((z * 0.0692910599291889) + 0.4917317610505968)) + 0.279195317918525)) / ((z * (z + 6.012459259764103)) + 3.350343815022304)) + x; else tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.5e+23], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(N[(N[(y * N[(N[(z * N[(N[(z * 0.0692910599291889), $MachinePrecision] + 0.4917317610505968), $MachinePrecision]), $MachinePrecision] + 0.279195317918525), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(z + 6.012459259764103), $MachinePrecision]), $MachinePrecision] + 3.350343815022304), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+23}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) + 0.279195317918525\right)}{z \cdot \left(z + 6.012459259764103\right) + 3.350343815022304} + x\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -1.5e23Initial program 41.4%
+-commutative41.4%
*-commutative41.4%
associate-/l*54.3%
fma-define54.3%
*-commutative54.3%
fma-define54.3%
fma-define54.3%
*-commutative54.3%
fma-define54.3%
Simplified54.3%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
if -1.5e23 < z < 1.7e-8Initial program 99.7%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around -inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<= z -16.0)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-8)
(+
x
(*
y
(+
0.08333333333333323
(*
z
(-
(* z (+ 0.0007936505811533442 (* z -0.0005951669793454025)))
0.00277777777751721)))))
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-16.0d0)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * (0.0007936505811533442d0 + (z * (-0.0005951669793454025d0)))) - 0.00277777777751721d0))))
else
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721))));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -16.0: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-8: tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))) else: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -16.0) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-8) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * Float64(0.0007936505811533442 + Float64(z * -0.0005951669793454025))) - 0.00277777777751721))))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -16.0) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-8) tmp = x + (y * (0.08333333333333323 + (z * ((z * (0.0007936505811533442 + (z * -0.0005951669793454025))) - 0.00277777777751721)))); else tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -16.0], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * N[(0.0007936505811533442 + N[(z * -0.0005951669793454025), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right) - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -16Initial program 44.0%
+-commutative44.0%
*-commutative44.0%
associate-/l*56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
Simplified56.3%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
if -16 < z < 1.7e-8Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.4%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around -inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -16.0)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-8)
(+
x
(*
y
(+
0.08333333333333323
(* z (- (* z 0.0007936505811533442) 0.00277777777751721)))))
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-16.0d0)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((z * 0.0007936505811533442d0) - 0.00277777777751721d0))))
else
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721))));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -16.0: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-8: tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))) else: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -16.0) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-8) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(Float64(z * 0.0007936505811533442) - 0.00277777777751721))))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -16.0) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-8) tmp = x + (y * (0.08333333333333323 + (z * ((z * 0.0007936505811533442) - 0.00277777777751721)))); else tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -16.0], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(x + N[(y * N[(0.08333333333333323 + N[(z * N[(N[(z * 0.0007936505811533442), $MachinePrecision] - 0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(z \cdot 0.0007936505811533442 - 0.00277777777751721\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -16Initial program 44.0%
+-commutative44.0%
*-commutative44.0%
associate-/l*56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
Simplified56.3%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
if -16 < z < 1.7e-8Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.4%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around -inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -16.0)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-8)
(+ x (* y (+ 0.08333333333333323 (* z -0.00277777777751721))))
(+ x (- (* y 0.0692910599291889) (/ (* y -0.07512208616047561) z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-16.0d0)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) then
tmp = x + (y * (0.08333333333333323d0 + (z * (-0.00277777777751721d0))))
else
tmp = x + ((y * 0.0692910599291889d0) - ((y * (-0.07512208616047561d0)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721)));
} else {
tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -16.0: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-8: tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))) else: tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -16.0) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-8) tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * -0.00277777777751721)))); else tmp = Float64(x + Float64(Float64(y * 0.0692910599291889) - Float64(Float64(y * -0.07512208616047561) / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -16.0) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-8) tmp = x + (y * (0.08333333333333323 + (z * -0.00277777777751721))); else tmp = x + ((y * 0.0692910599291889) - ((y * -0.07512208616047561) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -16.0], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(x + N[(y * N[(0.08333333333333323 + N[(z * -0.00277777777751721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.0692910599291889), $MachinePrecision] - N[(N[(y * -0.07512208616047561), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot -0.00277777777751721\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.0692910599291889 - \frac{y \cdot -0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -16Initial program 44.0%
+-commutative44.0%
*-commutative44.0%
associate-/l*56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
Simplified56.3%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
if -16 < z < 1.7e-8Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.3%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around -inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -16.0)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-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 <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-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 <= (-16.0d0)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) 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 <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-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 <= -16.0: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-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 <= -16.0) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-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 <= -16.0) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-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, -16.0], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-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 -16:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-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 < -16Initial program 44.0%
+-commutative44.0%
*-commutative44.0%
associate-/l*56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
Simplified56.3%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
if -16 < z < 1.7e-8Initial program 99.7%
remove-double-neg99.7%
associate-/l*99.8%
distribute-rgt-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
remove-double-neg99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 99.3%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -16.0)
(+ x (* y 0.0692910599291889))
(if (<= z 1.7e-8)
(+ x (* y 0.08333333333333323))
(+ x (* y (+ 0.0692910599291889 (/ 0.07512208616047561 z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
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 <= (-16.0d0)) then
tmp = x + (y * 0.0692910599291889d0)
else if (z <= 1.7d-8) 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 <= -16.0) {
tmp = x + (y * 0.0692910599291889);
} else if (z <= 1.7e-8) {
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 <= -16.0: tmp = x + (y * 0.0692910599291889) elif z <= 1.7e-8: 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 <= -16.0) tmp = Float64(x + Float64(y * 0.0692910599291889)); elseif (z <= 1.7e-8) 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 <= -16.0) tmp = x + (y * 0.0692910599291889); elseif (z <= 1.7e-8) 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, -16.0], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-8], 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 -16:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.0692910599291889 + \frac{0.07512208616047561}{z}\right)\\
\end{array}
\end{array}
if z < -16Initial program 44.0%
+-commutative44.0%
*-commutative44.0%
associate-/l*56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
fma-define56.3%
*-commutative56.3%
fma-define56.3%
Simplified56.3%
Taylor expanded in z around inf 99.6%
+-commutative99.6%
Simplified99.6%
if -16 < z < 1.7e-8Initial program 99.7%
+-commutative99.7%
*-commutative99.7%
associate-/l*99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.0%
+-commutative99.0%
Simplified99.0%
if 1.7e-8 < z Initial program 33.8%
remove-double-neg33.8%
associate-/l*42.2%
distribute-rgt-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-lft-neg-in42.2%
distribute-rgt-neg-in42.2%
remove-double-neg42.2%
fma-define42.2%
fma-define42.2%
fma-define42.2%
Simplified42.2%
Taylor expanded in z around inf 99.7%
associate-*r/99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -16.0) (not (<= z 1.7e-8))) (+ x (* y 0.0692910599291889)) (+ x (* y 0.08333333333333323))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -16.0) || !(z <= 1.7e-8)) {
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 <= (-16.0d0)) .or. (.not. (z <= 1.7d-8))) 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 <= -16.0) || !(z <= 1.7e-8)) {
tmp = x + (y * 0.0692910599291889);
} else {
tmp = x + (y * 0.08333333333333323);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -16.0) or not (z <= 1.7e-8): tmp = x + (y * 0.0692910599291889) else: tmp = x + (y * 0.08333333333333323) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -16.0) || !(z <= 1.7e-8)) 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 <= -16.0) || ~((z <= 1.7e-8))) tmp = x + (y * 0.0692910599291889); else tmp = x + (y * 0.08333333333333323); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -16.0], N[Not[LessEqual[z, 1.7e-8]], $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 -16 \lor \neg \left(z \leq 1.7 \cdot 10^{-8}\right):\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.08333333333333323\\
\end{array}
\end{array}
if z < -16 or 1.7e-8 < z Initial program 38.9%
+-commutative38.9%
*-commutative38.9%
associate-/l*49.3%
fma-define49.3%
*-commutative49.3%
fma-define49.3%
fma-define49.3%
*-commutative49.3%
fma-define49.3%
Simplified49.3%
Taylor expanded in z around inf 99.5%
+-commutative99.5%
Simplified99.5%
if -16 < z < 1.7e-8Initial program 99.7%
+-commutative99.7%
*-commutative99.7%
associate-/l*99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.0%
+-commutative99.0%
Simplified99.0%
Final simplification99.3%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.12e+23) (not (<= y 1.05e+89))) (* y 0.0692910599291889) x))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.12e+23) || !(y <= 1.05e+89)) {
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 ((y <= (-1.12d+23)) .or. (.not. (y <= 1.05d+89))) 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 ((y <= -1.12e+23) || !(y <= 1.05e+89)) {
tmp = y * 0.0692910599291889;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.12e+23) or not (y <= 1.05e+89): tmp = y * 0.0692910599291889 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.12e+23) || !(y <= 1.05e+89)) tmp = Float64(y * 0.0692910599291889); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.12e+23) || ~((y <= 1.05e+89))) tmp = y * 0.0692910599291889; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.12e+23], N[Not[LessEqual[y, 1.05e+89]], $MachinePrecision]], N[(y * 0.0692910599291889), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+23} \lor \neg \left(y \leq 1.05 \cdot 10^{+89}\right):\\
\;\;\;\;y \cdot 0.0692910599291889\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.12e23 or 1.04999999999999993e89 < y Initial program 62.4%
+-commutative62.4%
*-commutative62.4%
associate-/l*75.9%
fma-define75.9%
*-commutative75.9%
fma-define75.9%
fma-define75.9%
*-commutative75.9%
fma-define75.9%
Simplified75.9%
Taylor expanded in z around inf 66.2%
+-commutative66.2%
Simplified66.2%
Taylor expanded in y around inf 46.8%
if -1.12e23 < y < 1.04999999999999993e89Initial program 72.0%
+-commutative72.0%
*-commutative72.0%
associate-/l*71.9%
fma-define71.9%
*-commutative71.9%
fma-define71.9%
fma-define71.9%
*-commutative71.9%
fma-define71.9%
Simplified71.9%
Taylor expanded in y around 0 78.4%
Final simplification65.8%
(FPCore (x y z) :precision binary64 (if (<= y -6e+82) (* y 0.08333333333333323) (if (<= y 3.55e+93) x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if (y <= -6e+82) {
tmp = y * 0.08333333333333323;
} else if (y <= 3.55e+93) {
tmp = x;
} else {
tmp = y * 0.0692910599291889;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= (-6d+82)) then
tmp = y * 0.08333333333333323d0
else if (y <= 3.55d+93) then
tmp = x
else
tmp = y * 0.0692910599291889d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -6e+82) {
tmp = y * 0.08333333333333323;
} else if (y <= 3.55e+93) {
tmp = x;
} else {
tmp = y * 0.0692910599291889;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -6e+82: tmp = y * 0.08333333333333323 elif y <= 3.55e+93: tmp = x else: tmp = y * 0.0692910599291889 return tmp
function code(x, y, z) tmp = 0.0 if (y <= -6e+82) tmp = Float64(y * 0.08333333333333323); elseif (y <= 3.55e+93) tmp = x; else tmp = Float64(y * 0.0692910599291889); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -6e+82) tmp = y * 0.08333333333333323; elseif (y <= 3.55e+93) tmp = x; else tmp = y * 0.0692910599291889; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -6e+82], N[(y * 0.08333333333333323), $MachinePrecision], If[LessEqual[y, 3.55e+93], x, N[(y * 0.0692910599291889), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+82}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{elif}\;y \leq 3.55 \cdot 10^{+93}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if y < -5.99999999999999978e82Initial program 69.1%
+-commutative69.1%
*-commutative69.1%
associate-/l*82.3%
fma-define82.3%
*-commutative82.3%
fma-define82.3%
fma-define82.3%
*-commutative82.3%
fma-define82.3%
Simplified82.3%
Taylor expanded in x around inf 48.5%
+-commutative48.5%
times-frac57.7%
+-commutative57.7%
+-commutative57.7%
*-commutative57.7%
fma-define57.7%
fma-define57.7%
+-commutative57.7%
+-commutative57.7%
fma-undefine57.7%
fma-define57.7%
Simplified57.7%
Taylor expanded in y around -inf 44.6%
Taylor expanded in z around 0 64.7%
*-commutative64.7%
Simplified64.7%
if -5.99999999999999978e82 < y < 3.5500000000000002e93Initial program 70.3%
+-commutative70.3%
*-commutative70.3%
associate-/l*70.8%
fma-define70.8%
*-commutative70.8%
fma-define70.8%
fma-define70.8%
*-commutative70.8%
fma-define70.8%
Simplified70.8%
Taylor expanded in y around 0 75.1%
if 3.5500000000000002e93 < y Initial program 59.4%
+-commutative59.4%
*-commutative59.4%
associate-/l*75.6%
fma-define75.6%
*-commutative75.6%
fma-define75.6%
fma-define75.6%
*-commutative75.6%
fma-define75.6%
Simplified75.6%
Taylor expanded in z around inf 67.1%
+-commutative67.1%
Simplified67.1%
Taylor expanded in y around inf 50.5%
Final simplification69.0%
(FPCore (x y z) :precision binary64 (if (<= y -1.4e+182) (* y 0.08333333333333323) (+ x (* y 0.0692910599291889))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.4e+182) {
tmp = y * 0.08333333333333323;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= (-1.4d+182)) then
tmp = y * 0.08333333333333323d0
else
tmp = x + (y * 0.0692910599291889d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1.4e+182) {
tmp = y * 0.08333333333333323;
} else {
tmp = x + (y * 0.0692910599291889);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.4e+182: tmp = y * 0.08333333333333323 else: tmp = x + (y * 0.0692910599291889) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.4e+182) tmp = Float64(y * 0.08333333333333323); else tmp = Float64(x + Float64(y * 0.0692910599291889)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.4e+182) tmp = y * 0.08333333333333323; else tmp = x + (y * 0.0692910599291889); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.4e+182], N[(y * 0.08333333333333323), $MachinePrecision], N[(x + N[(y * 0.0692910599291889), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+182}:\\
\;\;\;\;y \cdot 0.08333333333333323\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 0.0692910599291889\\
\end{array}
\end{array}
if y < -1.40000000000000003e182Initial program 69.8%
+-commutative69.8%
*-commutative69.8%
associate-/l*89.9%
fma-define89.9%
*-commutative89.9%
fma-define89.9%
fma-define89.9%
*-commutative89.9%
fma-define89.9%
Simplified89.9%
Taylor expanded in x around inf 36.1%
+-commutative36.1%
times-frac48.7%
+-commutative48.7%
+-commutative48.7%
*-commutative48.7%
fma-define48.7%
fma-define48.7%
+-commutative48.7%
+-commutative48.7%
fma-undefine48.7%
fma-define48.7%
Simplified48.7%
Taylor expanded in y around -inf 36.1%
Taylor expanded in z around 0 73.6%
*-commutative73.6%
Simplified73.6%
if -1.40000000000000003e182 < y Initial program 68.0%
+-commutative68.0%
*-commutative68.0%
associate-/l*72.0%
fma-define72.0%
*-commutative72.0%
fma-define72.0%
fma-define72.0%
*-commutative72.0%
fma-define72.0%
Simplified72.0%
Taylor expanded in z around inf 85.4%
+-commutative85.4%
Simplified85.4%
Final simplification84.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 68.1%
+-commutative68.1%
*-commutative68.1%
associate-/l*73.5%
fma-define73.5%
*-commutative73.5%
fma-define73.5%
fma-define73.5%
*-commutative73.5%
fma-define73.5%
Simplified73.5%
Taylor expanded in y around 0 55.5%
(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 2024091
(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))))