
(FPCore (x y z t a b c) :precision binary64 (+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: c
code = (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0)) + c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
def code(x, y, z, t, a, b, c): return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) + c) end
function tmp = code(x, y, z, t, a, b, c) tmp = (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right) + c
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: c
code = (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0)) + c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
def code(x, y, z, t, a, b, c): return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) + c) end
function tmp = code(x, y, z, t, a, b, c) tmp = (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right) + c
\end{array}
(FPCore (x y z t a b c) :precision binary64 (fma (* t 0.0625) z (- (* x y) (fma a (* b 0.25) (- c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return fma((t * 0.0625), z, ((x * y) - fma(a, (b * 0.25), -c)));
}
function code(x, y, z, t, a, b, c) return fma(Float64(t * 0.0625), z, Float64(Float64(x * y) - fma(a, Float64(b * 0.25), Float64(-c)))) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(t * 0.0625), $MachinePrecision] * z + N[(N[(x * y), $MachinePrecision] - N[(a * N[(b * 0.25), $MachinePrecision] + (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(t \cdot 0.0625, z, x \cdot y - \mathsf{fma}\left(a, b \cdot 0.25, -c\right)\right)
\end{array}
Initial program 97.6%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lift-+.f64N/A
+-commutativeN/A
associate--l+N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
div-invN/A
lower-*.f64N/A
metadata-evalN/A
lower--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites99.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (fma (* t 0.0625) z (* b (* a -0.25)))))
(if (<= (* t z) -1e+66)
t_1
(if (<= (* t z) 2e-11)
(fma a (* b -0.25) (fma x y c))
(if (<= (* t z) 2e+140) (fma (* t 0.0625) z (fma x y c)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma((t * 0.0625), z, (b * (a * -0.25)));
double tmp;
if ((t * z) <= -1e+66) {
tmp = t_1;
} else if ((t * z) <= 2e-11) {
tmp = fma(a, (b * -0.25), fma(x, y, c));
} else if ((t * z) <= 2e+140) {
tmp = fma((t * 0.0625), z, fma(x, y, c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(Float64(t * 0.0625), z, Float64(b * Float64(a * -0.25))) tmp = 0.0 if (Float64(t * z) <= -1e+66) tmp = t_1; elseif (Float64(t * z) <= 2e-11) tmp = fma(a, Float64(b * -0.25), fma(x, y, c)); elseif (Float64(t * z) <= 2e+140) tmp = fma(Float64(t * 0.0625), z, fma(x, y, c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(t * 0.0625), $MachinePrecision] * z + N[(b * N[(a * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * z), $MachinePrecision], -1e+66], t$95$1, If[LessEqual[N[(t * z), $MachinePrecision], 2e-11], N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 2e+140], N[(N[(t * 0.0625), $MachinePrecision] * z + N[(x * y + c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t \cdot 0.0625, z, b \cdot \left(a \cdot -0.25\right)\right)\\
\mathbf{if}\;t \cdot z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{-11}:\\
\;\;\;\;\mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{+140}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot 0.0625, z, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -9.99999999999999945e65 or 2.00000000000000012e140 < (*.f64 z t) Initial program 93.1%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lift-+.f64N/A
+-commutativeN/A
associate--l+N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
div-invN/A
lower-*.f64N/A
metadata-evalN/A
lower--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites97.7%
Taylor expanded in a around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6490.0
Applied rewrites90.0%
if -9.99999999999999945e65 < (*.f64 z t) < 1.99999999999999988e-11Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6499.2
Applied rewrites99.2%
if 1.99999999999999988e-11 < (*.f64 z t) < 2.00000000000000012e140Initial program 99.9%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lift-+.f64N/A
+-commutativeN/A
associate--l+N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
div-invN/A
lower-*.f64N/A
metadata-evalN/A
lower--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites100.0%
Taylor expanded in a around 0
+-commutativeN/A
lower-fma.f6491.4
Applied rewrites91.4%
Final simplification95.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (fma a (* b -0.25) (* 0.0625 (* t z)))))
(if (<= (* t z) -1e+66)
t_1
(if (<= (* t z) 2e-11)
(fma a (* b -0.25) (fma x y c))
(if (<= (* t z) 2e+140) (fma (* t 0.0625) z (fma x y c)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma(a, (b * -0.25), (0.0625 * (t * z)));
double tmp;
if ((t * z) <= -1e+66) {
tmp = t_1;
} else if ((t * z) <= 2e-11) {
tmp = fma(a, (b * -0.25), fma(x, y, c));
} else if ((t * z) <= 2e+140) {
tmp = fma((t * 0.0625), z, fma(x, y, c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(a, Float64(b * -0.25), Float64(0.0625 * Float64(t * z))) tmp = 0.0 if (Float64(t * z) <= -1e+66) tmp = t_1; elseif (Float64(t * z) <= 2e-11) tmp = fma(a, Float64(b * -0.25), fma(x, y, c)); elseif (Float64(t * z) <= 2e+140) tmp = fma(Float64(t * 0.0625), z, fma(x, y, c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(b * -0.25), $MachinePrecision] + N[(0.0625 * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * z), $MachinePrecision], -1e+66], t$95$1, If[LessEqual[N[(t * z), $MachinePrecision], 2e-11], N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 2e+140], N[(N[(t * 0.0625), $MachinePrecision] * z + N[(x * y + c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b \cdot -0.25, 0.0625 \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;t \cdot z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{-11}:\\
\;\;\;\;\mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{+140}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot 0.0625, z, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -9.99999999999999945e65 or 2.00000000000000012e140 < (*.f64 z t) Initial program 93.1%
Taylor expanded in x around inf
lower-*.f6414.4
Applied rewrites14.4%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
lower-*.f6491.0
Applied rewrites91.0%
Taylor expanded in t around inf
Applied rewrites87.8%
if -9.99999999999999945e65 < (*.f64 z t) < 1.99999999999999988e-11Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6499.2
Applied rewrites99.2%
if 1.99999999999999988e-11 < (*.f64 z t) < 2.00000000000000012e140Initial program 99.9%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lift-+.f64N/A
+-commutativeN/A
associate--l+N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
div-invN/A
lower-*.f64N/A
metadata-evalN/A
lower--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites100.0%
Taylor expanded in a around 0
+-commutativeN/A
lower-fma.f6491.4
Applied rewrites91.4%
Final simplification94.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (fma a (* b -0.25) (* x y))))
(if (<= (* x y) -5e+107)
t_1
(if (<= (* x y) -5e-60)
(fma (* 0.0625 z) t c)
(if (<= (* x y) 1e+21) (fma b (* a -0.25) c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma(a, (b * -0.25), (x * y));
double tmp;
if ((x * y) <= -5e+107) {
tmp = t_1;
} else if ((x * y) <= -5e-60) {
tmp = fma((0.0625 * z), t, c);
} else if ((x * y) <= 1e+21) {
tmp = fma(b, (a * -0.25), c);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(a, Float64(b * -0.25), Float64(x * y)) tmp = 0.0 if (Float64(x * y) <= -5e+107) tmp = t_1; elseif (Float64(x * y) <= -5e-60) tmp = fma(Float64(0.0625 * z), t, c); elseif (Float64(x * y) <= 1e+21) tmp = fma(b, Float64(a * -0.25), c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -5e+107], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -5e-60], N[(N[(0.0625 * z), $MachinePrecision] * t + c), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1e+21], N[(b * N[(a * -0.25), $MachinePrecision] + c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b \cdot -0.25, x \cdot y\right)\\
\mathbf{if}\;x \cdot y \leq -5 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \cdot y \leq -5 \cdot 10^{-60}:\\
\;\;\;\;\mathsf{fma}\left(0.0625 \cdot z, t, c\right)\\
\mathbf{elif}\;x \cdot y \leq 10^{+21}:\\
\;\;\;\;\mathsf{fma}\left(b, a \cdot -0.25, c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 x y) < -5.0000000000000002e107 or 1e21 < (*.f64 x y) Initial program 96.3%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6487.0
Applied rewrites87.0%
Taylor expanded in x around inf
Applied rewrites79.2%
if -5.0000000000000002e107 < (*.f64 x y) < -5.0000000000000001e-60Initial program 99.9%
Taylor expanded in x around inf
lower-*.f6410.5
Applied rewrites10.5%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
lower-*.f6492.5
Applied rewrites92.5%
Taylor expanded in a around 0
Applied rewrites71.5%
Applied rewrites71.5%
if -5.0000000000000001e-60 < (*.f64 x y) < 1e21Initial program 98.1%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6479.1
Applied rewrites79.1%
Taylor expanded in x around 0
Applied rewrites77.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (fma b (* a -0.25) c)))
(if (<= (* a b) -1e+74)
t_1
(if (<= (* a b) -5e-144)
(fma 0.0625 (* t z) c)
(if (<= (* a b) 2e+118) (fma x y c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma(b, (a * -0.25), c);
double tmp;
if ((a * b) <= -1e+74) {
tmp = t_1;
} else if ((a * b) <= -5e-144) {
tmp = fma(0.0625, (t * z), c);
} else if ((a * b) <= 2e+118) {
tmp = fma(x, y, c);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(b, Float64(a * -0.25), c) tmp = 0.0 if (Float64(a * b) <= -1e+74) tmp = t_1; elseif (Float64(a * b) <= -5e-144) tmp = fma(0.0625, Float64(t * z), c); elseif (Float64(a * b) <= 2e+118) tmp = fma(x, y, c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b * N[(a * -0.25), $MachinePrecision] + c), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -1e+74], t$95$1, If[LessEqual[N[(a * b), $MachinePrecision], -5e-144], N[(0.0625 * N[(t * z), $MachinePrecision] + c), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+118], N[(x * y + c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b, a \cdot -0.25, c\right)\\
\mathbf{if}\;a \cdot b \leq -1 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot b \leq -5 \cdot 10^{-144}:\\
\;\;\;\;\mathsf{fma}\left(0.0625, t \cdot z, c\right)\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+118}:\\
\;\;\;\;\mathsf{fma}\left(x, y, c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 a b) < -9.99999999999999952e73 or 1.99999999999999993e118 < (*.f64 a b) Initial program 94.6%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6484.7
Applied rewrites84.7%
Taylor expanded in x around 0
Applied rewrites73.6%
if -9.99999999999999952e73 < (*.f64 a b) < -4.9999999999999998e-144Initial program 100.0%
Taylor expanded in x around inf
lower-*.f6425.7
Applied rewrites25.7%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
lower-*.f6479.2
Applied rewrites79.2%
Taylor expanded in a around 0
Applied rewrites72.9%
if -4.9999999999999998e-144 < (*.f64 a b) < 1.99999999999999993e118Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6479.3
Applied rewrites79.3%
Taylor expanded in a around 0
Applied rewrites73.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (fma a (* b -0.25) (fma 0.0625 (* t z) c))))
(if (<= (* t z) -1e+66)
t_1
(if (<= (* t z) 1e+84) (fma a (* b -0.25) (fma x y c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma(a, (b * -0.25), fma(0.0625, (t * z), c));
double tmp;
if ((t * z) <= -1e+66) {
tmp = t_1;
} else if ((t * z) <= 1e+84) {
tmp = fma(a, (b * -0.25), fma(x, y, c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(a, Float64(b * -0.25), fma(0.0625, Float64(t * z), c)) tmp = 0.0 if (Float64(t * z) <= -1e+66) tmp = t_1; elseif (Float64(t * z) <= 1e+84) tmp = fma(a, Float64(b * -0.25), fma(x, y, c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(b * -0.25), $MachinePrecision] + N[(0.0625 * N[(t * z), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * z), $MachinePrecision], -1e+66], t$95$1, If[LessEqual[N[(t * z), $MachinePrecision], 1e+84], N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(0.0625, t \cdot z, c\right)\right)\\
\mathbf{if}\;t \cdot z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \cdot z \leq 10^{+84}:\\
\;\;\;\;\mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -9.99999999999999945e65 or 1.00000000000000006e84 < (*.f64 z t) Initial program 93.8%
Taylor expanded in x around inf
lower-*.f6414.3
Applied rewrites14.3%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
lower-*.f6490.8
Applied rewrites90.8%
if -9.99999999999999945e65 < (*.f64 z t) < 1.00000000000000006e84Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6497.3
Applied rewrites97.3%
Final simplification94.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (* t z) -1e+66)
(fma (* t 0.0625) z (* b (* a -0.25)))
(if (<= (* t z) 1e+84)
(fma a (* b -0.25) (fma x y c))
(fma 0.0625 (* t z) (fma a (* b -0.25) c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t * z) <= -1e+66) {
tmp = fma((t * 0.0625), z, (b * (a * -0.25)));
} else if ((t * z) <= 1e+84) {
tmp = fma(a, (b * -0.25), fma(x, y, c));
} else {
tmp = fma(0.0625, (t * z), fma(a, (b * -0.25), c));
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(t * z) <= -1e+66) tmp = fma(Float64(t * 0.0625), z, Float64(b * Float64(a * -0.25))); elseif (Float64(t * z) <= 1e+84) tmp = fma(a, Float64(b * -0.25), fma(x, y, c)); else tmp = fma(0.0625, Float64(t * z), fma(a, Float64(b * -0.25), c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(t * z), $MachinePrecision], -1e+66], N[(N[(t * 0.0625), $MachinePrecision] * z + N[(b * N[(a * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 1e+84], N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision], N[(0.0625 * N[(t * z), $MachinePrecision] + N[(a * N[(b * -0.25), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \cdot z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot 0.0625, z, b \cdot \left(a \cdot -0.25\right)\right)\\
\mathbf{elif}\;t \cdot z \leq 10^{+84}:\\
\;\;\;\;\mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(0.0625, t \cdot z, \mathsf{fma}\left(a, b \cdot -0.25, c\right)\right)\\
\end{array}
\end{array}
if (*.f64 z t) < -9.99999999999999945e65Initial program 94.5%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lift-+.f64N/A
+-commutativeN/A
associate--l+N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
div-invN/A
lower-*.f64N/A
metadata-evalN/A
lower--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites98.2%
Taylor expanded in a around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6489.4
Applied rewrites89.4%
if -9.99999999999999945e65 < (*.f64 z t) < 1.00000000000000006e84Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6497.3
Applied rewrites97.3%
if 1.00000000000000006e84 < (*.f64 z t) Initial program 92.7%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
associate-+l+N/A
lower-fma.f64N/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6490.4
Applied rewrites90.4%
Final simplification94.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* a (* b -0.25))))
(if (<= (* a b) -5e+180)
t_1
(if (<= (* a b) -5e-144)
(fma 0.0625 (* t z) c)
(if (<= (* a b) 5e+198) (fma x y c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a * (b * -0.25);
double tmp;
if ((a * b) <= -5e+180) {
tmp = t_1;
} else if ((a * b) <= -5e-144) {
tmp = fma(0.0625, (t * z), c);
} else if ((a * b) <= 5e+198) {
tmp = fma(x, y, c);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(a * Float64(b * -0.25)) tmp = 0.0 if (Float64(a * b) <= -5e+180) tmp = t_1; elseif (Float64(a * b) <= -5e-144) tmp = fma(0.0625, Float64(t * z), c); elseif (Float64(a * b) <= 5e+198) tmp = fma(x, y, c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -5e+180], t$95$1, If[LessEqual[N[(a * b), $MachinePrecision], -5e-144], N[(0.0625 * N[(t * z), $MachinePrecision] + c), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 5e+198], N[(x * y + c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot -0.25\right)\\
\mathbf{if}\;a \cdot b \leq -5 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot b \leq -5 \cdot 10^{-144}:\\
\;\;\;\;\mathsf{fma}\left(0.0625, t \cdot z, c\right)\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{+198}:\\
\;\;\;\;\mathsf{fma}\left(x, y, c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 a b) < -4.9999999999999996e180 or 5.00000000000000049e198 < (*.f64 a b) Initial program 91.8%
Taylor expanded in a around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6481.1
Applied rewrites81.1%
if -4.9999999999999996e180 < (*.f64 a b) < -4.9999999999999998e-144Initial program 100.0%
Taylor expanded in x around inf
lower-*.f6424.7
Applied rewrites24.7%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
lower-*.f6480.8
Applied rewrites80.8%
Taylor expanded in a around 0
Applied rewrites64.1%
if -4.9999999999999998e-144 < (*.f64 a b) < 5.00000000000000049e198Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6478.3
Applied rewrites78.3%
Taylor expanded in a around 0
Applied rewrites69.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (fma a (* b -0.25) (fma x y c))))
(if (<= (* a b) -1e+74)
t_1
(if (<= (* a b) 1e+35) (fma (* t 0.0625) z (fma x y c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = fma(a, (b * -0.25), fma(x, y, c));
double tmp;
if ((a * b) <= -1e+74) {
tmp = t_1;
} else if ((a * b) <= 1e+35) {
tmp = fma((t * 0.0625), z, fma(x, y, c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = fma(a, Float64(b * -0.25), fma(x, y, c)) tmp = 0.0 if (Float64(a * b) <= -1e+74) tmp = t_1; elseif (Float64(a * b) <= 1e+35) tmp = fma(Float64(t * 0.0625), z, fma(x, y, c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -1e+74], t$95$1, If[LessEqual[N[(a * b), $MachinePrecision], 1e+35], N[(N[(t * 0.0625), $MachinePrecision] * z + N[(x * y + c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{if}\;a \cdot b \leq -1 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot b \leq 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot 0.0625, z, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 a b) < -9.99999999999999952e73 or 9.9999999999999997e34 < (*.f64 a b) Initial program 95.2%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6484.4
Applied rewrites84.4%
if -9.99999999999999952e73 < (*.f64 a b) < 9.9999999999999997e34Initial program 100.0%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lift-+.f64N/A
+-commutativeN/A
associate--l+N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
div-invN/A
lower-*.f64N/A
metadata-evalN/A
lower--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites100.0%
Taylor expanded in a around 0
+-commutativeN/A
lower-fma.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (* t z) -1e+137)
(fma 0.0625 (* t z) c)
(if (<= (* t z) 1e+285)
(fma a (* b -0.25) (fma x y c))
(* 0.0625 (* t z)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t * z) <= -1e+137) {
tmp = fma(0.0625, (t * z), c);
} else if ((t * z) <= 1e+285) {
tmp = fma(a, (b * -0.25), fma(x, y, c));
} else {
tmp = 0.0625 * (t * z);
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(t * z) <= -1e+137) tmp = fma(0.0625, Float64(t * z), c); elseif (Float64(t * z) <= 1e+285) tmp = fma(a, Float64(b * -0.25), fma(x, y, c)); else tmp = Float64(0.0625 * Float64(t * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(t * z), $MachinePrecision], -1e+137], N[(0.0625 * N[(t * z), $MachinePrecision] + c), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 1e+285], N[(a * N[(b * -0.25), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision], N[(0.0625 * N[(t * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \cdot z \leq -1 \cdot 10^{+137}:\\
\;\;\;\;\mathsf{fma}\left(0.0625, t \cdot z, c\right)\\
\mathbf{elif}\;t \cdot z \leq 10^{+285}:\\
\;\;\;\;\mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(x, y, c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.0625 \cdot \left(t \cdot z\right)\\
\end{array}
\end{array}
if (*.f64 z t) < -1e137Initial program 93.9%
Taylor expanded in x around inf
lower-*.f6412.3
Applied rewrites12.3%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
lower-*.f6492.0
Applied rewrites92.0%
Taylor expanded in a around 0
Applied rewrites76.9%
if -1e137 < (*.f64 z t) < 9.9999999999999998e284Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6491.8
Applied rewrites91.8%
if 9.9999999999999998e284 < (*.f64 z t) Initial program 74.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f6476.4
Applied rewrites76.4%
Final simplification88.2%
(FPCore (x y z t a b c) :precision binary64 (let* ((t_1 (* a (* b -0.25)))) (if (<= (* a b) -5e+106) t_1 (if (<= (* a b) 5e+198) (fma x y c) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a * (b * -0.25);
double tmp;
if ((a * b) <= -5e+106) {
tmp = t_1;
} else if ((a * b) <= 5e+198) {
tmp = fma(x, y, c);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(a * Float64(b * -0.25)) tmp = 0.0 if (Float64(a * b) <= -5e+106) tmp = t_1; elseif (Float64(a * b) <= 5e+198) tmp = fma(x, y, c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -5e+106], t$95$1, If[LessEqual[N[(a * b), $MachinePrecision], 5e+198], N[(x * y + c), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot -0.25\right)\\
\mathbf{if}\;a \cdot b \leq -5 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{+198}:\\
\;\;\;\;\mathsf{fma}\left(x, y, c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 a b) < -4.9999999999999998e106 or 5.00000000000000049e198 < (*.f64 a b) Initial program 92.8%
Taylor expanded in a around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6475.8
Applied rewrites75.8%
if -4.9999999999999998e106 < (*.f64 a b) < 5.00000000000000049e198Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6474.5
Applied rewrites74.5%
Taylor expanded in a around 0
Applied rewrites65.1%
(FPCore (x y z t a b c) :precision binary64 (let* ((t_1 (* 0.0625 (* t z)))) (if (<= (* t z) -1e+66) t_1 (if (<= (* t z) 1e+187) (fma x y c) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 0.0625 * (t * z);
double tmp;
if ((t * z) <= -1e+66) {
tmp = t_1;
} else if ((t * z) <= 1e+187) {
tmp = fma(x, y, c);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(0.0625 * Float64(t * z)) tmp = 0.0 if (Float64(t * z) <= -1e+66) tmp = t_1; elseif (Float64(t * z) <= 1e+187) tmp = fma(x, y, c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(0.0625 * N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * z), $MachinePrecision], -1e+66], t$95$1, If[LessEqual[N[(t * z), $MachinePrecision], 1e+187], N[(x * y + c), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.0625 \cdot \left(t \cdot z\right)\\
\mathbf{if}\;t \cdot z \leq -1 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \cdot z \leq 10^{+187}:\\
\;\;\;\;\mathsf{fma}\left(x, y, c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -9.99999999999999945e65 or 9.99999999999999907e186 < (*.f64 z t) Initial program 92.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f6463.1
Applied rewrites63.1%
if -9.99999999999999945e65 < (*.f64 z t) < 9.99999999999999907e186Initial program 100.0%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6494.1
Applied rewrites94.1%
Taylor expanded in a around 0
Applied rewrites64.9%
Final simplification64.3%
(FPCore (x y z t a b c) :precision binary64 (fma a (* b -0.25) (fma 0.0625 (* t z) (fma x y c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return fma(a, (b * -0.25), fma(0.0625, (t * z), fma(x, y, c)));
}
function code(x, y, z, t, a, b, c) return fma(a, Float64(b * -0.25), fma(0.0625, Float64(t * z), fma(x, y, c))) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(a * N[(b * -0.25), $MachinePrecision] + N[(0.0625 * N[(t * z), $MachinePrecision] + N[(x * y + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, b \cdot -0.25, \mathsf{fma}\left(0.0625, t \cdot z, \mathsf{fma}\left(x, y, c\right)\right)\right)
\end{array}
Initial program 97.6%
Taylor expanded in x around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate-+r+N/A
+-commutativeN/A
associate-+l+N/A
lower-fma.f64N/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6498.0
Applied rewrites98.0%
(FPCore (x y z t a b c) :precision binary64 (fma x y c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return fma(x, y, c);
}
function code(x, y, z, t, a, b, c) return fma(x, y, c) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x * y + c), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, c\right)
\end{array}
Initial program 97.6%
Taylor expanded in z around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-fma.f6478.5
Applied rewrites78.5%
Taylor expanded in a around 0
Applied rewrites49.6%
(FPCore (x y z t a b c) :precision binary64 (* x y))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x * y;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: c
code = x * y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x * y;
}
def code(x, y, z, t, a, b, c): return x * y
function code(x, y, z, t, a, b, c) return Float64(x * y) end
function tmp = code(x, y, z, t, a, b, c) tmp = x * y; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x * y), $MachinePrecision]
\begin{array}{l}
\\
x \cdot y
\end{array}
Initial program 97.6%
Taylor expanded in x around inf
lower-*.f6428.5
Applied rewrites28.5%
herbie shell --seed 2024233
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, C"
:precision binary64
(+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))