
(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 19 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
(if (<= z -5.2e+46)
(fma
(-
3.13060547623
(/
(-
36.52704169880642
(/
(+
(/ (+ (+ (* -15.234687407 t) -5864.8025282699045) a) z)
(+ 457.9610022158428 t))
z))
z))
y
x)
(if (<= z 1.5e+75)
(fma
(/
(fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
(fma
(fma (fma (+ 15.234687407 z) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(-
(+ (/ 457.9610022158428 (* z z)) (+ (/ t (* z z)) 3.13060547623))
(/ 36.52704169880642 z))
y
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5.2e+46) {
tmp = fma((3.13060547623 - ((36.52704169880642 - ((((((-15.234687407 * t) + -5864.8025282699045) + a) / z) + (457.9610022158428 + t)) / z)) / z)), y, x);
} else if (z <= 1.5e+75) {
tmp = fma((fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma((15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((((457.9610022158428 / (z * z)) + ((t / (z * z)) + 3.13060547623)) - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5.2e+46) tmp = fma(Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(Float64(Float64(Float64(Float64(-15.234687407 * t) + -5864.8025282699045) + a) / z) + Float64(457.9610022158428 + t)) / z)) / z)), y, x); elseif (z <= 1.5e+75) tmp = fma(Float64(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma(Float64(15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(Float64(Float64(457.9610022158428 / Float64(z * z)) + Float64(Float64(t / Float64(z * z)) + 3.13060547623)) - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5.2e+46], N[(N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(N[(N[(N[(N[(-15.234687407 * t), $MachinePrecision] + -5864.8025282699045), $MachinePrecision] + a), $MachinePrecision] / z), $MachinePrecision] + N[(457.9610022158428 + t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 1.5e+75], N[(N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + 3.13060547623), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+46}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\frac{\left(-15.234687407 \cdot t + -5864.8025282699045\right) + a}{z} + \left(457.9610022158428 + t\right)}{z}}{z}, y, x\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(15.234687407 + z, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\left(\frac{457.9610022158428}{z \cdot z} + \left(\frac{t}{z \cdot z} + 3.13060547623\right)\right) - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -5.20000000000000027e46Initial program 3.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites6.1%
Taylor expanded in z around -inf
Applied rewrites99.9%
if -5.20000000000000027e46 < z < 1.5e75Initial program 96.9%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites99.7%
if 1.5e75 < z Initial program 2.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites2.3%
Taylor expanded in z around inf
lower--.f64N/A
+-commutativeN/A
associate-+r+N/A
lower-+.f64N/A
lower-+.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f64100.0
Applied rewrites100.0%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))))
(if (<= t_1 -2e+248)
(* (* 1.6453555072203998 b) y)
(if (<= t_1 2e+166)
(fma 3.13060547623 y x)
(if (<= t_1 INFINITY)
(* (* 1.6453555072203998 y) b)
(fma 3.13060547623 y x))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
double tmp;
if (t_1 <= -2e+248) {
tmp = (1.6453555072203998 * b) * y;
} else if (t_1 <= 2e+166) {
tmp = fma(3.13060547623, y, x);
} else if (t_1 <= ((double) INFINITY)) {
tmp = (1.6453555072203998 * y) * b;
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) tmp = 0.0 if (t_1 <= -2e+248) tmp = Float64(Float64(1.6453555072203998 * b) * y); elseif (t_1 <= 2e+166) tmp = fma(3.13060547623, y, x); elseif (t_1 <= Inf) tmp = Float64(Float64(1.6453555072203998 * y) * b); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+248], N[(N[(1.6453555072203998 * b), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$1, 2e+166], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(1.6453555072203998 * y), $MachinePrecision] * b), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+248}:\\
\;\;\;\;\left(1.6453555072203998 \cdot b\right) \cdot y\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+166}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\left(1.6453555072203998 \cdot y\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, 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))) < -2.00000000000000009e248Initial program 79.1%
Taylor expanded in b around inf
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6443.3
Applied rewrites43.3%
Taylor expanded in z around 0
Applied rewrites42.8%
if -2.00000000000000009e248 < (/.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.99999999999999988e166 or +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 49.1%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6472.5
Applied rewrites72.5%
if 1.99999999999999988e166 < (/.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 81.3%
Taylor expanded in b around inf
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6445.2
Applied rewrites45.2%
Applied rewrites45.3%
Taylor expanded in z around 0
Applied rewrites45.4%
Final simplification66.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))))
(if (<= t_1 -2e+248)
(* (* y b) 1.6453555072203998)
(if (<= t_1 2e+166)
(fma 3.13060547623 y x)
(if (<= t_1 INFINITY)
(* (* 1.6453555072203998 y) b)
(fma 3.13060547623 y x))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
double tmp;
if (t_1 <= -2e+248) {
tmp = (y * b) * 1.6453555072203998;
} else if (t_1 <= 2e+166) {
tmp = fma(3.13060547623, y, x);
} else if (t_1 <= ((double) INFINITY)) {
tmp = (1.6453555072203998 * y) * b;
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) tmp = 0.0 if (t_1 <= -2e+248) tmp = Float64(Float64(y * b) * 1.6453555072203998); elseif (t_1 <= 2e+166) tmp = fma(3.13060547623, y, x); elseif (t_1 <= Inf) tmp = Float64(Float64(1.6453555072203998 * y) * b); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+248], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision], If[LessEqual[t$95$1, 2e+166], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(1.6453555072203998 * y), $MachinePrecision] * b), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+248}:\\
\;\;\;\;\left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+166}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\left(1.6453555072203998 \cdot y\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, 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))) < -2.00000000000000009e248Initial program 79.1%
Taylor expanded in b around inf
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6443.3
Applied rewrites43.3%
Taylor expanded in z around 0
Applied rewrites42.8%
if -2.00000000000000009e248 < (/.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.99999999999999988e166 or +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 49.1%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6472.5
Applied rewrites72.5%
if 1.99999999999999988e166 < (/.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 81.3%
Taylor expanded in b around inf
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6445.2
Applied rewrites45.2%
Applied rewrites45.3%
Taylor expanded in z around 0
Applied rewrites45.4%
Final simplification66.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (* y b) 1.6453555072203998))
(t_2
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))))
(if (<= t_2 -2e+248)
t_1
(if (<= t_2 2e+166)
(fma 3.13060547623 y x)
(if (<= t_2 INFINITY) t_1 (fma 3.13060547623 y x))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) * 1.6453555072203998;
double t_2 = (((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
double tmp;
if (t_2 <= -2e+248) {
tmp = t_1;
} else if (t_2 <= 2e+166) {
tmp = fma(3.13060547623, y, x);
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) * 1.6453555072203998) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) tmp = 0.0 if (t_2 <= -2e+248) tmp = t_1; elseif (t_2 <= 2e+166) tmp = fma(3.13060547623, y, x); elseif (t_2 <= Inf) tmp = t_1; else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+248], t$95$1, If[LessEqual[t$95$2, 2e+166], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[t$95$2, Infinity], t$95$1, N[(3.13060547623 * y + x), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y \cdot b\right) \cdot 1.6453555072203998\\
t_2 := \frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+166}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, 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))) < -2.00000000000000009e248 or 1.99999999999999988e166 < (/.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.4%
Taylor expanded in b around inf
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6444.4
Applied rewrites44.4%
Taylor expanded in z around 0
Applied rewrites44.3%
if -2.00000000000000009e248 < (/.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.99999999999999988e166 or +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 49.1%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6472.5
Applied rewrites72.5%
Final simplification66.4%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(fma
(/
(fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
(fma
(fma (fma (+ 15.234687407 z) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(-
(+ (/ 457.9610022158428 (* z z)) (+ (/ t (* z z)) 3.13060547623))
(/ 36.52704169880642 z))
y
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma((fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma((15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((((457.9610022158428 / (z * z)) + ((t / (z * z)) + 3.13060547623)) - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = fma(Float64(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma(Float64(15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(Float64(Float64(457.9610022158428 / Float64(z * z)) + Float64(Float64(t / Float64(z * z)) + 3.13060547623)) - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + 3.13060547623), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(15.234687407 + z, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\left(\frac{457.9610022158428}{z \cdot z} + \left(\frac{t}{z \cdot z} + 3.13060547623\right)\right) - \frac{36.52704169880642}{z}, y, 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 92.7%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites96.6%
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%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites0.0%
Taylor expanded in z around inf
lower--.f64N/A
+-commutativeN/A
associate-+r+N/A
lower-+.f64N/A
lower-+.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6499.9
Applied rewrites99.9%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(fma
(/
(fma (fma (fma 11.1667541262 z t) z a) z b)
(fma
(fma (fma (+ 15.234687407 z) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(-
(+ (/ 457.9610022158428 (* z z)) (+ (/ t (* z z)) 3.13060547623))
(/ 36.52704169880642 z))
y
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma((fma(fma(fma(11.1667541262, z, t), z, a), z, b) / fma(fma(fma((15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((((457.9610022158428 / (z * z)) + ((t / (z * z)) + 3.13060547623)) - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = fma(Float64(fma(fma(fma(11.1667541262, z, t), z, a), z, b) / fma(fma(fma(Float64(15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(Float64(Float64(457.9610022158428 / Float64(z * z)) + Float64(Float64(t / Float64(z * z)) + 3.13060547623)) - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(11.1667541262 * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + 3.13060547623), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(11.1667541262, z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(15.234687407 + z, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\left(\frac{457.9610022158428}{z \cdot z} + \left(\frac{t}{z \cdot z} + 3.13060547623\right)\right) - \frac{36.52704169880642}{z}, y, 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 92.7%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites96.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6494.8
Applied rewrites94.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%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites0.0%
Taylor expanded in z around inf
lower--.f64N/A
+-commutativeN/A
associate-+r+N/A
lower-+.f64N/A
lower-+.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6499.9
Applied rewrites99.9%
Final simplification96.9%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(fma
(/
(fma (fma (fma 11.1667541262 z t) z a) z b)
(fma
(fma (fma (+ 15.234687407 z) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(- 3.13060547623 (/ (- 36.52704169880642 (/ (+ 457.9610022158428 t) z)) z))
y
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma((fma(fma(fma(11.1667541262, z, t), z, a), z, b) / fma(fma(fma((15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + t) / z)) / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = fma(Float64(fma(fma(fma(11.1667541262, z, t), z, a), z, b) / fma(fma(fma(Float64(15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + t) / z)) / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(11.1667541262 * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(11.1667541262, z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(15.234687407 + z, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + t}{z}}{z}, y, 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 92.7%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites96.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6494.8
Applied rewrites94.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%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites0.0%
Taylor expanded in z around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-+.f6499.9
Applied rewrites99.9%
Final simplification96.9%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(fma
(/
(fma (fma t z a) z b)
(fma
(fma (fma (+ 15.234687407 z) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(- 3.13060547623 (/ (- 36.52704169880642 (/ (+ 457.9610022158428 t) z)) z))
y
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma((fma(fma(t, z, a), z, b) / fma(fma(fma((15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + t) / z)) / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = fma(Float64(fma(fma(t, z, a), z, b) / fma(fma(fma(Float64(15.234687407 + z), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + t) / z)) / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(t * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(t, z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(15.234687407 + z, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + t}{z}}{z}, y, 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 92.7%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites96.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6494.2
Applied rewrites94.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%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites0.0%
Taylor expanded in z around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-+.f6499.9
Applied rewrites99.9%
Final simplification96.5%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
(+
(* (+ (* (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t) z) a) z)
b)
y)
(+
(*
(+ (* (+ (* (+ 15.234687407 z) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(fma (* y b) 1.6453555072203998 x)
(fma 3.13060547623 y x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((((((((((3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / (((((((15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma((y * b), 1.6453555072203998, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(3.13060547623 * z) + 11.1667541262) * z) + t) * z) + a) * z) + b) * y) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(15.234687407 + z) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = fma(Float64(y * b), 1.6453555072203998, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(15.234687407 + z), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(y * b), $MachinePrecision] * 1.6453555072203998 + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(\left(\left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right) \cdot y}{\left(\left(\left(15.234687407 + z\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y \cdot b, 1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, 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 92.7%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-*.f6465.0
Applied rewrites65.0%
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
lower-fma.f6496.0
Applied rewrites96.0%
Final simplification77.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(-
3.13060547623
(/ (- 36.52704169880642 (/ (+ 457.9610022158428 t) z)) z))
y
x)))
(if (<= z -42000000000000.0)
t_1
(if (<= z 495000.0)
(+
(/ (* (fma (fma (fma 11.1667541262 z t) z a) z b) y) 0.607771387771)
x)
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + t) / z)) / z)), y, x);
double tmp;
if (z <= -42000000000000.0) {
tmp = t_1;
} else if (z <= 495000.0) {
tmp = ((fma(fma(fma(11.1667541262, z, t), z, a), z, b) * y) / 0.607771387771) + x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + t) / z)) / z)), y, x) tmp = 0.0 if (z <= -42000000000000.0) tmp = t_1; elseif (z <= 495000.0) tmp = Float64(Float64(Float64(fma(fma(fma(11.1667541262, z, t), z, a), z, b) * y) / 0.607771387771) + x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -42000000000000.0], t$95$1, If[LessEqual[z, 495000.0], N[(N[(N[(N[(N[(N[(11.1667541262 * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] * y), $MachinePrecision] / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -42000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 495000:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(11.1667541262, z, t\right), z, a\right), z, b\right) \cdot y}{0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.2e13 or 495000 < z Initial program 13.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites17.8%
Taylor expanded in z around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-+.f6493.8
Applied rewrites93.8%
if -4.2e13 < z < 495000Initial program 99.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6493.7
Applied rewrites93.7%
Taylor expanded in z around 0
Applied rewrites92.5%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.9
Applied rewrites96.9%
Final simplification95.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.2e+24)
(+ (/ 1.0 (/ 0.31942702700572795 y)) x)
(if (<= z 1.26e+16)
(+ (/ (* (fma (fma (fma 11.1667541262 z t) z a) z b) y) 0.607771387771) x)
(fma (- 3.13060547623 (/ 36.52704169880642 z)) y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.2e+24) {
tmp = (1.0 / (0.31942702700572795 / y)) + x;
} else if (z <= 1.26e+16) {
tmp = ((fma(fma(fma(11.1667541262, z, t), z, a), z, b) * y) / 0.607771387771) + x;
} else {
tmp = fma((3.13060547623 - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.2e+24) tmp = Float64(Float64(1.0 / Float64(0.31942702700572795 / y)) + x); elseif (z <= 1.26e+16) tmp = Float64(Float64(Float64(fma(fma(fma(11.1667541262, z, t), z, a), z, b) * y) / 0.607771387771) + x); else tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.2e+24], N[(N[(1.0 / N[(0.31942702700572795 / y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.26e+16], N[(N[(N[(N[(N[(N[(11.1667541262 * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] * y), $MachinePrecision] / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], N[(N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{1}{\frac{0.31942702700572795}{y}} + x\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{+16}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(11.1667541262, z, t\right), z, a\right), z, b\right) \cdot y}{0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -6.20000000000000022e24Initial program 5.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6441.7
Applied rewrites41.7%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
Applied rewrites50.1%
Taylor expanded in z around inf
lower-/.f6490.7
Applied rewrites90.7%
if -6.20000000000000022e24 < z < 1.26e16Initial program 99.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.6
Applied rewrites92.6%
Taylor expanded in z around 0
Applied rewrites90.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6494.3
Applied rewrites94.3%
if 1.26e16 < z Initial program 10.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites15.9%
Taylor expanded in z around inf
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6489.6
Applied rewrites89.6%
Final simplification92.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.2e+24)
(+ (/ 1.0 (/ 0.31942702700572795 y)) x)
(if (<= z 1.26e+16)
(fma (fma (fma (fma 11.1667541262 z t) z a) z b) (/ y 0.607771387771) x)
(fma (- 3.13060547623 (/ 36.52704169880642 z)) y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.2e+24) {
tmp = (1.0 / (0.31942702700572795 / y)) + x;
} else if (z <= 1.26e+16) {
tmp = fma(fma(fma(fma(11.1667541262, z, t), z, a), z, b), (y / 0.607771387771), x);
} else {
tmp = fma((3.13060547623 - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.2e+24) tmp = Float64(Float64(1.0 / Float64(0.31942702700572795 / y)) + x); elseif (z <= 1.26e+16) tmp = fma(fma(fma(fma(11.1667541262, z, t), z, a), z, b), Float64(y / 0.607771387771), x); else tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.2e+24], N[(N[(1.0 / N[(0.31942702700572795 / y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.26e+16], N[(N[(N[(N[(11.1667541262 * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] * N[(y / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], N[(N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{1}{\frac{0.31942702700572795}{y}} + x\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(11.1667541262, z, t\right), z, a\right), z, b\right), \frac{y}{0.607771387771}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -6.20000000000000022e24Initial program 5.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6441.7
Applied rewrites41.7%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
Applied rewrites50.1%
Taylor expanded in z around inf
lower-/.f6490.7
Applied rewrites90.7%
if -6.20000000000000022e24 < z < 1.26e16Initial program 99.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.6
Applied rewrites92.6%
Taylor expanded in z around 0
Applied rewrites90.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
Applied rewrites90.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6494.2
Applied rewrites94.2%
if 1.26e16 < z Initial program 10.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites15.9%
Taylor expanded in z around inf
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6489.6
Applied rewrites89.6%
Final simplification92.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.2e+24)
(+ (/ 1.0 (/ 0.31942702700572795 y)) x)
(if (<= z 1.26e+16)
(+ (/ (* (fma (fma t z a) z b) y) 0.607771387771) x)
(fma (- 3.13060547623 (/ 36.52704169880642 z)) y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.2e+24) {
tmp = (1.0 / (0.31942702700572795 / y)) + x;
} else if (z <= 1.26e+16) {
tmp = ((fma(fma(t, z, a), z, b) * y) / 0.607771387771) + x;
} else {
tmp = fma((3.13060547623 - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.2e+24) tmp = Float64(Float64(1.0 / Float64(0.31942702700572795 / y)) + x); elseif (z <= 1.26e+16) tmp = Float64(Float64(Float64(fma(fma(t, z, a), z, b) * y) / 0.607771387771) + x); else tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.2e+24], N[(N[(1.0 / N[(0.31942702700572795 / y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.26e+16], N[(N[(N[(N[(N[(t * z + a), $MachinePrecision] * z + b), $MachinePrecision] * y), $MachinePrecision] / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], N[(N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{1}{\frac{0.31942702700572795}{y}} + x\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{+16}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(t, z, a\right), z, b\right) \cdot y}{0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -6.20000000000000022e24Initial program 5.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6441.7
Applied rewrites41.7%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
Applied rewrites50.1%
Taylor expanded in z around inf
lower-/.f6490.7
Applied rewrites90.7%
if -6.20000000000000022e24 < z < 1.26e16Initial program 99.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.6
Applied rewrites92.6%
Taylor expanded in z around 0
Applied rewrites90.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6493.6
Applied rewrites93.6%
if 1.26e16 < z Initial program 10.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites15.9%
Taylor expanded in z around inf
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6489.6
Applied rewrites89.6%
Final simplification92.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.2e+24)
(+ (/ 1.0 (/ 0.31942702700572795 y)) x)
(if (<= z 1.26e+16)
(fma (fma (fma t z a) z b) (/ y 0.607771387771) x)
(fma (- 3.13060547623 (/ 36.52704169880642 z)) y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.2e+24) {
tmp = (1.0 / (0.31942702700572795 / y)) + x;
} else if (z <= 1.26e+16) {
tmp = fma(fma(fma(t, z, a), z, b), (y / 0.607771387771), x);
} else {
tmp = fma((3.13060547623 - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.2e+24) tmp = Float64(Float64(1.0 / Float64(0.31942702700572795 / y)) + x); elseif (z <= 1.26e+16) tmp = fma(fma(fma(t, z, a), z, b), Float64(y / 0.607771387771), x); else tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.2e+24], N[(N[(1.0 / N[(0.31942702700572795 / y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.26e+16], N[(N[(N[(t * z + a), $MachinePrecision] * z + b), $MachinePrecision] * N[(y / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], N[(N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{1}{\frac{0.31942702700572795}{y}} + x\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(t, z, a\right), z, b\right), \frac{y}{0.607771387771}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -6.20000000000000022e24Initial program 5.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6441.7
Applied rewrites41.7%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
Applied rewrites50.1%
Taylor expanded in z around inf
lower-/.f6490.7
Applied rewrites90.7%
if -6.20000000000000022e24 < z < 1.26e16Initial program 99.6%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.6
Applied rewrites92.6%
Taylor expanded in z around 0
Applied rewrites90.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
Applied rewrites90.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6493.6
Applied rewrites93.6%
if 1.26e16 < z Initial program 10.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites15.9%
Taylor expanded in z around inf
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6489.6
Applied rewrites89.6%
Final simplification92.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -5e+46)
(+ (/ 1.0 (/ 0.31942702700572795 y)) x)
(if (<= z 4.4e+16)
(fma (fma a z b) (* 1.6453555072203998 y) x)
(fma (- 3.13060547623 (/ 36.52704169880642 z)) y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5e+46) {
tmp = (1.0 / (0.31942702700572795 / y)) + x;
} else if (z <= 4.4e+16) {
tmp = fma(fma(a, z, b), (1.6453555072203998 * y), x);
} else {
tmp = fma((3.13060547623 - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5e+46) tmp = Float64(Float64(1.0 / Float64(0.31942702700572795 / y)) + x); elseif (z <= 4.4e+16) tmp = fma(fma(a, z, b), Float64(1.6453555072203998 * y), x); else tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5e+46], N[(N[(1.0 / N[(0.31942702700572795 / y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.4e+16], N[(N[(a * z + b), $MachinePrecision] * N[(1.6453555072203998 * y), $MachinePrecision] + x), $MachinePrecision], N[(N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+46}:\\
\;\;\;\;\frac{1}{\frac{0.31942702700572795}{y}} + x\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(a, z, b\right), 1.6453555072203998 \cdot y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -5.0000000000000002e46Initial program 3.3%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6440.5
Applied rewrites40.5%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
Applied rewrites47.9%
Taylor expanded in z around inf
lower-/.f6491.6
Applied rewrites91.6%
if -5.0000000000000002e46 < z < 4.4e16Initial program 98.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.1
Applied rewrites92.1%
Taylor expanded in z around 0
Applied rewrites89.8%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
Applied rewrites89.7%
Taylor expanded in z around 0
lower-*.f6489.8
Applied rewrites89.8%
if 4.4e16 < z Initial program 10.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites15.9%
Taylor expanded in z around inf
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6489.6
Applied rewrites89.6%
Final simplification90.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -5e+46)
(fma 3.13060547623 y x)
(if (<= z 4.4e+16)
(fma (fma a z b) (* 1.6453555072203998 y) x)
(fma (- 3.13060547623 (/ 36.52704169880642 z)) y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5e+46) {
tmp = fma(3.13060547623, y, x);
} else if (z <= 4.4e+16) {
tmp = fma(fma(a, z, b), (1.6453555072203998 * y), x);
} else {
tmp = fma((3.13060547623 - (36.52704169880642 / z)), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5e+46) tmp = fma(3.13060547623, y, x); elseif (z <= 4.4e+16) tmp = fma(fma(a, z, b), Float64(1.6453555072203998 * y), x); else tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 / z)), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5e+46], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[z, 4.4e+16], N[(N[(a * z + b), $MachinePrecision] * N[(1.6453555072203998 * y), $MachinePrecision] + x), $MachinePrecision], N[(N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+46}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(a, z, b\right), 1.6453555072203998 \cdot y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642}{z}, y, x\right)\\
\end{array}
\end{array}
if z < -5.0000000000000002e46Initial program 3.3%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6491.5
Applied rewrites91.5%
if -5.0000000000000002e46 < z < 4.4e16Initial program 98.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.1
Applied rewrites92.1%
Taylor expanded in z around 0
Applied rewrites89.8%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
Applied rewrites89.7%
Taylor expanded in z around 0
lower-*.f6489.8
Applied rewrites89.8%
if 4.4e16 < z Initial program 10.2%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites15.9%
Taylor expanded in z around inf
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6489.6
Applied rewrites89.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -5e+46)
(fma 3.13060547623 y x)
(if (<= z 4.4e+16)
(fma (fma a z b) (* 1.6453555072203998 y) x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5e+46) {
tmp = fma(3.13060547623, y, x);
} else if (z <= 4.4e+16) {
tmp = fma(fma(a, z, b), (1.6453555072203998 * y), x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5e+46) tmp = fma(3.13060547623, y, x); elseif (z <= 4.4e+16) tmp = fma(fma(a, z, b), Float64(1.6453555072203998 * y), x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5e+46], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[z, 4.4e+16], N[(N[(a * z + b), $MachinePrecision] * N[(1.6453555072203998 * y), $MachinePrecision] + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+46}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(a, z, b\right), 1.6453555072203998 \cdot y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -5.0000000000000002e46 or 4.4e16 < z Initial program 6.2%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6490.7
Applied rewrites90.7%
if -5.0000000000000002e46 < z < 4.4e16Initial program 98.9%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6492.1
Applied rewrites92.1%
Taylor expanded in z around 0
Applied rewrites89.8%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
Applied rewrites89.7%
Taylor expanded in z around 0
lower-*.f6489.8
Applied rewrites89.8%
(FPCore (x y z t a b) :precision binary64 (fma 3.13060547623 y x))
double code(double x, double y, double z, double t, double a, double b) {
return fma(3.13060547623, y, x);
}
function code(x, y, z, t, a, b) return fma(3.13060547623, y, x) end
code[x_, y_, z_, t_, a_, b_] := N[(3.13060547623 * y + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(3.13060547623, y, x\right)
\end{array}
Initial program 55.8%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6459.5
Applied rewrites59.5%
(FPCore (x y z t a b) :precision binary64 (* y 3.13060547623))
double code(double x, double y, double z, double t, double a, double b) {
return y * 3.13060547623;
}
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 = y * 3.13060547623d0
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return y * 3.13060547623;
}
def code(x, y, z, t, a, b): return y * 3.13060547623
function code(x, y, z, t, a, b) return Float64(y * 3.13060547623) end
function tmp = code(x, y, z, t, a, b) tmp = y * 3.13060547623; end
code[x_, y_, z_, t_, a_, b_] := N[(y * 3.13060547623), $MachinePrecision]
\begin{array}{l}
\\
y \cdot 3.13060547623
\end{array}
Initial program 55.8%
Taylor expanded in z around inf
+-commutativeN/A
lower-fma.f6459.5
Applied rewrites59.5%
Taylor expanded in x around 0
Applied rewrites18.3%
Final simplification18.3%
(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 2024294
(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))))