
(FPCore (x y z t a b) :precision binary64 (+ (+ (* x y) (* z t)) (* a b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * t)) + (a * b);
}
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 * t)) + (a * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * t)) + (a * b);
}
def code(x, y, z, t, a, b): return ((x * y) + (z * t)) + (a * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * t)) + (a * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot y + z \cdot t\right) + a \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (+ (* x y) (* z t)) (* a b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * t)) + (a * b);
}
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 * t)) + (a * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * t)) + (a * b);
}
def code(x, y, z, t, a, b): return ((x * y) + (z * t)) + (a * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * t)) + (a * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot y + z \cdot t\right) + a \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (fma x y (fma a b (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return fma(x, y, fma(a, b, (z * t)));
}
function code(x, y, z, t, a, b) return fma(x, y, fma(a, b, Float64(z * t))) end
code[x_, y_, z_, t_, a_, b_] := N[(x * y + N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, \mathsf{fma}\left(a, b, z \cdot t\right)\right)
\end{array}
Initial program 98.8%
associate-+l+98.8%
fma-def99.6%
+-commutative99.6%
fma-def100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z t a b) :precision binary64 (+ (fma x y (* z t)) (* a b)))
double code(double x, double y, double z, double t, double a, double b) {
return fma(x, y, (z * t)) + (a * b);
}
function code(x, y, z, t, a, b) return Float64(fma(x, y, Float64(z * t)) + Float64(a * b)) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, z \cdot t\right) + a \cdot b
\end{array}
Initial program 98.8%
fma-def99.2%
Simplified99.2%
Final simplification99.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= (* a b) -2.8e+70)
(* a b)
(if (<= (* a b) -3.1e-68)
(* z t)
(if (<= (* a b) 2e-323)
(* x y)
(if (<= (* a b) 8.8e-248)
(* z t)
(if (<= (* a b) 1.02e-10) (* x y) (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -2.8e+70) {
tmp = a * b;
} else if ((a * b) <= -3.1e-68) {
tmp = z * t;
} else if ((a * b) <= 2e-323) {
tmp = x * y;
} else if ((a * b) <= 8.8e-248) {
tmp = z * t;
} else if ((a * b) <= 1.02e-10) {
tmp = x * y;
} else {
tmp = a * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a * b) <= (-2.8d+70)) then
tmp = a * b
else if ((a * b) <= (-3.1d-68)) then
tmp = z * t
else if ((a * b) <= 2d-323) then
tmp = x * y
else if ((a * b) <= 8.8d-248) then
tmp = z * t
else if ((a * b) <= 1.02d-10) then
tmp = x * y
else
tmp = a * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -2.8e+70) {
tmp = a * b;
} else if ((a * b) <= -3.1e-68) {
tmp = z * t;
} else if ((a * b) <= 2e-323) {
tmp = x * y;
} else if ((a * b) <= 8.8e-248) {
tmp = z * t;
} else if ((a * b) <= 1.02e-10) {
tmp = x * y;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a * b) <= -2.8e+70: tmp = a * b elif (a * b) <= -3.1e-68: tmp = z * t elif (a * b) <= 2e-323: tmp = x * y elif (a * b) <= 8.8e-248: tmp = z * t elif (a * b) <= 1.02e-10: tmp = x * y else: tmp = a * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -2.8e+70) tmp = Float64(a * b); elseif (Float64(a * b) <= -3.1e-68) tmp = Float64(z * t); elseif (Float64(a * b) <= 2e-323) tmp = Float64(x * y); elseif (Float64(a * b) <= 8.8e-248) tmp = Float64(z * t); elseif (Float64(a * b) <= 1.02e-10) tmp = Float64(x * y); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a * b) <= -2.8e+70) tmp = a * b; elseif ((a * b) <= -3.1e-68) tmp = z * t; elseif ((a * b) <= 2e-323) tmp = x * y; elseif ((a * b) <= 8.8e-248) tmp = z * t; elseif ((a * b) <= 1.02e-10) tmp = x * y; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a * b), $MachinePrecision], -2.8e+70], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], -3.1e-68], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e-323], N[(x * y), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 8.8e-248], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1.02e-10], N[(x * y), $MachinePrecision], N[(a * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2.8 \cdot 10^{+70}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq -3.1 \cdot 10^{-68}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{-323}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;a \cdot b \leq 8.8 \cdot 10^{-248}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 1.02 \cdot 10^{-10}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -2.7999999999999999e70 or 1.01999999999999997e-10 < (*.f64 a b) Initial program 98.2%
Taylor expanded in a around inf 69.3%
if -2.7999999999999999e70 < (*.f64 a b) < -3.0999999999999999e-68 or 1.97626e-323 < (*.f64 a b) < 8.79999999999999998e-248Initial program 97.9%
Taylor expanded in z around inf 59.8%
if -3.0999999999999999e-68 < (*.f64 a b) < 1.97626e-323 or 8.79999999999999998e-248 < (*.f64 a b) < 1.01999999999999997e-10Initial program 100.0%
Taylor expanded in x around inf 59.0%
Final simplification63.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -4.5e+122) (not (<= (* x y) 2.2e+208))) (* x y) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -4.5e+122) || !((x * y) <= 2.2e+208)) {
tmp = x * y;
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((x * y) <= (-4.5d+122)) .or. (.not. ((x * y) <= 2.2d+208))) then
tmp = x * y
else
tmp = (a * b) + (z * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -4.5e+122) || !((x * y) <= 2.2e+208)) {
tmp = x * y;
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -4.5e+122) or not ((x * y) <= 2.2e+208): tmp = x * y else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(x * y) <= -4.5e+122) || !(Float64(x * y) <= 2.2e+208)) tmp = Float64(x * y); else tmp = Float64(Float64(a * b) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((x * y) <= -4.5e+122) || ~(((x * y) <= 2.2e+208))) tmp = x * y; else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -4.5e+122], N[Not[LessEqual[N[(x * y), $MachinePrecision], 2.2e+208]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -4.5 \cdot 10^{+122} \lor \neg \left(x \cdot y \leq 2.2 \cdot 10^{+208}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -4.49999999999999997e122 or 2.20000000000000014e208 < (*.f64 x y) Initial program 95.3%
Taylor expanded in x around inf 77.5%
if -4.49999999999999997e122 < (*.f64 x y) < 2.20000000000000014e208Initial program 100.0%
Taylor expanded in x around 0 80.5%
Final simplification79.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -8.5e+25) (not (<= (* x y) 1.62e-28))) (+ (* a b) (* x y)) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -8.5e+25) || !((x * y) <= 1.62e-28)) {
tmp = (a * b) + (x * y);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((x * y) <= (-8.5d+25)) .or. (.not. ((x * y) <= 1.62d-28))) then
tmp = (a * b) + (x * y)
else
tmp = (a * b) + (z * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -8.5e+25) || !((x * y) <= 1.62e-28)) {
tmp = (a * b) + (x * y);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -8.5e+25) or not ((x * y) <= 1.62e-28): tmp = (a * b) + (x * y) else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(x * y) <= -8.5e+25) || !(Float64(x * y) <= 1.62e-28)) tmp = Float64(Float64(a * b) + Float64(x * y)); else tmp = Float64(Float64(a * b) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((x * y) <= -8.5e+25) || ~(((x * y) <= 1.62e-28))) tmp = (a * b) + (x * y); else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -8.5e+25], N[Not[LessEqual[N[(x * y), $MachinePrecision], 1.62e-28]], $MachinePrecision]], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -8.5 \cdot 10^{+25} \lor \neg \left(x \cdot y \leq 1.62 \cdot 10^{-28}\right):\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -8.5000000000000007e25 or 1.62e-28 < (*.f64 x y) Initial program 97.6%
Taylor expanded in z around 0 77.3%
if -8.5000000000000007e25 < (*.f64 x y) < 1.62e-28Initial program 100.0%
Taylor expanded in x around 0 90.2%
Final simplification83.9%
(FPCore (x y z t a b) :precision binary64 (if (<= (* a b) -1.15e+88) (+ (* a b) (* x y)) (if (<= (* a b) 8e-14) (+ (* x y) (* z t)) (+ (* a b) (* z t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -1.15e+88) {
tmp = (a * b) + (x * y);
} else if ((a * b) <= 8e-14) {
tmp = (x * y) + (z * t);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a * b) <= (-1.15d+88)) then
tmp = (a * b) + (x * y)
else if ((a * b) <= 8d-14) then
tmp = (x * y) + (z * t)
else
tmp = (a * b) + (z * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -1.15e+88) {
tmp = (a * b) + (x * y);
} else if ((a * b) <= 8e-14) {
tmp = (x * y) + (z * t);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a * b) <= -1.15e+88: tmp = (a * b) + (x * y) elif (a * b) <= 8e-14: tmp = (x * y) + (z * t) else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -1.15e+88) tmp = Float64(Float64(a * b) + Float64(x * y)); elseif (Float64(a * b) <= 8e-14) tmp = Float64(Float64(x * y) + Float64(z * t)); else tmp = Float64(Float64(a * b) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a * b) <= -1.15e+88) tmp = (a * b) + (x * y); elseif ((a * b) <= 8e-14) tmp = (x * y) + (z * t); else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a * b), $MachinePrecision], -1.15e+88], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 8e-14], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1.15 \cdot 10^{+88}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{elif}\;a \cdot b \leq 8 \cdot 10^{-14}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 a b) < -1.1500000000000001e88Initial program 100.0%
Taylor expanded in z around 0 95.4%
if -1.1500000000000001e88 < (*.f64 a b) < 7.99999999999999999e-14Initial program 99.3%
Taylor expanded in a around 0 91.4%
if 7.99999999999999999e-14 < (*.f64 a b) Initial program 96.9%
Taylor expanded in x around 0 84.8%
Final simplification90.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* a b) -4.5e+70) (not (<= (* a b) 0.0046))) (* a b) (* z t)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -4.5e+70) || !((a * b) <= 0.0046)) {
tmp = a * b;
} else {
tmp = z * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((a * b) <= (-4.5d+70)) .or. (.not. ((a * b) <= 0.0046d0))) then
tmp = a * b
else
tmp = z * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -4.5e+70) || !((a * b) <= 0.0046)) {
tmp = a * b;
} else {
tmp = z * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a * b) <= -4.5e+70) or not ((a * b) <= 0.0046): tmp = a * b else: tmp = z * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a * b) <= -4.5e+70) || !(Float64(a * b) <= 0.0046)) tmp = Float64(a * b); else tmp = Float64(z * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((a * b) <= -4.5e+70) || ~(((a * b) <= 0.0046))) tmp = a * b; else tmp = z * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -4.5e+70], N[Not[LessEqual[N[(a * b), $MachinePrecision], 0.0046]], $MachinePrecision]], N[(a * b), $MachinePrecision], N[(z * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -4.5 \cdot 10^{+70} \lor \neg \left(a \cdot b \leq 0.0046\right):\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;z \cdot t\\
\end{array}
\end{array}
if (*.f64 a b) < -4.4999999999999999e70 or 0.0045999999999999999 < (*.f64 a b) Initial program 98.1%
Taylor expanded in a around inf 70.9%
if -4.4999999999999999e70 < (*.f64 a b) < 0.0045999999999999999Initial program 99.3%
Taylor expanded in z around inf 46.8%
Final simplification56.9%
(FPCore (x y z t a b) :precision binary64 (+ (* a b) (+ (* x y) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + ((x * y) + (z * t));
}
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 = (a * b) + ((x * y) + (z * t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + ((x * y) + (z * t));
}
def code(x, y, z, t, a, b): return (a * b) + ((x * y) + (z * t))
function code(x, y, z, t, a, b) return Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) end
function tmp = code(x, y, z, t, a, b) tmp = (a * b) + ((x * y) + (z * t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b + \left(x \cdot y + z \cdot t\right)
\end{array}
Initial program 98.8%
Final simplification98.8%
(FPCore (x y z t a b) :precision binary64 (* a b))
double code(double x, double y, double z, double t, double a, double b) {
return a * b;
}
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 = a * b
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a * b;
}
def code(x, y, z, t, a, b): return a * b
function code(x, y, z, t, a, b) return Float64(a * b) end
function tmp = code(x, y, z, t, a, b) tmp = a * b; end
code[x_, y_, z_, t_, a_, b_] := N[(a * b), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b
\end{array}
Initial program 98.8%
Taylor expanded in a around inf 36.2%
Final simplification36.2%
herbie shell --seed 2023318
(FPCore (x y z t a b)
:name "Linear.V3:$cdot from linear-1.19.1.3, B"
:precision binary64
(+ (+ (* x y) (* z t)) (* a b)))