
(FPCore (x y z) :precision binary64 (+ (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * (y + z)) + (z * 5.0d0)
end function
public static double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
def code(x, y, z): return (x * (y + z)) + (z * 5.0)
function code(x, y, z) return Float64(Float64(x * Float64(y + z)) + Float64(z * 5.0)) end
function tmp = code(x, y, z) tmp = (x * (y + z)) + (z * 5.0); end
code[x_, y_, z_] := N[(N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y + z\right) + z \cdot 5
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * (y + z)) + (z * 5.0d0)
end function
public static double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
def code(x, y, z): return (x * (y + z)) + (z * 5.0)
function code(x, y, z) return Float64(Float64(x * Float64(y + z)) + Float64(z * 5.0)) end
function tmp = code(x, y, z) tmp = (x * (y + z)) + (z * 5.0); end
code[x_, y_, z_] := N[(N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y + z\right) + z \cdot 5
\end{array}
(FPCore (x y z) :precision binary64 (fma z 5.0 (* x (+ z y))))
double code(double x, double y, double z) {
return fma(z, 5.0, (x * (z + y)));
}
function code(x, y, z) return fma(z, 5.0, Float64(x * Float64(z + y))) end
code[x_, y_, z_] := N[(z * 5.0 + N[(x * N[(z + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, 5, x \cdot \left(z + y\right)\right)
\end{array}
Initial program 99.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
Applied rewrites100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(if (<= x -2.8e+159)
(* z x)
(if (<= x -1.75e-12)
(* x y)
(if (<= x 0.0052) (* z 5.0) (if (<= x 2.15e+201) (* x y) (* z x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.8e+159) {
tmp = z * x;
} else if (x <= -1.75e-12) {
tmp = x * y;
} else if (x <= 0.0052) {
tmp = z * 5.0;
} else if (x <= 2.15e+201) {
tmp = x * y;
} else {
tmp = z * x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.8d+159)) then
tmp = z * x
else if (x <= (-1.75d-12)) then
tmp = x * y
else if (x <= 0.0052d0) then
tmp = z * 5.0d0
else if (x <= 2.15d+201) then
tmp = x * y
else
tmp = z * x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.8e+159) {
tmp = z * x;
} else if (x <= -1.75e-12) {
tmp = x * y;
} else if (x <= 0.0052) {
tmp = z * 5.0;
} else if (x <= 2.15e+201) {
tmp = x * y;
} else {
tmp = z * x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.8e+159: tmp = z * x elif x <= -1.75e-12: tmp = x * y elif x <= 0.0052: tmp = z * 5.0 elif x <= 2.15e+201: tmp = x * y else: tmp = z * x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.8e+159) tmp = Float64(z * x); elseif (x <= -1.75e-12) tmp = Float64(x * y); elseif (x <= 0.0052) tmp = Float64(z * 5.0); elseif (x <= 2.15e+201) tmp = Float64(x * y); else tmp = Float64(z * x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.8e+159) tmp = z * x; elseif (x <= -1.75e-12) tmp = x * y; elseif (x <= 0.0052) tmp = z * 5.0; elseif (x <= 2.15e+201) tmp = x * y; else tmp = z * x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.8e+159], N[(z * x), $MachinePrecision], If[LessEqual[x, -1.75e-12], N[(x * y), $MachinePrecision], If[LessEqual[x, 0.0052], N[(z * 5.0), $MachinePrecision], If[LessEqual[x, 2.15e+201], N[(x * y), $MachinePrecision], N[(z * x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+159}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;x \leq -1.75 \cdot 10^{-12}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq 0.0052:\\
\;\;\;\;z \cdot 5\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{+201}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z \cdot x\\
\end{array}
\end{array}
if x < -2.8000000000000001e159 or 2.14999999999999995e201 < x Initial program 100.0%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
Taylor expanded in z around inf
Applied rewrites68.0%
if -2.8000000000000001e159 < x < -1.75e-12 or 0.0051999999999999998 < x < 2.14999999999999995e201Initial program 98.7%
Taylor expanded in y around inf
lower-*.f6462.3
Applied rewrites62.3%
if -1.75e-12 < x < 0.0051999999999999998Initial program 99.9%
Taylor expanded in x around 0
lower-*.f6477.2
Applied rewrites77.2%
Final simplification70.6%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ z y)))) (if (<= x -5.0) t_0 (if (<= x 0.47) (+ (* x y) (* z 5.0)) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 0.47) {
tmp = (x * y) + (z * 5.0);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (z + y)
if (x <= (-5.0d0)) then
tmp = t_0
else if (x <= 0.47d0) then
tmp = (x * y) + (z * 5.0d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 0.47) {
tmp = (x * y) + (z * 5.0);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (z + y) tmp = 0 if x <= -5.0: tmp = t_0 elif x <= 0.47: tmp = (x * y) + (z * 5.0) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(z + y)) tmp = 0.0 if (x <= -5.0) tmp = t_0; elseif (x <= 0.47) tmp = Float64(Float64(x * y) + Float64(z * 5.0)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (z + y); tmp = 0.0; if (x <= -5.0) tmp = t_0; elseif (x <= 0.47) tmp = (x * y) + (z * 5.0); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(z + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.0], t$95$0, If[LessEqual[x, 0.47], N[(N[(x * y), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(z + y\right)\\
\mathbf{if}\;x \leq -5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.47:\\
\;\;\;\;x \cdot y + z \cdot 5\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5 or 0.46999999999999997 < x Initial program 99.2%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.5
Applied rewrites99.5%
if -5 < x < 0.46999999999999997Initial program 99.9%
Taylor expanded in y around inf
lower-*.f6498.9
Applied rewrites98.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ z y)))) (if (<= x -5.0) t_0 (if (<= x 0.47) (fma z 5.0 (* x y)) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 0.47) {
tmp = fma(z, 5.0, (x * y));
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(z + y)) tmp = 0.0 if (x <= -5.0) tmp = t_0; elseif (x <= 0.47) tmp = fma(z, 5.0, Float64(x * y)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(z + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.0], t$95$0, If[LessEqual[x, 0.47], N[(z * 5.0 + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(z + y\right)\\
\mathbf{if}\;x \leq -5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.47:\\
\;\;\;\;\mathsf{fma}\left(z, 5, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5 or 0.46999999999999997 < x Initial program 99.2%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.5
Applied rewrites99.5%
if -5 < x < 0.46999999999999997Initial program 99.9%
lift-+.f64N/A
lift-*.f64N/A
lift-+.f64N/A
distribute-rgt-inN/A
associate-+l+N/A
+-commutativeN/A
lift-*.f64N/A
distribute-lft-outN/A
lower-fma.f64N/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f6499.9
Applied rewrites99.9%
Taylor expanded in x around 0
Applied rewrites98.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ z y)))) (if (<= x -5.5e-12) t_0 (if (<= x 0.17) (fma z 5.0 (* z x)) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -5.5e-12) {
tmp = t_0;
} else if (x <= 0.17) {
tmp = fma(z, 5.0, (z * x));
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(z + y)) tmp = 0.0 if (x <= -5.5e-12) tmp = t_0; elseif (x <= 0.17) tmp = fma(z, 5.0, Float64(z * x)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(z + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5e-12], t$95$0, If[LessEqual[x, 0.17], N[(z * 5.0 + N[(z * x), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(z + y\right)\\
\mathbf{if}\;x \leq -5.5 \cdot 10^{-12}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.17:\\
\;\;\;\;\mathsf{fma}\left(z, 5, z \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5000000000000004e-12 or 0.170000000000000012 < x Initial program 99.2%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.5
Applied rewrites99.5%
if -5.5000000000000004e-12 < x < 0.170000000000000012Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
Applied rewrites100.0%
Taylor expanded in y around 0
lower-*.f6478.2
Applied rewrites78.2%
Final simplification89.4%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ z y)))) (if (<= x -5.5e-12) t_0 (if (<= x 0.17) (* z (+ 5.0 x)) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -5.5e-12) {
tmp = t_0;
} else if (x <= 0.17) {
tmp = z * (5.0 + x);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (z + y)
if (x <= (-5.5d-12)) then
tmp = t_0
else if (x <= 0.17d0) then
tmp = z * (5.0d0 + x)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -5.5e-12) {
tmp = t_0;
} else if (x <= 0.17) {
tmp = z * (5.0 + x);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (z + y) tmp = 0 if x <= -5.5e-12: tmp = t_0 elif x <= 0.17: tmp = z * (5.0 + x) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(z + y)) tmp = 0.0 if (x <= -5.5e-12) tmp = t_0; elseif (x <= 0.17) tmp = Float64(z * Float64(5.0 + x)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (z + y); tmp = 0.0; if (x <= -5.5e-12) tmp = t_0; elseif (x <= 0.17) tmp = z * (5.0 + x); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(z + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5e-12], t$95$0, If[LessEqual[x, 0.17], N[(z * N[(5.0 + x), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(z + y\right)\\
\mathbf{if}\;x \leq -5.5 \cdot 10^{-12}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.17:\\
\;\;\;\;z \cdot \left(5 + x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5000000000000004e-12 or 0.170000000000000012 < x Initial program 99.2%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.5
Applied rewrites99.5%
if -5.5000000000000004e-12 < x < 0.170000000000000012Initial program 99.9%
Taylor expanded in y around 0
distribute-rgt-inN/A
lower-*.f64N/A
lower-+.f6478.2
Applied rewrites78.2%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ z y)))) (if (<= x -1.75e-12) t_0 (if (<= x 0.0052) (* z 5.0) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -1.75e-12) {
tmp = t_0;
} else if (x <= 0.0052) {
tmp = z * 5.0;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (z + y)
if (x <= (-1.75d-12)) then
tmp = t_0
else if (x <= 0.0052d0) then
tmp = z * 5.0d0
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (z + y);
double tmp;
if (x <= -1.75e-12) {
tmp = t_0;
} else if (x <= 0.0052) {
tmp = z * 5.0;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (z + y) tmp = 0 if x <= -1.75e-12: tmp = t_0 elif x <= 0.0052: tmp = z * 5.0 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(z + y)) tmp = 0.0 if (x <= -1.75e-12) tmp = t_0; elseif (x <= 0.0052) tmp = Float64(z * 5.0); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (z + y); tmp = 0.0; if (x <= -1.75e-12) tmp = t_0; elseif (x <= 0.0052) tmp = z * 5.0; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(z + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e-12], t$95$0, If[LessEqual[x, 0.0052], N[(z * 5.0), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(z + y\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{-12}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.0052:\\
\;\;\;\;z \cdot 5\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.75e-12 or 0.0051999999999999998 < x Initial program 99.2%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.5
Applied rewrites99.5%
if -1.75e-12 < x < 0.0051999999999999998Initial program 99.9%
Taylor expanded in x around 0
lower-*.f6477.2
Applied rewrites77.2%
Final simplification88.9%
(FPCore (x y z) :precision binary64 (if (<= x -4.2e-7) (* z x) (if (<= x 5.0) (* z 5.0) (* z x))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.2e-7) {
tmp = z * x;
} else if (x <= 5.0) {
tmp = z * 5.0;
} else {
tmp = z * x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.2d-7)) then
tmp = z * x
else if (x <= 5.0d0) then
tmp = z * 5.0d0
else
tmp = z * x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.2e-7) {
tmp = z * x;
} else if (x <= 5.0) {
tmp = z * 5.0;
} else {
tmp = z * x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.2e-7: tmp = z * x elif x <= 5.0: tmp = z * 5.0 else: tmp = z * x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.2e-7) tmp = Float64(z * x); elseif (x <= 5.0) tmp = Float64(z * 5.0); else tmp = Float64(z * x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.2e-7) tmp = z * x; elseif (x <= 5.0) tmp = z * 5.0; else tmp = z * x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.2e-7], N[(z * x), $MachinePrecision], If[LessEqual[x, 5.0], N[(z * 5.0), $MachinePrecision], N[(z * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{-7}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;x \leq 5:\\
\;\;\;\;z \cdot 5\\
\mathbf{else}:\\
\;\;\;\;z \cdot x\\
\end{array}
\end{array}
if x < -4.2e-7 or 5 < x Initial program 99.2%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.5
Applied rewrites99.5%
Taylor expanded in z around inf
Applied rewrites50.7%
if -4.2e-7 < x < 5Initial program 99.9%
Taylor expanded in x around 0
lower-*.f6476.5
Applied rewrites76.5%
Final simplification63.1%
(FPCore (x y z) :precision binary64 (* z x))
double code(double x, double y, double z) {
return z * x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * x
end function
public static double code(double x, double y, double z) {
return z * x;
}
def code(x, y, z): return z * x
function code(x, y, z) return Float64(z * x) end
function tmp = code(x, y, z) tmp = z * x; end
code[x_, y_, z_] := N[(z * x), $MachinePrecision]
\begin{array}{l}
\\
z \cdot x
\end{array}
Initial program 99.6%
Taylor expanded in x around inf
lower-*.f64N/A
+-commutativeN/A
lower-+.f6463.6
Applied rewrites63.6%
Taylor expanded in z around inf
Applied rewrites28.1%
Final simplification28.1%
(FPCore (x y z) :precision binary64 (+ (* (+ x 5.0) z) (* x y)))
double code(double x, double y, double z) {
return ((x + 5.0) * z) + (x * y);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x + 5.0d0) * z) + (x * y)
end function
public static double code(double x, double y, double z) {
return ((x + 5.0) * z) + (x * y);
}
def code(x, y, z): return ((x + 5.0) * z) + (x * y)
function code(x, y, z) return Float64(Float64(Float64(x + 5.0) * z) + Float64(x * y)) end
function tmp = code(x, y, z) tmp = ((x + 5.0) * z) + (x * y); end
code[x_, y_, z_] := N[(N[(N[(x + 5.0), $MachinePrecision] * z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + 5\right) \cdot z + x \cdot y
\end{array}
herbie shell --seed 2024219
(FPCore (x y z)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, C"
:precision binary64
:alt
(! :herbie-platform default (+ (* (+ x 5) z) (* x y)))
(+ (* x (+ y z)) (* z 5.0)))