
(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
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771)))
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
y
(/ (fma z (fma z (* z (fma z 3.13060547623 11.1667541262)) a) b) t_1)
(fma y (* t (/ (* z z) t_1)) x))
(+
(fma y 3.13060547623 x)
(-
(fma y (/ 11.1667541262 z) (* t (/ y (* z z))))
(fma
y
(/ 47.69379582500642 z)
(fma
y
(/ 98.5170599679272 (* z z))
(/ (* y -556.47806218377) (* z z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771);
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, (z * fma(z, 3.13060547623, 11.1667541262)), a), b) / t_1), fma(y, (t * ((z * z) / t_1)), x));
} else {
tmp = fma(y, 3.13060547623, x) + (fma(y, (11.1667541262 / z), (t * (y / (z * z)))) - fma(y, (47.69379582500642 / z), fma(y, (98.5170599679272 / (z * z)), ((y * -556.47806218377) / (z * z)))));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, Float64(z * fma(z, 3.13060547623, 11.1667541262)), a), b) / t_1), fma(y, Float64(t * Float64(Float64(z * z) / t_1)), x)); else tmp = Float64(fma(y, 3.13060547623, x) + Float64(fma(y, Float64(11.1667541262 / z), Float64(t * Float64(y / Float64(z * z)))) - fma(y, Float64(47.69379582500642 / z), fma(y, Float64(98.5170599679272 / Float64(z * z)), Float64(Float64(y * -556.47806218377) / Float64(z * z)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(y * N[(t * N[(N[(z * z), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(N[(y * 3.13060547623 + x), $MachinePrecision] + N[(N[(y * N[(11.1667541262 / z), $MachinePrecision] + N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(47.69379582500642 / z), $MachinePrecision] + N[(y * N[(98.5170599679272 / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * -556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)\\
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, z \cdot \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), a\right), b\right)}{t\_1}, \mathsf{fma}\left(y, t \cdot \frac{z \cdot z}{t\_1}, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right) + \left(\mathsf{fma}\left(y, \frac{11.1667541262}{z}, t \cdot \frac{y}{z \cdot z}\right) - \mathsf{fma}\left(y, \frac{47.69379582500642}{z}, \mathsf{fma}\left(y, \frac{98.5170599679272}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 90.4%
Taylor expanded in t around 0
Simplified97.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
Simplified99.9%
Final simplification98.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(*
y
(fma
z
(fma
z
(* t 1.6453555072203998)
(fma 1.6453555072203998 a (* b -32.324150453290734)))
(* b 1.6453555072203998))))
(t_2
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_2 -1e+161)
t_1
(if (<= t_2 1e+98)
(fma
z
(* y (fma a 1.6453555072203998 (* b -32.324150453290734)))
(fma y (* b 1.6453555072203998) x))
(if (<= t_2 INFINITY) t_1 (fma y 3.13060547623 x))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * fma(z, fma(z, (t * 1.6453555072203998), fma(1.6453555072203998, a, (b * -32.324150453290734))), (b * 1.6453555072203998));
double t_2 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_2 <= -1e+161) {
tmp = t_1;
} else if (t_2 <= 1e+98) {
tmp = fma(z, (y * fma(a, 1.6453555072203998, (b * -32.324150453290734))), fma(y, (b * 1.6453555072203998), x));
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y * fma(z, fma(z, Float64(t * 1.6453555072203998), fma(1.6453555072203998, a, Float64(b * -32.324150453290734))), Float64(b * 1.6453555072203998))) t_2 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_2 <= -1e+161) tmp = t_1; elseif (t_2 <= 1e+98) tmp = fma(z, Float64(y * fma(a, 1.6453555072203998, Float64(b * -32.324150453290734))), fma(y, Float64(b * 1.6453555072203998), x)); elseif (t_2 <= Inf) tmp = t_1; else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(z * N[(z * N[(t * 1.6453555072203998), $MachinePrecision] + N[(1.6453555072203998 * a + N[(b * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+161], t$95$1, If[LessEqual[t$95$2, 1e+98], N[(z * N[(y * N[(a * 1.6453555072203998 + N[(b * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(b * 1.6453555072203998), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], t$95$1, N[(y * 3.13060547623 + x), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, t \cdot 1.6453555072203998, \mathsf{fma}\left(1.6453555072203998, a, b \cdot -32.324150453290734\right)\right), b \cdot 1.6453555072203998\right)\\
t_2 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{+98}:\\
\;\;\;\;\mathsf{fma}\left(z, y \cdot \mathsf{fma}\left(a, 1.6453555072203998, b \cdot -32.324150453290734\right), \mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)\right)\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -1e161 or 9.99999999999999998e97 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 77.7%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Simplified82.0%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f64N/A
Simplified70.2%
Taylor expanded in t around inf
lower-*.f6470.1
Simplified70.1%
if -1e161 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 9.99999999999999998e97Initial program 99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6483.2
Simplified83.2%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6497.1
Simplified97.1%
Final simplification85.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 -1e+144)
(* 1.6453555072203998 (* y b))
(if (<= t_1 2e+57)
x
(if (<= t_1 INFINITY)
(* b (* y 1.6453555072203998))
(fma y 3.13060547623 x))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= -1e+144) {
tmp = 1.6453555072203998 * (y * b);
} else if (t_1 <= 2e+57) {
tmp = x;
} else if (t_1 <= ((double) INFINITY)) {
tmp = b * (y * 1.6453555072203998);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= -1e+144) tmp = Float64(1.6453555072203998 * Float64(y * b)); elseif (t_1 <= 2e+57) tmp = x; elseif (t_1 <= Inf) tmp = Float64(b * Float64(y * 1.6453555072203998)); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+144], N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+57], x, If[LessEqual[t$95$1, Infinity], N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+144}:\\
\;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+57}:\\
\;\;\;\;x\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -1.00000000000000002e144Initial program 77.9%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Simplified87.2%
Taylor expanded in b around inf
lower-/.f64N/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f6462.8
Simplified62.8%
Taylor expanded in z around inf
cube-multN/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f6462.8
Simplified62.8%
Taylor expanded in z around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6462.5
Simplified62.5%
if -1.00000000000000002e144 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 2.0000000000000001e57Initial program 99.8%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6465.0
Simplified65.0%
Taylor expanded in x around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
metadata-evalN/A
lower-fma.f64N/A
lower-/.f64N/A
mul-1-negN/A
lower-neg.f6465.0
Simplified65.0%
Taylor expanded in y around 0
Simplified65.9%
distribute-rgt-neg-outN/A
neg-mul-1N/A
remove-double-neg65.9
Applied egg-rr65.9%
if 2.0000000000000001e57 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 80.8%
Taylor expanded in z around 0
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6461.3
Simplified61.3%
Taylor expanded in b around inf
lower-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6456.6
Simplified56.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f6446.7
Simplified46.7%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6497.1
Simplified97.1%
Final simplification75.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 1.6453555072203998 (* y b)))
(t_2
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_2 -1e+144)
t_1
(if (<= t_2 2e+57)
x
(if (<= t_2 INFINITY) t_1 (fma y 3.13060547623 x))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.6453555072203998 * (y * b);
double t_2 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_2 <= -1e+144) {
tmp = t_1;
} else if (t_2 <= 2e+57) {
tmp = x;
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(1.6453555072203998 * Float64(y * b)) t_2 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_2 <= -1e+144) tmp = t_1; elseif (t_2 <= 2e+57) tmp = x; elseif (t_2 <= Inf) tmp = t_1; else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+144], t$95$1, If[LessEqual[t$95$2, 2e+57], x, If[LessEqual[t$95$2, Infinity], t$95$1, N[(y * 3.13060547623 + x), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\
t_2 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+144}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+57}:\\
\;\;\;\;x\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -1.00000000000000002e144 or 2.0000000000000001e57 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 79.5%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Simplified80.8%
Taylor expanded in b around inf
lower-/.f64N/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f6454.3
Simplified54.3%
Taylor expanded in z around inf
cube-multN/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f6454.3
Simplified54.3%
Taylor expanded in z around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6453.6
Simplified53.6%
if -1.00000000000000002e144 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 2.0000000000000001e57Initial program 99.8%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6465.0
Simplified65.0%
Taylor expanded in x around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
metadata-evalN/A
lower-fma.f64N/A
lower-/.f64N/A
mul-1-negN/A
lower-neg.f6465.0
Simplified65.0%
Taylor expanded in y around 0
Simplified65.9%
distribute-rgt-neg-outN/A
neg-mul-1N/A
remove-double-neg65.9
Applied egg-rr65.9%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6497.1
Simplified97.1%
Final simplification75.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771)))
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
y
(/ (fma z (fma z (* z (fma z 3.13060547623 11.1667541262)) a) b) t_1)
(fma y (* t (/ (* z z) t_1)) x))
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771);
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, (z * fma(z, 3.13060547623, 11.1667541262)), a), b) / t_1), fma(y, (t * ((z * z) / t_1)), x));
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, Float64(z * fma(z, 3.13060547623, 11.1667541262)), a), b) / t_1), fma(y, Float64(t * Float64(Float64(z * z) / t_1)), x)); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(y * N[(t * N[(N[(z * z), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)\\
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, z \cdot \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), a\right), b\right)}{t\_1}, \mathsf{fma}\left(y, t \cdot \frac{z \cdot z}{t\_1}, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 90.4%
Taylor expanded in t around 0
Simplified97.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6497.1
Simplified97.1%
Final simplification97.5%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(/
1.0
(/
1.0
(fma
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/
y
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)))
(fma y 3.13060547623 x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = 1.0 / (1.0 / fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x));
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(1.0 / Float64(1.0 / fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x))); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(1.0 / N[(1.0 / N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\frac{1}{\frac{1}{\mathsf{fma}\left(\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), \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 90.4%
Applied egg-rr91.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6497.1
Simplified97.1%
Final simplification93.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3.8e+46)
(fma y 3.13060547623 x)
(if (<= z 1.08e+33)
(fma
(/
1.0
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
(* y (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b))
x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.8e+46) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 1.08e+33) {
tmp = fma((1.0 / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), (y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.8e+46) tmp = fma(y, 3.13060547623, x); elseif (z <= 1.08e+33) tmp = fma(Float64(1.0 / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), Float64(y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.8e+46], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 1.08e+33], N[(N[(1.0 / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] * N[(y * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+46}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, y \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), x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -3.7999999999999999e46 or 1.08000000000000005e33 < z Initial program 8.4%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6492.5
Simplified92.5%
if -3.7999999999999999e46 < z < 1.08000000000000005e33Initial program 96.9%
Applied egg-rr96.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.2e+25)
(fma y 3.13060547623 x)
(if (<= z 6.8e+32)
(+
x
(/
(* y (fma z (fma z t a) b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.2e+25) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 6.8e+32) {
tmp = x + ((y * fma(z, fma(z, t, a), b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.2e+25) tmp = fma(y, 3.13060547623, x); elseif (z <= 6.8e+32) tmp = Float64(x + Float64(Float64(y * fma(z, fma(z, t, a), b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.2e+25], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 6.8e+32], N[(x + N[(N[(y * N[(z * N[(z * t + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+25}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+32}:\\
\;\;\;\;x + \frac{y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, t, a\right), b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -6.1999999999999996e25 or 6.79999999999999957e32 < z Initial program 11.3%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6491.2
Simplified91.2%
if -6.1999999999999996e25 < z < 6.79999999999999957e32Initial program 96.8%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f6496.1
Simplified96.1%
Final simplification93.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.2e+16)
(fma y 3.13060547623 x)
(if (<= z 1.3e+17)
(fma
y
(/
(fma (fma z (fma z 3.13060547623 11.1667541262) t) (* z z) b)
0.607771387771)
x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.2e+16) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 1.3e+17) {
tmp = fma(y, (fma(fma(z, fma(z, 3.13060547623, 11.1667541262), t), (z * z), b) / 0.607771387771), x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.2e+16) tmp = fma(y, 3.13060547623, x); elseif (z <= 1.3e+17) tmp = fma(y, Float64(fma(fma(z, fma(z, 3.13060547623, 11.1667541262), t), Float64(z * z), b) / 0.607771387771), x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.2e+16], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 1.3e+17], N[(y * N[(N[(N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] * N[(z * z), $MachinePrecision] + b), $MachinePrecision] / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), z \cdot z, b\right)}{0.607771387771}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -6.2e16 or 1.3e17 < z Initial program 13.3%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6489.9
Simplified89.9%
if -6.2e16 < z < 1.3e17Initial program 96.7%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Simplified84.6%
Taylor expanded in z around 0
Simplified83.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.3e+16)
(fma y 3.13060547623 x)
(if (<= z 7.5e+17)
(fma
y
(fma
z
(fma
z
(fma 1.6453555072203998 t (* b 549.8376187179895))
(* b -32.324150453290734))
(* b 1.6453555072203998))
x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.3e+16) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 7.5e+17) {
tmp = fma(y, fma(z, fma(z, fma(1.6453555072203998, t, (b * 549.8376187179895)), (b * -32.324150453290734)), (b * 1.6453555072203998)), x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.3e+16) tmp = fma(y, 3.13060547623, x); elseif (z <= 7.5e+17) tmp = fma(y, fma(z, fma(z, fma(1.6453555072203998, t, Float64(b * 549.8376187179895)), Float64(b * -32.324150453290734)), Float64(b * 1.6453555072203998)), x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.3e+16], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 7.5e+17], N[(y * N[(z * N[(z * N[(1.6453555072203998 * t + N[(b * 549.8376187179895), $MachinePrecision]), $MachinePrecision] + N[(b * -32.324150453290734), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.3 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(1.6453555072203998, t, b \cdot 549.8376187179895\right), b \cdot -32.324150453290734\right), b \cdot 1.6453555072203998\right), x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -6.3e16 or 7.5e17 < z Initial program 13.3%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6489.9
Simplified89.9%
if -6.3e16 < z < 7.5e17Initial program 96.7%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Simplified84.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/A
sub-negN/A
lower-fma.f64N/A
distribute-rgt-outN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
lower-*.f64N/A
lower-*.f6482.4
Simplified82.4%
Final simplification86.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1e+19)
(fma y 3.13060547623 x)
(if (<= z 3.4e-296)
(fma
z
(* y (fma a 1.6453555072203998 (* b -32.324150453290734)))
(fma y (* b 1.6453555072203998) x))
(if (<= z 1.06e+17)
(fma (* y b) 1.6453555072203998 x)
(fma y 3.13060547623 x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1e+19) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 3.4e-296) {
tmp = fma(z, (y * fma(a, 1.6453555072203998, (b * -32.324150453290734))), fma(y, (b * 1.6453555072203998), x));
} else if (z <= 1.06e+17) {
tmp = fma((y * b), 1.6453555072203998, x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1e+19) tmp = fma(y, 3.13060547623, x); elseif (z <= 3.4e-296) tmp = fma(z, Float64(y * fma(a, 1.6453555072203998, Float64(b * -32.324150453290734))), fma(y, Float64(b * 1.6453555072203998), x)); elseif (z <= 1.06e+17) tmp = fma(Float64(y * b), 1.6453555072203998, x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1e+19], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 3.4e-296], N[(z * N[(y * N[(a * 1.6453555072203998 + N[(b * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(b * 1.6453555072203998), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+17], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998 + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-296}:\\
\;\;\;\;\mathsf{fma}\left(z, y \cdot \mathsf{fma}\left(a, 1.6453555072203998, b \cdot -32.324150453290734\right), \mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot b, 1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -1e19 or 1.06e17 < z Initial program 12.6%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6490.6
Simplified90.6%
if -1e19 < z < 3.39999999999999997e-296Initial program 99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6482.8
Simplified82.8%
if 3.39999999999999997e-296 < z < 1.06e17Initial program 93.4%
Taylor expanded in z around 0
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6477.0
Simplified77.0%
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6477.0
Applied egg-rr77.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.3e-19)
(fma (/ y z) -36.52704169880642 (fma y 3.13060547623 x))
(if (<= z 1.06e+17)
(fma (* y b) 1.6453555072203998 x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.3e-19) {
tmp = fma((y / z), -36.52704169880642, fma(y, 3.13060547623, x));
} else if (z <= 1.06e+17) {
tmp = fma((y * b), 1.6453555072203998, x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.3e-19) tmp = fma(Float64(y / z), -36.52704169880642, fma(y, 3.13060547623, x)); elseif (z <= 1.06e+17) tmp = fma(Float64(y * b), 1.6453555072203998, x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.3e-19], N[(N[(y / z), $MachinePrecision] * -36.52704169880642 + N[(y * 3.13060547623 + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+17], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998 + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot b, 1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -1.30000000000000006e-19Initial program 19.5%
Taylor expanded in z around inf
associate--l+N/A
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
metadata-evalN/A
times-fracN/A
distribute-rgt-out--N/A
*-commutativeN/A
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
associate-+l+N/A
Simplified86.5%
if -1.30000000000000006e-19 < z < 1.06e17Initial program 96.6%
Taylor expanded in z around 0
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6478.0
Simplified78.0%
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6478.1
Applied egg-rr78.1%
if 1.06e17 < z Initial program 12.5%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6490.5
Simplified90.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.3e-19)
(fma y 3.13060547623 x)
(if (<= z 1.06e+17)
(fma (* y b) 1.6453555072203998 x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.3e-19) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 1.06e+17) {
tmp = fma((y * b), 1.6453555072203998, x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.3e-19) tmp = fma(y, 3.13060547623, x); elseif (z <= 1.06e+17) tmp = fma(Float64(y * b), 1.6453555072203998, x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.3e-19], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 1.06e+17], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998 + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot b, 1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -1.30000000000000006e-19 or 1.06e17 < z Initial program 16.5%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6488.2
Simplified88.2%
if -1.30000000000000006e-19 < z < 1.06e17Initial program 96.6%
Taylor expanded in z around 0
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6478.0
Simplified78.0%
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6478.1
Applied egg-rr78.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.3e-19)
(fma y 3.13060547623 x)
(if (<= z 1.06e+17)
(fma (* y 1.6453555072203998) b x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.3e-19) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 1.06e+17) {
tmp = fma((y * 1.6453555072203998), b, x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.3e-19) tmp = fma(y, 3.13060547623, x); elseif (z <= 1.06e+17) tmp = fma(Float64(y * 1.6453555072203998), b, x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.3e-19], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 1.06e+17], N[(N[(y * 1.6453555072203998), $MachinePrecision] * b + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot 1.6453555072203998, b, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -1.30000000000000006e-19 or 1.06e17 < z Initial program 16.5%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6488.2
Simplified88.2%
if -1.30000000000000006e-19 < z < 1.06e17Initial program 96.6%
Taylor expanded in z around 0
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6478.0
Simplified78.0%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6478.1
Applied egg-rr78.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.3e-19)
(fma y 3.13060547623 x)
(if (<= z 1.06e+17)
(fma y (* b 1.6453555072203998) x)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.3e-19) {
tmp = fma(y, 3.13060547623, x);
} else if (z <= 1.06e+17) {
tmp = fma(y, (b * 1.6453555072203998), x);
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.3e-19) tmp = fma(y, 3.13060547623, x); elseif (z <= 1.06e+17) tmp = fma(y, Float64(b * 1.6453555072203998), x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.3e-19], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 1.06e+17], N[(y * N[(b * 1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -1.30000000000000006e-19 or 1.06e17 < z Initial program 16.5%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6488.2
Simplified88.2%
if -1.30000000000000006e-19 < z < 1.06e17Initial program 96.6%
Taylor expanded in z around 0
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6478.0
Simplified78.0%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.5e+43) (* y 3.13060547623) (if (<= y 1.25e+91) x (* y 3.13060547623))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.5e+43) {
tmp = y * 3.13060547623;
} else if (y <= 1.25e+91) {
tmp = x;
} else {
tmp = y * 3.13060547623;
}
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 (y <= (-2.5d+43)) then
tmp = y * 3.13060547623d0
else if (y <= 1.25d+91) then
tmp = x
else
tmp = y * 3.13060547623d0
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 (y <= -2.5e+43) {
tmp = y * 3.13060547623;
} else if (y <= 1.25e+91) {
tmp = x;
} else {
tmp = y * 3.13060547623;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.5e+43: tmp = y * 3.13060547623 elif y <= 1.25e+91: tmp = x else: tmp = y * 3.13060547623 return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.5e+43) tmp = Float64(y * 3.13060547623); elseif (y <= 1.25e+91) tmp = x; else tmp = Float64(y * 3.13060547623); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.5e+43) tmp = y * 3.13060547623; elseif (y <= 1.25e+91) tmp = x; else tmp = y * 3.13060547623; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.5e+43], N[(y * 3.13060547623), $MachinePrecision], If[LessEqual[y, 1.25e+91], x, N[(y * 3.13060547623), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+43}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+91}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot 3.13060547623\\
\end{array}
\end{array}
if y < -2.5000000000000002e43 or 1.2500000000000001e91 < y Initial program 53.3%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Simplified52.1%
Taylor expanded in z around inf
Simplified38.0%
if -2.5000000000000002e43 < y < 1.2500000000000001e91Initial program 54.5%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6475.1
Simplified75.1%
Taylor expanded in x around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
metadata-evalN/A
lower-fma.f64N/A
lower-/.f64N/A
mul-1-negN/A
lower-neg.f6474.4
Simplified74.4%
Taylor expanded in y around 0
Simplified64.5%
distribute-rgt-neg-outN/A
neg-mul-1N/A
remove-double-neg64.5
Applied egg-rr64.5%
(FPCore (x y z t a b) :precision binary64 (fma y 3.13060547623 x))
double code(double x, double y, double z, double t, double a, double b) {
return fma(y, 3.13060547623, x);
}
function code(x, y, z, t, a, b) return fma(y, 3.13060547623, x) end
code[x_, y_, z_, t_, a_, b_] := N[(y * 3.13060547623 + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, 3.13060547623, x\right)
\end{array}
Initial program 54.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6464.6
Simplified64.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 54.0%
Taylor expanded in z around inf
+-commutativeN/A
*-commutativeN/A
lower-fma.f6464.6
Simplified64.6%
Taylor expanded in x around -inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
metadata-evalN/A
lower-fma.f64N/A
lower-/.f64N/A
mul-1-negN/A
lower-neg.f6461.5
Simplified61.5%
Taylor expanded in y around 0
Simplified44.5%
distribute-rgt-neg-outN/A
neg-mul-1N/A
remove-double-neg44.5
Applied egg-rr44.5%
(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 2024207
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(! :herbie-platform default (if (< z -649934499625263200000000000000000000000000000000000000) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))) (if (< z 706696543691428700000000000000000000000000000000000000000000) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000) (+ (* (+ (* (+ (* (+ (* z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)))) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))))))
(+ 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))))