
(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 10 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 z t (fma b a (* x y))))
double code(double x, double y, double z, double t, double a, double b) {
return fma(z, t, fma(b, a, (x * y)));
}
function code(x, y, z, t, a, b) return fma(z, t, fma(b, a, Float64(x * y))) end
code[x_, y_, z_, t_, a_, b_] := N[(z * t + N[(b * a + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, t, \mathsf{fma}\left(b, a, x \cdot y\right)\right)
\end{array}
Initial program 96.1%
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
lift-*.f64N/A
lower-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6498.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6498.8
Applied rewrites98.8%
Final simplification98.8%
(FPCore (x y z t a b) :precision binary64 (if (<= (* t z) -2e-45) (fma z t (* a b)) (if (<= (* t z) 1e-22) (fma b a (* x y)) (fma z t (* x y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t * z) <= -2e-45) {
tmp = fma(z, t, (a * b));
} else if ((t * z) <= 1e-22) {
tmp = fma(b, a, (x * y));
} else {
tmp = fma(z, t, (x * y));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t * z) <= -2e-45) tmp = fma(z, t, Float64(a * b)); elseif (Float64(t * z) <= 1e-22) tmp = fma(b, a, Float64(x * y)); else tmp = fma(z, t, Float64(x * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t * z), $MachinePrecision], -2e-45], N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 1e-22], N[(b * a + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(z * t + N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \cdot z \leq -2 \cdot 10^{-45}:\\
\;\;\;\;\mathsf{fma}\left(z, t, a \cdot b\right)\\
\mathbf{elif}\;t \cdot z \leq 10^{-22}:\\
\;\;\;\;\mathsf{fma}\left(b, a, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t, x \cdot y\right)\\
\end{array}
\end{array}
if (*.f64 z t) < -1.99999999999999997e-45Initial program 95.0%
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
lift-*.f64N/A
lower-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6498.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6498.3
Applied rewrites98.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f6486.7
Applied rewrites86.7%
if -1.99999999999999997e-45 < (*.f64 z t) < 1e-22Initial program 99.1%
Taylor expanded in t around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6494.4
Applied rewrites94.4%
if 1e-22 < (*.f64 z t) Initial program 92.2%
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
lift-*.f64N/A
lower-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6497.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6497.4
Applied rewrites97.4%
Taylor expanded in b around 0
*-commutativeN/A
lower-*.f6488.4
Applied rewrites88.4%
Final simplification90.8%
(FPCore (x y z t a b) :precision binary64 (if (<= (* t z) -2e-45) (fma z t (* a b)) (if (<= (* t z) 1e-22) (fma b a (* x y)) (fma y x (* t z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t * z) <= -2e-45) {
tmp = fma(z, t, (a * b));
} else if ((t * z) <= 1e-22) {
tmp = fma(b, a, (x * y));
} else {
tmp = fma(y, x, (t * z));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t * z) <= -2e-45) tmp = fma(z, t, Float64(a * b)); elseif (Float64(t * z) <= 1e-22) tmp = fma(b, a, Float64(x * y)); else tmp = fma(y, x, Float64(t * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t * z), $MachinePrecision], -2e-45], N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 1e-22], N[(b * a + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(y * x + N[(t * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \cdot z \leq -2 \cdot 10^{-45}:\\
\;\;\;\;\mathsf{fma}\left(z, t, a \cdot b\right)\\
\mathbf{elif}\;t \cdot z \leq 10^{-22}:\\
\;\;\;\;\mathsf{fma}\left(b, a, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, x, t \cdot z\right)\\
\end{array}
\end{array}
if (*.f64 z t) < -1.99999999999999997e-45Initial program 95.0%
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
lift-*.f64N/A
lower-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6498.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6498.3
Applied rewrites98.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f6486.7
Applied rewrites86.7%
if -1.99999999999999997e-45 < (*.f64 z t) < 1e-22Initial program 99.1%
Taylor expanded in t around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6494.4
Applied rewrites94.4%
if 1e-22 < (*.f64 z t) Initial program 92.2%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6487.0
Applied rewrites87.0%
Final simplification90.4%
(FPCore (x y z t a b) :precision binary64 (if (<= (* a b) -1e+95) (fma b a (* t z)) (if (<= (* a b) 2e+69) (fma y x (* t z)) (fma b a (* x y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -1e+95) {
tmp = fma(b, a, (t * z));
} else if ((a * b) <= 2e+69) {
tmp = fma(y, x, (t * z));
} else {
tmp = fma(b, a, (x * y));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -1e+95) tmp = fma(b, a, Float64(t * z)); elseif (Float64(a * b) <= 2e+69) tmp = fma(y, x, Float64(t * z)); else tmp = fma(b, a, Float64(x * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a * b), $MachinePrecision], -1e+95], N[(b * a + N[(t * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+69], N[(y * x + N[(t * z), $MachinePrecision]), $MachinePrecision], N[(b * a + N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1 \cdot 10^{+95}:\\
\;\;\;\;\mathsf{fma}\left(b, a, t \cdot z\right)\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+69}:\\
\;\;\;\;\mathsf{fma}\left(y, x, t \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b, a, x \cdot y\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -1.00000000000000002e95Initial program 93.4%
Taylor expanded in y around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6487.0
Applied rewrites87.0%
if -1.00000000000000002e95 < (*.f64 a b) < 2.0000000000000001e69Initial program 98.0%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6492.4
Applied rewrites92.4%
if 2.0000000000000001e69 < (*.f64 a b) Initial program 92.9%
Taylor expanded in t around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6486.1
Applied rewrites86.1%
Final simplification90.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma b a (* x y))))
(if (<= (* x y) -1e+105)
t_1
(if (<= (* x y) 500000000000.0) (fma b a (* t z)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(b, a, (x * y));
double tmp;
if ((x * y) <= -1e+105) {
tmp = t_1;
} else if ((x * y) <= 500000000000.0) {
tmp = fma(b, a, (t * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(b, a, Float64(x * y)) tmp = 0.0 if (Float64(x * y) <= -1e+105) tmp = t_1; elseif (Float64(x * y) <= 500000000000.0) tmp = fma(b, a, Float64(t * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * a + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -1e+105], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], 500000000000.0], N[(b * a + N[(t * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b, a, x \cdot y\right)\\
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \cdot y \leq 500000000000:\\
\;\;\;\;\mathsf{fma}\left(b, a, t \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 x y) < -9.9999999999999994e104 or 5e11 < (*.f64 x y) Initial program 92.9%
Taylor expanded in t around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6487.5
Applied rewrites87.5%
if -9.9999999999999994e104 < (*.f64 x y) < 5e11Initial program 98.1%
Taylor expanded in y around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6488.5
Applied rewrites88.5%
Final simplification88.1%
(FPCore (x y z t a b) :precision binary64 (if (<= (* t z) -2.9e+231) (* t z) (if (<= (* t z) 1.35e+135) (fma b a (* x y)) (* t z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t * z) <= -2.9e+231) {
tmp = t * z;
} else if ((t * z) <= 1.35e+135) {
tmp = fma(b, a, (x * y));
} else {
tmp = t * z;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t * z) <= -2.9e+231) tmp = Float64(t * z); elseif (Float64(t * z) <= 1.35e+135) tmp = fma(b, a, Float64(x * y)); else tmp = Float64(t * z); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t * z), $MachinePrecision], -2.9e+231], N[(t * z), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 1.35e+135], N[(b * a + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(t * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \cdot z \leq -2.9 \cdot 10^{+231}:\\
\;\;\;\;t \cdot z\\
\mathbf{elif}\;t \cdot z \leq 1.35 \cdot 10^{+135}:\\
\;\;\;\;\mathsf{fma}\left(b, a, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot z\\
\end{array}
\end{array}
if (*.f64 z t) < -2.9000000000000001e231 or 1.34999999999999992e135 < (*.f64 z t) Initial program 85.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f6484.0
Applied rewrites84.0%
if -2.9000000000000001e231 < (*.f64 z t) < 1.34999999999999992e135Initial program 99.5%
Taylor expanded in t around 0
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6481.8
Applied rewrites81.8%
Final simplification82.3%
(FPCore (x y z t a b) :precision binary64 (if (<= (* x y) -1e+46) (* x y) (if (<= (* x y) 500000000000.0) (* t z) (* x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x * y) <= -1e+46) {
tmp = x * y;
} else if ((x * y) <= 500000000000.0) {
tmp = t * z;
} else {
tmp = x * y;
}
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) <= (-1d+46)) then
tmp = x * y
else if ((x * y) <= 500000000000.0d0) then
tmp = t * z
else
tmp = x * y
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) <= -1e+46) {
tmp = x * y;
} else if ((x * y) <= 500000000000.0) {
tmp = t * z;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x * y) <= -1e+46: tmp = x * y elif (x * y) <= 500000000000.0: tmp = t * z else: tmp = x * y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x * y) <= -1e+46) tmp = Float64(x * y); elseif (Float64(x * y) <= 500000000000.0) tmp = Float64(t * z); else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x * y) <= -1e+46) tmp = x * y; elseif ((x * y) <= 500000000000.0) tmp = t * z; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x * y), $MachinePrecision], -1e+46], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 500000000000.0], N[(t * z), $MachinePrecision], N[(x * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{+46}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq 500000000000:\\
\;\;\;\;t \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if (*.f64 x y) < -9.9999999999999999e45 or 5e11 < (*.f64 x y) Initial program 92.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f6472.1
Applied rewrites72.1%
if -9.9999999999999999e45 < (*.f64 x y) < 5e11Initial program 98.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f6448.9
Applied rewrites48.9%
Final simplification59.1%
(FPCore (x y z t a b) :precision binary64 (if (<= (* a b) -1e+95) (* a b) (if (<= (* a b) 2e+72) (* x y) (* a b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -1e+95) {
tmp = a * b;
} else if ((a * b) <= 2e+72) {
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) <= (-1d+95)) then
tmp = a * b
else if ((a * b) <= 2d+72) 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) <= -1e+95) {
tmp = a * b;
} else if ((a * b) <= 2e+72) {
tmp = x * y;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a * b) <= -1e+95: tmp = a * b elif (a * b) <= 2e+72: tmp = x * y else: tmp = a * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -1e+95) tmp = Float64(a * b); elseif (Float64(a * b) <= 2e+72) 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) <= -1e+95) tmp = a * b; elseif ((a * b) <= 2e+72) 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], -1e+95], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+72], N[(x * y), $MachinePrecision], N[(a * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1 \cdot 10^{+95}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+72}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -1.00000000000000002e95 or 1.99999999999999989e72 < (*.f64 a b) Initial program 93.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f6468.8
Applied rewrites68.8%
if -1.00000000000000002e95 < (*.f64 a b) < 1.99999999999999989e72Initial program 98.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f6450.8
Applied rewrites50.8%
Final simplification57.9%
(FPCore (x y z t a b) :precision binary64 (fma y x (fma b a (* t z))))
double code(double x, double y, double z, double t, double a, double b) {
return fma(y, x, fma(b, a, (t * z)));
}
function code(x, y, z, t, a, b) return fma(y, x, fma(b, a, Float64(t * z))) end
code[x_, y_, z_, t_, a_, b_] := N[(y * x + N[(b * a + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, x, \mathsf{fma}\left(b, a, t \cdot z\right)\right)
\end{array}
Initial program 96.1%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6497.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6497.3
Applied rewrites97.3%
(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 96.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f6432.6
Applied rewrites32.6%
Final simplification32.6%
herbie shell --seed 2024235
(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)))