
(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 z t (* x y)) (* a b)))
double code(double x, double y, double z, double t, double a, double b) {
return fma(z, t, (x * y)) + (a * b);
}
function code(x, y, z, t, a, b) return Float64(fma(z, t, Float64(x * y)) + Float64(a * b)) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z * t + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, t, x \cdot y\right) + a \cdot b
\end{array}
Initial program 99.2%
+-commutative99.2%
fma-def99.6%
Applied egg-rr99.6%
Final simplification99.6%
(FPCore (x y z t a b) :precision binary64 (+ (* a b) (fma x y (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + fma(x, y, (z * t));
}
function code(x, y, z, t, a, b) return Float64(Float64(a * b) + fma(x, y, Float64(z * t))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(a * b), $MachinePrecision] + N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b + \mathsf{fma}\left(x, y, z \cdot t\right)
\end{array}
Initial program 99.2%
fma-def99.2%
Simplified99.2%
Final simplification99.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= (* a b) -5.4e-9)
(* a b)
(if (<= (* a b) -1.8e-215)
(* z t)
(if (<= (* a b) -2e-319)
(* x y)
(if (<= (* a b) 4.8e-188)
(* z t)
(if (<= (* a b) 2.75e-39) (* x y) (* a b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -5.4e-9) {
tmp = a * b;
} else if ((a * b) <= -1.8e-215) {
tmp = z * t;
} else if ((a * b) <= -2e-319) {
tmp = x * y;
} else if ((a * b) <= 4.8e-188) {
tmp = z * t;
} else if ((a * b) <= 2.75e-39) {
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) <= (-5.4d-9)) then
tmp = a * b
else if ((a * b) <= (-1.8d-215)) then
tmp = z * t
else if ((a * b) <= (-2d-319)) then
tmp = x * y
else if ((a * b) <= 4.8d-188) then
tmp = z * t
else if ((a * b) <= 2.75d-39) 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) <= -5.4e-9) {
tmp = a * b;
} else if ((a * b) <= -1.8e-215) {
tmp = z * t;
} else if ((a * b) <= -2e-319) {
tmp = x * y;
} else if ((a * b) <= 4.8e-188) {
tmp = z * t;
} else if ((a * b) <= 2.75e-39) {
tmp = x * y;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a * b) <= -5.4e-9: tmp = a * b elif (a * b) <= -1.8e-215: tmp = z * t elif (a * b) <= -2e-319: tmp = x * y elif (a * b) <= 4.8e-188: tmp = z * t elif (a * b) <= 2.75e-39: tmp = x * y else: tmp = a * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -5.4e-9) tmp = Float64(a * b); elseif (Float64(a * b) <= -1.8e-215) tmp = Float64(z * t); elseif (Float64(a * b) <= -2e-319) tmp = Float64(x * y); elseif (Float64(a * b) <= 4.8e-188) tmp = Float64(z * t); elseif (Float64(a * b) <= 2.75e-39) 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) <= -5.4e-9) tmp = a * b; elseif ((a * b) <= -1.8e-215) tmp = z * t; elseif ((a * b) <= -2e-319) tmp = x * y; elseif ((a * b) <= 4.8e-188) tmp = z * t; elseif ((a * b) <= 2.75e-39) 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], -5.4e-9], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], -1.8e-215], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], -2e-319], N[(x * y), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 4.8e-188], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2.75e-39], N[(x * y), $MachinePrecision], N[(a * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -5.4 \cdot 10^{-9}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq -1.8 \cdot 10^{-215}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq -2 \cdot 10^{-319}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;a \cdot b \leq 4.8 \cdot 10^{-188}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 2.75 \cdot 10^{-39}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -5.4000000000000004e-9 or 2.75000000000000009e-39 < (*.f64 a b) Initial program 99.3%
Taylor expanded in a around inf 64.8%
if -5.4000000000000004e-9 < (*.f64 a b) < -1.7999999999999999e-215 or -1.99998e-319 < (*.f64 a b) < 4.8e-188Initial program 98.6%
+-commutative98.6%
fma-def100.0%
Applied egg-rr100.0%
Taylor expanded in z around inf 65.6%
if -1.7999999999999999e-215 < (*.f64 a b) < -1.99998e-319 or 4.8e-188 < (*.f64 a b) < 2.75000000000000009e-39Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Applied egg-rr100.0%
Taylor expanded in x around inf 71.5%
Final simplification65.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -5.3e+170) (not (<= (* x y) 6.7e+193))) (* 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) <= -5.3e+170) || !((x * y) <= 6.7e+193)) {
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) <= (-5.3d+170)) .or. (.not. ((x * y) <= 6.7d+193))) 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) <= -5.3e+170) || !((x * y) <= 6.7e+193)) {
tmp = x * y;
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -5.3e+170) or not ((x * y) <= 6.7e+193): 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) <= -5.3e+170) || !(Float64(x * y) <= 6.7e+193)) 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) <= -5.3e+170) || ~(((x * y) <= 6.7e+193))) 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], -5.3e+170], N[Not[LessEqual[N[(x * y), $MachinePrecision], 6.7e+193]], $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 -5.3 \cdot 10^{+170} \lor \neg \left(x \cdot y \leq 6.7 \cdot 10^{+193}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -5.30000000000000003e170 or 6.7000000000000003e193 < (*.f64 x y) Initial program 96.5%
+-commutative96.5%
fma-def98.2%
Applied egg-rr98.2%
Taylor expanded in x around inf 87.2%
if -5.30000000000000003e170 < (*.f64 x y) < 6.7000000000000003e193Initial program 100.0%
Taylor expanded in x around 0 84.2%
Final simplification84.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -2.15e+51) (not (<= (* x y) 600.0))) (+ (* 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 (((x * y) <= -2.15e+51) || !((x * y) <= 600.0)) {
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 (((x * y) <= (-2.15d+51)) .or. (.not. ((x * y) <= 600.0d0))) 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 (((x * y) <= -2.15e+51) || !((x * y) <= 600.0)) {
tmp = (x * y) + (z * t);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -2.15e+51) or not ((x * y) <= 600.0): 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(x * y) <= -2.15e+51) || !(Float64(x * y) <= 600.0)) 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 (((x * y) <= -2.15e+51) || ~(((x * y) <= 600.0))) tmp = (x * y) + (z * t); 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], -2.15e+51], N[Not[LessEqual[N[(x * y), $MachinePrecision], 600.0]], $MachinePrecision]], 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}\;x \cdot y \leq -2.15 \cdot 10^{+51} \lor \neg \left(x \cdot y \leq 600\right):\\
\;\;\;\;x \cdot y + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -2.1499999999999999e51 or 600 < (*.f64 x y) Initial program 98.1%
+-commutative98.1%
fma-def99.1%
Applied egg-rr99.1%
Taylor expanded in a around 0 82.3%
if -2.1499999999999999e51 < (*.f64 x y) < 600Initial program 100.0%
Taylor expanded in x around 0 92.0%
Final simplification87.9%
(FPCore (x y z t a b) :precision binary64 (if (<= (* x y) -5.5e-31) (+ (* x y) (* a b)) (if (<= (* x y) 350.0) (+ (* a b) (* z t)) (+ (* x y) (* z t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x * y) <= -5.5e-31) {
tmp = (x * y) + (a * b);
} else if ((x * y) <= 350.0) {
tmp = (a * b) + (z * t);
} else {
tmp = (x * y) + (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) <= (-5.5d-31)) then
tmp = (x * y) + (a * b)
else if ((x * y) <= 350.0d0) then
tmp = (a * b) + (z * t)
else
tmp = (x * y) + (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) <= -5.5e-31) {
tmp = (x * y) + (a * b);
} else if ((x * y) <= 350.0) {
tmp = (a * b) + (z * t);
} else {
tmp = (x * y) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x * y) <= -5.5e-31: tmp = (x * y) + (a * b) elif (x * y) <= 350.0: tmp = (a * b) + (z * t) else: tmp = (x * y) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x * y) <= -5.5e-31) tmp = Float64(Float64(x * y) + Float64(a * b)); elseif (Float64(x * y) <= 350.0) tmp = Float64(Float64(a * b) + Float64(z * t)); else tmp = Float64(Float64(x * y) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x * y) <= -5.5e-31) tmp = (x * y) + (a * b); elseif ((x * y) <= 350.0) tmp = (a * b) + (z * t); else tmp = (x * y) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x * y), $MachinePrecision], -5.5e-31], N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 350.0], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -5.5 \cdot 10^{-31}:\\
\;\;\;\;x \cdot y + a \cdot b\\
\mathbf{elif}\;x \cdot y \leq 350:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -5.49999999999999958e-31Initial program 98.7%
Taylor expanded in x around inf 86.1%
if -5.49999999999999958e-31 < (*.f64 x y) < 350Initial program 100.0%
Taylor expanded in x around 0 95.9%
if 350 < (*.f64 x y) Initial program 98.0%
+-commutative98.0%
fma-def98.0%
Applied egg-rr98.0%
Taylor expanded in a around 0 81.0%
Final simplification90.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* a b) -4.1e-11) (not (<= (* a b) 1.2e+25))) (* a b) (* z t)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -4.1e-11) || !((a * b) <= 1.2e+25)) {
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.1d-11)) .or. (.not. ((a * b) <= 1.2d+25))) 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.1e-11) || !((a * b) <= 1.2e+25)) {
tmp = a * b;
} else {
tmp = z * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a * b) <= -4.1e-11) or not ((a * b) <= 1.2e+25): 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.1e-11) || !(Float64(a * b) <= 1.2e+25)) 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.1e-11) || ~(((a * b) <= 1.2e+25))) 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.1e-11], N[Not[LessEqual[N[(a * b), $MachinePrecision], 1.2e+25]], $MachinePrecision]], N[(a * b), $MachinePrecision], N[(z * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -4.1 \cdot 10^{-11} \lor \neg \left(a \cdot b \leq 1.2 \cdot 10^{+25}\right):\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;z \cdot t\\
\end{array}
\end{array}
if (*.f64 a b) < -4.1000000000000001e-11 or 1.19999999999999998e25 < (*.f64 a b) Initial program 99.3%
Taylor expanded in a around inf 66.3%
if -4.1000000000000001e-11 < (*.f64 a b) < 1.19999999999999998e25Initial program 99.1%
+-commutative99.1%
fma-def100.0%
Applied egg-rr100.0%
Taylor expanded in z around inf 53.6%
Final simplification60.6%
(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 99.2%
Final simplification99.2%
(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 99.2%
Taylor expanded in a around inf 40.0%
Final simplification40.0%
herbie shell --seed 2024021
(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)))