
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ y (/ (* z z) t)))
(t_2
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z))))))
(if (<= z -3e+31)
(+
x
(+ (* y 3.13060547623) (* 0.10203362558171805 (/ t_1 (pow t_2 2.0)))))
(if (<= z 9e+40)
(+
x
(/
y
(/
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)
(fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))))
(+
x
(+ (/ y t_2) (* 0.10203362558171805 (* t_1 9.800690647801265))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y / ((z * z) / t);
double t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z)));
double tmp;
if (z <= -3e+31) {
tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / pow(t_2, 2.0))));
} else if (z <= 9e+40) {
tmp = x + (y / (fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)));
} else {
tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y / Float64(Float64(z * z) / t)) t_2 = Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z)))) tmp = 0.0 if (z <= -3e+31) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(0.10203362558171805 * Float64(t_1 / (t_2 ^ 2.0))))); elseif (z <= 9e+40) tmp = Float64(x + Float64(y / Float64(fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)))); else tmp = Float64(x + Float64(Float64(y / t_2) + Float64(0.10203362558171805 * Float64(t_1 * 9.800690647801265)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3e+31], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 / N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+40], N[(x + N[(y / N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t$95$2), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{z \cdot z}{t}}\\
t_2 := \frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)\\
\mathbf{if}\;z \leq -3 \cdot 10^{+31}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + 0.10203362558171805 \cdot \frac{t_1}{{t_2}^{2}}\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{y}{t_2} + 0.10203362558171805 \cdot \left(t_1 \cdot 9.800690647801265\right)\right)\\
\end{array}
\end{array}
if z < -2.99999999999999989e31Initial program 7.3%
associate-/l*13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
Simplified13.3%
Taylor expanded in z around inf 86.1%
associate-*r/86.1%
metadata-eval86.1%
mul-1-neg86.1%
*-commutative86.1%
unpow286.1%
Simplified86.1%
Taylor expanded in t around 0 83.0%
associate--l+83.0%
associate-*r/83.0%
metadata-eval83.0%
associate-*r/83.0%
metadata-eval83.0%
unpow283.0%
associate-/r*83.0%
associate-/l*97.1%
unpow297.1%
Simplified97.1%
Taylor expanded in z around inf 97.1%
*-commutative97.1%
Simplified97.1%
if -2.99999999999999989e31 < z < 9.00000000000000064e40Initial program 99.7%
associate-/l*99.7%
fma-def99.7%
fma-def99.7%
fma-def99.8%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
Simplified99.7%
if 9.00000000000000064e40 < z Initial program 6.4%
associate-/l*8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
Simplified8.4%
Taylor expanded in z around inf 88.2%
associate-*r/88.2%
metadata-eval88.2%
mul-1-neg88.2%
*-commutative88.2%
unpow288.2%
Simplified88.2%
Taylor expanded in t around 0 81.6%
associate--l+81.6%
associate-*r/81.6%
metadata-eval81.6%
associate-*r/81.6%
metadata-eval81.6%
unpow281.6%
associate-/r*81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Taylor expanded in z around inf 81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ y (/ (* z z) t)))
(t_2
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z))))))
(if (<= z -3.2e+31)
(+
x
(+ (* y 3.13060547623) (* 0.10203362558171805 (/ t_1 (pow t_2 2.0)))))
(if (<= z 8.6e+40)
(+
x
(*
(/
y
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407))))))))
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)))
(+
x
(+ (/ y t_2) (* 0.10203362558171805 (* t_1 9.800690647801265))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y / ((z * z) / t);
double t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z)));
double tmp;
if (z <= -3.2e+31) {
tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / pow(t_2, 2.0))));
} else if (z <= 8.6e+40) {
tmp = x + ((y / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b));
} else {
tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y / Float64(Float64(z * z) / t)) t_2 = Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z)))) tmp = 0.0 if (z <= -3.2e+31) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(0.10203362558171805 * Float64(t_1 / (t_2 ^ 2.0))))); elseif (z <= 8.6e+40) tmp = Float64(x + Float64(Float64(y / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407)))))))) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))); else tmp = Float64(x + Float64(Float64(y / t_2) + Float64(0.10203362558171805 * Float64(t_1 * 9.800690647801265)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e+31], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 / N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+40], N[(x + N[(N[(y / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t$95$2), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{z \cdot z}{t}}\\
t_2 := \frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+31}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + 0.10203362558171805 \cdot \frac{t_1}{{t_2}^{2}}\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)} \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{y}{t_2} + 0.10203362558171805 \cdot \left(t_1 \cdot 9.800690647801265\right)\right)\\
\end{array}
\end{array}
if z < -3.2000000000000001e31Initial program 7.3%
associate-/l*13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
Simplified13.3%
Taylor expanded in z around inf 86.1%
associate-*r/86.1%
metadata-eval86.1%
mul-1-neg86.1%
*-commutative86.1%
unpow286.1%
Simplified86.1%
Taylor expanded in t around 0 83.0%
associate--l+83.0%
associate-*r/83.0%
metadata-eval83.0%
associate-*r/83.0%
metadata-eval83.0%
unpow283.0%
associate-/r*83.0%
associate-/l*97.1%
unpow297.1%
Simplified97.1%
Taylor expanded in z around inf 97.1%
*-commutative97.1%
Simplified97.1%
if -3.2000000000000001e31 < z < 8.6000000000000005e40Initial program 99.7%
associate-*l/99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in y around 0 99.7%
if 8.6000000000000005e40 < z Initial program 6.4%
associate-/l*8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
Simplified8.4%
Taylor expanded in z around inf 88.2%
associate-*r/88.2%
metadata-eval88.2%
mul-1-neg88.2%
*-commutative88.2%
unpow288.2%
Simplified88.2%
Taylor expanded in t around 0 81.6%
associate--l+81.6%
associate-*r/81.6%
metadata-eval81.6%
associate-*r/81.6%
metadata-eval81.6%
unpow281.6%
associate-/r*81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Taylor expanded in z around inf 81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ y (/ (* z z) t)))
(t_2
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z))))))
(if (<= z -1.36e+28)
(+
x
(+ (* y 3.13060547623) (* 0.10203362558171805 (/ t_1 (pow t_2 2.0)))))
(if (<= z 7.6e+40)
(+
x
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)))))
(+
x
(+ (/ y t_2) (* 0.10203362558171805 (* t_1 9.800690647801265))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y / ((z * z) / t);
double t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z)));
double tmp;
if (z <= -1.36e+28) {
tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / pow(t_2, 2.0))));
} else if (z <= 7.6e+40) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721))));
} else {
tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y / Float64(Float64(z * z) / t)) t_2 = Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z)))) tmp = 0.0 if (z <= -1.36e+28) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(0.10203362558171805 * Float64(t_1 / (t_2 ^ 2.0))))); elseif (z <= 7.6e+40) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721))))); else tmp = Float64(x + Float64(Float64(y / t_2) + Float64(0.10203362558171805 * Float64(t_1 * 9.800690647801265)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.36e+28], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 / N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.6e+40], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t$95$2), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{z \cdot z}{t}}\\
t_2 := \frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)\\
\mathbf{if}\;z \leq -1.36 \cdot 10^{+28}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + 0.10203362558171805 \cdot \frac{t_1}{{t_2}^{2}}\right)\\
\mathbf{elif}\;z \leq 7.6 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{y}{t_2} + 0.10203362558171805 \cdot \left(t_1 \cdot 9.800690647801265\right)\right)\\
\end{array}
\end{array}
if z < -1.36e28Initial program 7.3%
associate-/l*13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
Simplified13.3%
Taylor expanded in z around inf 86.1%
associate-*r/86.1%
metadata-eval86.1%
mul-1-neg86.1%
*-commutative86.1%
unpow286.1%
Simplified86.1%
Taylor expanded in t around 0 83.0%
associate--l+83.0%
associate-*r/83.0%
metadata-eval83.0%
associate-*r/83.0%
metadata-eval83.0%
unpow283.0%
associate-/r*83.0%
associate-/l*97.1%
unpow297.1%
Simplified97.1%
Taylor expanded in z around inf 97.1%
*-commutative97.1%
Simplified97.1%
if -1.36e28 < z < 7.60000000000000009e40Initial program 99.7%
expm1-log1p-u99.6%
expm1-udef99.6%
*-commutative99.6%
*-commutative99.6%
*-commutative99.6%
fma-udef99.6%
fma-udef99.6%
Applied egg-rr99.6%
expm1-def99.6%
expm1-log1p99.7%
Simplified99.7%
if 7.60000000000000009e40 < z Initial program 6.4%
associate-/l*8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
Simplified8.4%
Taylor expanded in z around inf 88.2%
associate-*r/88.2%
metadata-eval88.2%
mul-1-neg88.2%
*-commutative88.2%
unpow288.2%
Simplified88.2%
Taylor expanded in t around 0 81.6%
associate--l+81.6%
associate-*r/81.6%
metadata-eval81.6%
associate-*r/81.6%
metadata-eval81.6%
unpow281.6%
associate-/r*81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Taylor expanded in z around inf 81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ y (/ (* z z) t)))
(t_2
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z))))))
(if (<= z -6.3e+28)
(+
x
(+ (* y 3.13060547623) (* 0.10203362558171805 (/ t_1 (pow t_2 2.0)))))
(if (<= z 7.2e+40)
(+
x
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))
(+
x
(+ (/ y t_2) (* 0.10203362558171805 (* t_1 9.800690647801265))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y / ((z * z) / t);
double t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z)));
double tmp;
if (z <= -6.3e+28) {
tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / pow(t_2, 2.0))));
} else if (z <= 7.2e+40) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
} else {
tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y / ((z * z) / t)
t_2 = (3.7269864963038164d0 / z) + (0.31942702700572795d0 - (3.241970391368047d0 / (z * z)))
if (z <= (-6.3d+28)) then
tmp = x + ((y * 3.13060547623d0) + (0.10203362558171805d0 * (t_1 / (t_2 ** 2.0d0))))
else if (z <= 7.2d+40) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
else
tmp = x + ((y / t_2) + (0.10203362558171805d0 * (t_1 * 9.800690647801265d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y / ((z * z) / t);
double t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z)));
double tmp;
if (z <= -6.3e+28) {
tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / Math.pow(t_2, 2.0))));
} else if (z <= 7.2e+40) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
} else {
tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y / ((z * z) / t) t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))) tmp = 0 if z <= -6.3e+28: tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / math.pow(t_2, 2.0)))) elif z <= 7.2e+40: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) else: tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y / Float64(Float64(z * z) / t)) t_2 = Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z)))) tmp = 0.0 if (z <= -6.3e+28) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(0.10203362558171805 * Float64(t_1 / (t_2 ^ 2.0))))); elseif (z <= 7.2e+40) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); else tmp = Float64(x + Float64(Float64(y / t_2) + Float64(0.10203362558171805 * Float64(t_1 * 9.800690647801265)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y / ((z * z) / t); t_2 = (3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))); tmp = 0.0; if (z <= -6.3e+28) tmp = x + ((y * 3.13060547623) + (0.10203362558171805 * (t_1 / (t_2 ^ 2.0)))); elseif (z <= 7.2e+40) tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); else tmp = x + ((y / t_2) + (0.10203362558171805 * (t_1 * 9.800690647801265))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.3e+28], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 / N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e+40], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t$95$2), $MachinePrecision] + N[(0.10203362558171805 * N[(t$95$1 * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{z \cdot z}{t}}\\
t_2 := \frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)\\
\mathbf{if}\;z \leq -6.3 \cdot 10^{+28}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + 0.10203362558171805 \cdot \frac{t_1}{{t_2}^{2}}\right)\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{y}{t_2} + 0.10203362558171805 \cdot \left(t_1 \cdot 9.800690647801265\right)\right)\\
\end{array}
\end{array}
if z < -6.3000000000000001e28Initial program 7.3%
associate-/l*13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
Simplified13.3%
Taylor expanded in z around inf 86.1%
associate-*r/86.1%
metadata-eval86.1%
mul-1-neg86.1%
*-commutative86.1%
unpow286.1%
Simplified86.1%
Taylor expanded in t around 0 83.0%
associate--l+83.0%
associate-*r/83.0%
metadata-eval83.0%
associate-*r/83.0%
metadata-eval83.0%
unpow283.0%
associate-/r*83.0%
associate-/l*97.1%
unpow297.1%
Simplified97.1%
Taylor expanded in z around inf 97.1%
*-commutative97.1%
Simplified97.1%
if -6.3000000000000001e28 < z < 7.19999999999999993e40Initial program 99.7%
if 7.19999999999999993e40 < z Initial program 6.4%
associate-/l*8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
fma-def8.4%
Simplified8.4%
Taylor expanded in z around inf 88.2%
associate-*r/88.2%
metadata-eval88.2%
mul-1-neg88.2%
*-commutative88.2%
unpow288.2%
Simplified88.2%
Taylor expanded in t around 0 81.6%
associate--l+81.6%
associate-*r/81.6%
metadata-eval81.6%
associate-*r/81.6%
metadata-eval81.6%
unpow281.6%
associate-/r*81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Taylor expanded in z around inf 81.6%
associate-/l*100.0%
unpow2100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.42e+27) (not (<= z 7.2e+40)))
(+
x
(+
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z)))))
(* 0.10203362558171805 (* (/ y (/ (* z z) t)) 9.800690647801265))))
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.42e+27) || !(z <= 7.2e+40)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265)));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.42d+27)) .or. (.not. (z <= 7.2d+40))) then
tmp = x + ((y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - (3.241970391368047d0 / (z * z))))) + (0.10203362558171805d0 * ((y / ((z * z) / t)) * 9.800690647801265d0)))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.42e+27) || !(z <= 7.2e+40)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265)));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.42e+27) or not (z <= 7.2e+40): tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265))) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.42e+27) || !(z <= 7.2e+40)) tmp = Float64(x + Float64(Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z))))) + Float64(0.10203362558171805 * Float64(Float64(y / Float64(Float64(z * z) / t)) * 9.800690647801265)))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.42e+27) || ~((z <= 7.2e+40))) tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265))); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.42e+27], N[Not[LessEqual[z, 7.2e+40]], $MachinePrecision]], N[(x + N[(N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.10203362558171805 * N[(N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.42 \cdot 10^{+27} \lor \neg \left(z \leq 7.2 \cdot 10^{+40}\right):\\
\;\;\;\;x + \left(\frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)} + 0.10203362558171805 \cdot \left(\frac{y}{\frac{z \cdot z}{t}} \cdot 9.800690647801265\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -1.4199999999999999e27 or 7.19999999999999993e40 < z Initial program 6.9%
associate-/l*11.1%
fma-def11.1%
fma-def11.1%
fma-def11.1%
fma-def11.1%
fma-def11.1%
fma-def11.1%
fma-def11.1%
Simplified11.1%
Taylor expanded in z around inf 87.0%
associate-*r/87.0%
metadata-eval87.0%
mul-1-neg87.0%
*-commutative87.0%
unpow287.0%
Simplified87.0%
Taylor expanded in t around 0 82.4%
associate--l+82.4%
associate-*r/82.4%
metadata-eval82.4%
associate-*r/82.4%
metadata-eval82.4%
unpow282.4%
associate-/r*82.4%
associate-/l*98.4%
unpow298.4%
Simplified98.4%
Taylor expanded in z around inf 82.4%
associate-/l*98.4%
unpow298.4%
Simplified98.4%
if -1.4199999999999999e27 < z < 7.19999999999999993e40Initial program 99.7%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.75e+21) (not (<= z 2800000000000.0)))
(+
x
(+
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z)))))
(* 0.10203362558171805 (* (/ y (/ (* z z) t)) 9.800690647801265))))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.75e+21) || !(z <= 2800000000000.0)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265)));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-2.75d+21)) .or. (.not. (z <= 2800000000000.0d0))) then
tmp = x + ((y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - (3.241970391368047d0 / (z * z))))) + (0.10203362558171805d0 * ((y / ((z * z) / t)) * 9.800690647801265d0)))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.75e+21) || !(z <= 2800000000000.0)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265)));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.75e+21) or not (z <= 2800000000000.0): tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265))) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.75e+21) || !(z <= 2800000000000.0)) tmp = Float64(x + Float64(Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z))))) + Float64(0.10203362558171805 * Float64(Float64(y / Float64(Float64(z * z) / t)) * 9.800690647801265)))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.75e+21) || ~((z <= 2800000000000.0))) tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265))); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.75e+21], N[Not[LessEqual[z, 2800000000000.0]], $MachinePrecision]], N[(x + N[(N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.10203362558171805 * N[(N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.75 \cdot 10^{+21} \lor \neg \left(z \leq 2800000000000\right):\\
\;\;\;\;x + \left(\frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)} + 0.10203362558171805 \cdot \left(\frac{y}{\frac{z \cdot z}{t}} \cdot 9.800690647801265\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -2.75e21 or 2.8e12 < z Initial program 10.1%
associate-/l*14.2%
fma-def14.2%
fma-def14.2%
fma-def14.2%
fma-def14.2%
fma-def14.2%
fma-def14.2%
fma-def14.2%
Simplified14.2%
Taylor expanded in z around inf 87.2%
associate-*r/87.2%
metadata-eval87.2%
mul-1-neg87.2%
*-commutative87.2%
unpow287.2%
Simplified87.2%
Taylor expanded in t around 0 82.7%
associate--l+82.7%
associate-*r/82.7%
metadata-eval82.7%
associate-*r/82.7%
metadata-eval82.7%
unpow282.7%
associate-/r*82.7%
associate-/l*98.1%
unpow298.1%
Simplified98.1%
Taylor expanded in z around inf 82.7%
associate-/l*98.1%
unpow298.1%
Simplified98.1%
if -2.75e21 < z < 2.8e12Initial program 99.7%
Taylor expanded in z around 0 99.7%
*-commutative96.0%
Simplified99.7%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -0.42) (not (<= z 8000000000.0)))
(+
x
(+
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z)))))
(* 0.10203362558171805 (* 9.800690647801265 (* t (/ y (* z z)))))))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 8000000000.0)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * (9.800690647801265 * (t * (y / (z * z))))));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-0.42d0)) .or. (.not. (z <= 8000000000.0d0))) then
tmp = x + ((y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - (3.241970391368047d0 / (z * z))))) + (0.10203362558171805d0 * (9.800690647801265d0 * (t * (y / (z * z))))))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 8000000000.0)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * (9.800690647801265 * (t * (y / (z * z))))));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.42) or not (z <= 8000000000.0): tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * (9.800690647801265 * (t * (y / (z * z)))))) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.42) || !(z <= 8000000000.0)) tmp = Float64(x + Float64(Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z))))) + Float64(0.10203362558171805 * Float64(9.800690647801265 * Float64(t * Float64(y / Float64(z * z))))))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.42) || ~((z <= 8000000000.0))) tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * (9.800690647801265 * (t * (y / (z * z)))))); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.42], N[Not[LessEqual[z, 8000000000.0]], $MachinePrecision]], N[(x + N[(N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.10203362558171805 * N[(9.800690647801265 * N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.42 \lor \neg \left(z \leq 8000000000\right):\\
\;\;\;\;x + \left(\frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)} + 0.10203362558171805 \cdot \left(9.800690647801265 \cdot \left(t \cdot \frac{y}{z \cdot z}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -0.419999999999999984 or 8e9 < z Initial program 13.8%
associate-/l*17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
Simplified17.8%
Taylor expanded in z around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
mul-1-neg85.3%
*-commutative85.3%
unpow285.3%
Simplified85.3%
Taylor expanded in t around 0 82.2%
associate--l+82.2%
associate-*r/82.2%
metadata-eval82.2%
associate-*r/82.2%
metadata-eval82.2%
unpow282.2%
associate-/r*82.2%
associate-/l*97.0%
unpow297.0%
Simplified97.0%
Taylor expanded in z around inf 82.2%
associate-*l/95.3%
unpow295.3%
*-commutative95.3%
Simplified95.3%
if -0.419999999999999984 < z < 8e9Initial program 99.7%
Taylor expanded in z around 0 98.0%
*-commutative98.0%
Simplified98.0%
Taylor expanded in z around 0 98.0%
*-commutative98.0%
Simplified98.0%
Final simplification96.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -0.42) (not (<= z 620000000.0)))
(+
x
(+
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ 3.241970391368047 (* z z)))))
(* 0.10203362558171805 (* (/ y (/ (* z z) t)) 9.800690647801265))))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 620000000.0)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265)));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-0.42d0)) .or. (.not. (z <= 620000000.0d0))) then
tmp = x + ((y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - (3.241970391368047d0 / (z * z))))) + (0.10203362558171805d0 * ((y / ((z * z) / t)) * 9.800690647801265d0)))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 620000000.0)) {
tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265)));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.42) or not (z <= 620000000.0): tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265))) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.42) || !(z <= 620000000.0)) tmp = Float64(x + Float64(Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(3.241970391368047 / Float64(z * z))))) + Float64(0.10203362558171805 * Float64(Float64(y / Float64(Float64(z * z) / t)) * 9.800690647801265)))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.42) || ~((z <= 620000000.0))) tmp = x + ((y / ((3.7269864963038164 / z) + (0.31942702700572795 - (3.241970391368047 / (z * z))))) + (0.10203362558171805 * ((y / ((z * z) / t)) * 9.800690647801265))); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.42], N[Not[LessEqual[z, 620000000.0]], $MachinePrecision]], N[(x + N[(N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(3.241970391368047 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.10203362558171805 * N[(N[(y / N[(N[(z * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] * 9.800690647801265), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.42 \lor \neg \left(z \leq 620000000\right):\\
\;\;\;\;x + \left(\frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{3.241970391368047}{z \cdot z}\right)} + 0.10203362558171805 \cdot \left(\frac{y}{\frac{z \cdot z}{t}} \cdot 9.800690647801265\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -0.419999999999999984 or 6.2e8 < z Initial program 13.8%
associate-/l*17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
fma-def17.8%
Simplified17.8%
Taylor expanded in z around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
mul-1-neg85.3%
*-commutative85.3%
unpow285.3%
Simplified85.3%
Taylor expanded in t around 0 82.2%
associate--l+82.2%
associate-*r/82.2%
metadata-eval82.2%
associate-*r/82.2%
metadata-eval82.2%
unpow282.2%
associate-/r*82.2%
associate-/l*97.0%
unpow297.0%
Simplified97.0%
Taylor expanded in z around inf 82.2%
associate-/l*97.0%
unpow297.0%
Simplified97.0%
if -0.419999999999999984 < z < 6.2e8Initial program 99.7%
Taylor expanded in z around 0 98.0%
*-commutative98.0%
Simplified98.0%
Taylor expanded in z around 0 98.0%
*-commutative98.0%
Simplified98.0%
Final simplification97.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3.95e+31)
(+ x (/ y 0.31942702700572795))
(if (<= z 6.5e+14)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
0.607771387771))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.95e+31) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 6.5e+14) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / 0.607771387771);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-3.95d+31)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 6.5d+14) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / 0.607771387771d0)
else
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.95e+31) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 6.5e+14) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / 0.607771387771);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3.95e+31: tmp = x + (y / 0.31942702700572795) elif z <= 6.5e+14: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / 0.607771387771) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.95e+31) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 6.5e+14) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / 0.607771387771)); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3.95e+31) tmp = x + (y / 0.31942702700572795); elseif (z <= 6.5e+14) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / 0.607771387771); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.95e+31], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+14], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.95 \cdot 10^{+31}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+14}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -3.95000000000000015e31Initial program 7.3%
associate-/l*13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
fma-def13.4%
Simplified13.4%
Taylor expanded in z around inf 87.7%
if -3.95000000000000015e31 < z < 6.5e14Initial program 99.1%
Taylor expanded in z around 0 95.3%
*-commutative95.3%
Simplified95.3%
Taylor expanded in z around 0 95.3%
*-commutative95.3%
Simplified95.3%
Taylor expanded in z around 0 95.9%
if 6.5e14 < z Initial program 13.4%
associate-*l/15.2%
*-commutative15.2%
fma-def15.2%
*-commutative15.2%
fma-def15.2%
*-commutative15.2%
fma-def15.2%
*-commutative15.2%
fma-def15.2%
Simplified15.2%
Taylor expanded in z around -inf 90.4%
+-commutative90.4%
mul-1-neg90.4%
unsub-neg90.4%
*-commutative90.4%
distribute-rgt-out--90.4%
metadata-eval90.4%
Simplified90.4%
Final simplification92.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.55e+25)
(+ x (/ y 0.31942702700572795))
(if (<= z 1800.0)
(+
x
(*
y
(+
(* z (- (* a 1.6453555072203998) (* b 32.324150453290734)))
(* b 1.6453555072203998))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.55e+25) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 1800.0) {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1.55d+25)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 1800.0d0) then
tmp = x + (y * ((z * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0))) + (b * 1.6453555072203998d0)))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.55e+25) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 1800.0) {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.55e+25: tmp = x + (y / 0.31942702700572795) elif z <= 1800.0: tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.55e+25) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 1800.0) tmp = Float64(x + Float64(y * Float64(Float64(z * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734))) + Float64(b * 1.6453555072203998)))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.55e+25) tmp = x + (y / 0.31942702700572795); elseif (z <= 1800.0) tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.55e+25], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1800.0], N[(x + N[(y * N[(N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+25}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 1800:\\
\;\;\;\;x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right) + b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.5499999999999999e25Initial program 7.3%
associate-/l*13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
Simplified13.3%
Taylor expanded in z around inf 86.3%
if -1.5499999999999999e25 < z < 1800Initial program 99.7%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 75.0%
Taylor expanded in y around 0 90.0%
if 1800 < z Initial program 15.0%
associate-*l/16.8%
*-commutative16.8%
fma-def16.8%
*-commutative16.8%
fma-def16.8%
*-commutative16.8%
fma-def16.8%
*-commutative16.8%
fma-def16.8%
Simplified16.8%
Taylor expanded in z around -inf 88.7%
+-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
*-commutative88.7%
distribute-rgt-out--88.7%
metadata-eval88.7%
Simplified88.7%
Final simplification88.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -150000000000.0) (not (<= z 9e-9))) (+ x (/ y 0.31942702700572795)) (+ x (* y (* b (+ 1.6453555072203998 (* z -32.324150453290734)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -150000000000.0) || !(z <= 9e-9)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-150000000000.0d0)) .or. (.not. (z <= 9d-9))) then
tmp = x + (y / 0.31942702700572795d0)
else
tmp = x + (y * (b * (1.6453555072203998d0 + (z * (-32.324150453290734d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -150000000000.0) || !(z <= 9e-9)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -150000000000.0) or not (z <= 9e-9): tmp = x + (y / 0.31942702700572795) else: tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -150000000000.0) || !(z <= 9e-9)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = Float64(x + Float64(y * Float64(b * Float64(1.6453555072203998 + Float64(z * -32.324150453290734))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -150000000000.0) || ~((z <= 9e-9))) tmp = x + (y / 0.31942702700572795); else tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -150000000000.0], N[Not[LessEqual[z, 9e-9]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(b * N[(1.6453555072203998 + N[(z * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -150000000000 \lor \neg \left(z \leq 9 \cdot 10^{-9}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot \left(1.6453555072203998 + z \cdot -32.324150453290734\right)\right)\\
\end{array}
\end{array}
if z < -1.5e11 or 8.99999999999999953e-9 < z Initial program 14.6%
associate-/l*18.5%
fma-def18.5%
fma-def18.5%
fma-def18.5%
fma-def18.5%
fma-def18.5%
fma-def18.5%
fma-def18.5%
Simplified18.5%
Taylor expanded in z around inf 85.6%
if -1.5e11 < z < 8.99999999999999953e-9Initial program 99.7%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 74.7%
Taylor expanded in b around inf 76.9%
Taylor expanded in y around 0 76.9%
*-commutative76.9%
Simplified76.9%
Final simplification81.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.1e+14)
(+ x (/ y 0.31942702700572795))
(if (<= z 5.2e-27)
(+ x (* y (* b (+ 1.6453555072203998 (* z -32.324150453290734)))))
(+ x (+ (* y 3.13060547623) (* -36.52704169880642 (/ y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.1e+14) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 5.2e-27) {
tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734))));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-4.1d+14)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 5.2d-27) then
tmp = x + (y * (b * (1.6453555072203998d0 + (z * (-32.324150453290734d0)))))
else
tmp = x + ((y * 3.13060547623d0) + ((-36.52704169880642d0) * (y / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.1e+14) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 5.2e-27) {
tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734))));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -4.1e+14: tmp = x + (y / 0.31942702700572795) elif z <= 5.2e-27: tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734)))) else: tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -4.1e+14) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 5.2e-27) tmp = Float64(x + Float64(y * Float64(b * Float64(1.6453555072203998 + Float64(z * -32.324150453290734))))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(-36.52704169880642 * Float64(y / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -4.1e+14) tmp = x + (y / 0.31942702700572795); elseif (z <= 5.2e-27) tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734)))); else tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.1e+14], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-27], N[(x + N[(y * N[(b * N[(1.6453555072203998 + N[(z * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.1 \cdot 10^{+14}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-27}:\\
\;\;\;\;x + y \cdot \left(b \cdot \left(1.6453555072203998 + z \cdot -32.324150453290734\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + -36.52704169880642 \cdot \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -4.1e14Initial program 10.2%
associate-/l*16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
Simplified16.0%
Taylor expanded in z around inf 85.3%
if -4.1e14 < z < 5.20000000000000034e-27Initial program 99.7%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 75.0%
Taylor expanded in b around inf 77.3%
Taylor expanded in y around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 5.20000000000000034e-27 < z Initial program 27.1%
associate-/l*28.7%
fma-def28.7%
fma-def28.7%
fma-def28.8%
fma-def28.8%
fma-def28.8%
fma-def28.8%
fma-def28.8%
Simplified28.8%
Taylor expanded in z around inf 82.6%
associate-*r/82.6%
metadata-eval82.6%
mul-1-neg82.6%
*-commutative82.6%
unpow282.6%
Simplified82.6%
Taylor expanded in z around inf 84.3%
Final simplification81.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.3e+14)
(+ x (/ y 0.31942702700572795))
(if (<= z 5.2e-27)
(+ x (* y (* b (+ 1.6453555072203998 (* z -32.324150453290734)))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3e+14) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 5.2e-27) {
tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-2.3d+14)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 5.2d-27) then
tmp = x + (y * (b * (1.6453555072203998d0 + (z * (-32.324150453290734d0)))))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3e+14) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 5.2e-27) {
tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.3e+14: tmp = x + (y / 0.31942702700572795) elif z <= 5.2e-27: tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734)))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.3e+14) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 5.2e-27) tmp = Float64(x + Float64(y * Float64(b * Float64(1.6453555072203998 + Float64(z * -32.324150453290734))))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.3e+14) tmp = x + (y / 0.31942702700572795); elseif (z <= 5.2e-27) tmp = x + (y * (b * (1.6453555072203998 + (z * -32.324150453290734)))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.3e+14], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-27], N[(x + N[(y * N[(b * N[(1.6453555072203998 + N[(z * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+14}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-27}:\\
\;\;\;\;x + y \cdot \left(b \cdot \left(1.6453555072203998 + z \cdot -32.324150453290734\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -2.3e14Initial program 10.2%
associate-/l*16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
Simplified16.0%
Taylor expanded in z around inf 85.3%
if -2.3e14 < z < 5.20000000000000034e-27Initial program 99.7%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 75.0%
Taylor expanded in b around inf 77.3%
Taylor expanded in y around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 5.20000000000000034e-27 < z Initial program 27.1%
associate-*l/28.7%
*-commutative28.7%
fma-def28.7%
*-commutative28.7%
fma-def28.7%
*-commutative28.7%
fma-def28.7%
*-commutative28.7%
fma-def28.7%
Simplified28.7%
Taylor expanded in z around -inf 85.9%
+-commutative85.9%
mul-1-neg85.9%
unsub-neg85.9%
*-commutative85.9%
distribute-rgt-out--85.9%
metadata-eval85.9%
Simplified85.9%
Final simplification81.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -9e+20)
(+ x (/ y 0.31942702700572795))
(if (<= z 8.8e+15)
(+ x (/ (* y (+ b (* z a))) 0.607771387771))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -9e+20) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 8.8e+15) {
tmp = x + ((y * (b + (z * a))) / 0.607771387771);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-9d+20)) then
tmp = x + (y / 0.31942702700572795d0)
else if (z <= 8.8d+15) then
tmp = x + ((y * (b + (z * a))) / 0.607771387771d0)
else
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -9e+20) {
tmp = x + (y / 0.31942702700572795);
} else if (z <= 8.8e+15) {
tmp = x + ((y * (b + (z * a))) / 0.607771387771);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -9e+20: tmp = x + (y / 0.31942702700572795) elif z <= 8.8e+15: tmp = x + ((y * (b + (z * a))) / 0.607771387771) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -9e+20) tmp = Float64(x + Float64(y / 0.31942702700572795)); elseif (z <= 8.8e+15) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / 0.607771387771)); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -9e+20) tmp = x + (y / 0.31942702700572795); elseif (z <= 8.8e+15) tmp = x + ((y * (b + (z * a))) / 0.607771387771); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -9e+20], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.8e+15], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{+15}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -9e20Initial program 7.3%
associate-/l*13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
fma-def13.3%
Simplified13.3%
Taylor expanded in z around inf 86.3%
if -9e20 < z < 8.8e15Initial program 99.7%
Taylor expanded in z around 0 96.0%
*-commutative96.0%
Simplified96.0%
Taylor expanded in z around 0 87.5%
+-commutative87.5%
associate-*r*83.1%
*-commutative83.1%
associate-*r*87.9%
distribute-lft-out88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in z around 0 89.2%
if 8.8e15 < z Initial program 13.4%
associate-*l/15.2%
*-commutative15.2%
fma-def15.2%
*-commutative15.2%
fma-def15.2%
*-commutative15.2%
fma-def15.2%
*-commutative15.2%
fma-def15.2%
Simplified15.2%
Taylor expanded in z around -inf 90.4%
+-commutative90.4%
mul-1-neg90.4%
unsub-neg90.4%
*-commutative90.4%
distribute-rgt-out--90.4%
metadata-eval90.4%
Simplified90.4%
Final simplification88.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.55e+14) (not (<= z 105000000000.0))) (+ x (/ y 0.31942702700572795)) (+ x (* 1.6453555072203998 (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.55e+14) || !(z <= 105000000000.0)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.55d+14)) .or. (.not. (z <= 105000000000.0d0))) then
tmp = x + (y / 0.31942702700572795d0)
else
tmp = x + (1.6453555072203998d0 * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.55e+14) || !(z <= 105000000000.0)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.55e+14) or not (z <= 105000000000.0): tmp = x + (y / 0.31942702700572795) else: tmp = x + (1.6453555072203998 * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.55e+14) || !(z <= 105000000000.0)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.55e+14) || ~((z <= 105000000000.0))) tmp = x + (y / 0.31942702700572795); else tmp = x + (1.6453555072203998 * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.55e+14], N[Not[LessEqual[z, 105000000000.0]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+14} \lor \neg \left(z \leq 105000000000\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\end{array}
if z < -1.55e14 or 1.05e11 < z Initial program 11.7%
associate-/l*15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
Simplified15.7%
Taylor expanded in z around inf 86.7%
if -1.55e14 < z < 1.05e11Initial program 99.7%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 76.1%
Final simplification80.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.5e+15) (not (<= z 6.5e+16))) (+ x (/ y 0.31942702700572795)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.5e+15) || !(z <= 6.5e+16)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-2.5d+15)) .or. (.not. (z <= 6.5d+16))) then
tmp = x + (y / 0.31942702700572795d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.5e+15) || !(z <= 6.5e+16)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.5e+15) or not (z <= 6.5e+16): tmp = x + (y / 0.31942702700572795) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.5e+15) || !(z <= 6.5e+16)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.5e+15) || ~((z <= 6.5e+16))) tmp = x + (y / 0.31942702700572795); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.5e+15], N[Not[LessEqual[z, 6.5e+16]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+15} \lor \neg \left(z \leq 6.5 \cdot 10^{+16}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.5e15 or 6.5e16 < z Initial program 11.7%
associate-/l*15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
fma-def15.7%
Simplified15.7%
Taylor expanded in z around inf 86.7%
if -2.5e15 < z < 6.5e16Initial program 99.7%
Taylor expanded in z around 0 96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in z around 0 88.1%
+-commutative88.1%
associate-*r*83.6%
*-commutative83.6%
associate-*r*88.5%
distribute-lft-out89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in z around 0 76.1%
associate-*r*76.2%
*-commutative76.2%
Simplified76.2%
Final simplification81.0%
(FPCore (x y z t a b) :precision binary64 (+ x (/ y 0.31942702700572795)))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y / 0.31942702700572795);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + (y / 0.31942702700572795d0)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y / 0.31942702700572795);
}
def code(x, y, z, t, a, b): return x + (y / 0.31942702700572795)
function code(x, y, z, t, a, b) return Float64(x + Float64(y / 0.31942702700572795)) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y / 0.31942702700572795); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{0.31942702700572795}
\end{array}
Initial program 59.5%
associate-/l*61.3%
fma-def61.3%
fma-def61.3%
fma-def61.3%
fma-def61.3%
fma-def61.3%
fma-def61.3%
fma-def61.3%
Simplified61.3%
Taylor expanded in z around inf 60.6%
Final simplification60.6%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 59.5%
Taylor expanded in z around 0 56.4%
*-commutative56.4%
Simplified56.4%
Taylor expanded in z around 0 61.4%
+-commutative61.4%
associate-*r*60.5%
*-commutative60.5%
associate-*r*62.4%
distribute-lft-out62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in z around inf 39.0%
*-commutative39.0%
Simplified39.0%
Taylor expanded in x around inf 42.2%
Final simplification42.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023196
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:herbie-target
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))