
(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 (* (+ z y) x)))
double code(double x, double y, double z) {
return fma(z, 5.0, ((z + y) * x));
}
function code(x, y, z) return fma(z, 5.0, Float64(Float64(z + y) * x)) end
code[x_, y_, z_] := N[(z * 5.0 + N[(N[(z + y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, 5, \left(z + y\right) \cdot x\right)
\end{array}
Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+251)
(* y x)
(if (<= x -9.5e+36)
(* x z)
(if (<= x -7.5e-11) (* y x) (if (<= x 5.0) (* 5.0 z) (* x z))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+251) {
tmp = y * x;
} else if (x <= -9.5e+36) {
tmp = x * z;
} else if (x <= -7.5e-11) {
tmp = y * x;
} else if (x <= 5.0) {
tmp = 5.0 * z;
} else {
tmp = x * z;
}
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 <= (-1d+251)) then
tmp = y * x
else if (x <= (-9.5d+36)) then
tmp = x * z
else if (x <= (-7.5d-11)) then
tmp = y * x
else if (x <= 5.0d0) then
tmp = 5.0d0 * z
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+251) {
tmp = y * x;
} else if (x <= -9.5e+36) {
tmp = x * z;
} else if (x <= -7.5e-11) {
tmp = y * x;
} else if (x <= 5.0) {
tmp = 5.0 * z;
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+251: tmp = y * x elif x <= -9.5e+36: tmp = x * z elif x <= -7.5e-11: tmp = y * x elif x <= 5.0: tmp = 5.0 * z else: tmp = x * z return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+251) tmp = Float64(y * x); elseif (x <= -9.5e+36) tmp = Float64(x * z); elseif (x <= -7.5e-11) tmp = Float64(y * x); elseif (x <= 5.0) tmp = Float64(5.0 * z); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+251) tmp = y * x; elseif (x <= -9.5e+36) tmp = x * z; elseif (x <= -7.5e-11) tmp = y * x; elseif (x <= 5.0) tmp = 5.0 * z; else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+251], N[(y * x), $MachinePrecision], If[LessEqual[x, -9.5e+36], N[(x * z), $MachinePrecision], If[LessEqual[x, -7.5e-11], N[(y * x), $MachinePrecision], If[LessEqual[x, 5.0], N[(5.0 * z), $MachinePrecision], N[(x * z), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+251}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{+36}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;x \leq -7.5 \cdot 10^{-11}:\\
\;\;\;\;y \cdot x\\
\mathbf{elif}\;x \leq 5:\\
\;\;\;\;5 \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if x < -1e251 or -9.49999999999999974e36 < x < -7.5e-11Initial program 99.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f6478.1
Applied rewrites78.1%
if -1e251 < x < -9.49999999999999974e36 or 5 < x Initial program 100.0%
Taylor expanded in y around 0
distribute-rgt-inN/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6462.8
Applied rewrites62.8%
Taylor expanded in x around inf
Applied rewrites62.7%
if -7.5e-11 < x < 5Initial program 99.8%
Taylor expanded in x around 0
lower-*.f6477.5
Applied rewrites77.5%
Final simplification71.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -34000000.0) (not (<= x 5.0))) (* (+ z y) x) (fma y x (* 5.0 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 5.0)) {
tmp = (z + y) * x;
} else {
tmp = fma(y, x, (5.0 * z));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if ((x <= -34000000.0) || !(x <= 5.0)) tmp = Float64(Float64(z + y) * x); else tmp = fma(y, x, Float64(5.0 * z)); end return tmp end
code[x_, y_, z_] := If[Or[LessEqual[x, -34000000.0], N[Not[LessEqual[x, 5.0]], $MachinePrecision]], N[(N[(z + y), $MachinePrecision] * x), $MachinePrecision], N[(y * x + N[(5.0 * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000 \lor \neg \left(x \leq 5\right):\\
\;\;\;\;\left(z + y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, x, 5 \cdot z\right)\\
\end{array}
\end{array}
if x < -3.4e7 or 5 < x Initial program 100.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
lift-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
+-commutativeN/A
distribute-rgt-inN/A
lift-*.f64N/A
associate-+r+N/A
distribute-lft-inN/A
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6497.6
Applied rewrites97.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.7
Applied rewrites99.7%
if -3.4e7 < x < 5Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
lift-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
+-commutativeN/A
distribute-rgt-inN/A
lift-*.f64N/A
associate-+r+N/A
distribute-lft-inN/A
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6499.9
Applied rewrites99.9%
Taylor expanded in x around 0
Applied rewrites98.6%
Final simplification99.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.084) (not (<= x 2.3e-8))) (* (+ z y) x) (fma z 5.0 (* x z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.084) || !(x <= 2.3e-8)) {
tmp = (z + y) * x;
} else {
tmp = fma(z, 5.0, (x * z));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if ((x <= -0.084) || !(x <= 2.3e-8)) tmp = Float64(Float64(z + y) * x); else tmp = fma(z, 5.0, Float64(x * z)); end return tmp end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.084], N[Not[LessEqual[x, 2.3e-8]], $MachinePrecision]], N[(N[(z + y), $MachinePrecision] * x), $MachinePrecision], N[(z * 5.0 + N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.084 \lor \neg \left(x \leq 2.3 \cdot 10^{-8}\right):\\
\;\;\;\;\left(z + y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, 5, x \cdot z\right)\\
\end{array}
\end{array}
if x < -0.0840000000000000052 or 2.3000000000000001e-8 < x Initial program 100.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
lift-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
+-commutativeN/A
distribute-rgt-inN/A
lift-*.f64N/A
associate-+r+N/A
distribute-lft-inN/A
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6497.6
Applied rewrites97.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.6
Applied rewrites99.6%
if -0.0840000000000000052 < x < 2.3000000000000001e-8Initial program 99.8%
Taylor expanded in y around 0
distribute-rgt-inN/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6477.7
Applied rewrites77.7%
Applied rewrites77.8%
Final simplification88.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.084) (not (<= x 2.3e-8))) (* (+ z y) x) (* (+ 5.0 x) z)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.084) || !(x <= 2.3e-8)) {
tmp = (z + y) * x;
} else {
tmp = (5.0 + x) * z;
}
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 <= (-0.084d0)) .or. (.not. (x <= 2.3d-8))) then
tmp = (z + y) * x
else
tmp = (5.0d0 + x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.084) || !(x <= 2.3e-8)) {
tmp = (z + y) * x;
} else {
tmp = (5.0 + x) * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.084) or not (x <= 2.3e-8): tmp = (z + y) * x else: tmp = (5.0 + x) * z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.084) || !(x <= 2.3e-8)) tmp = Float64(Float64(z + y) * x); else tmp = Float64(Float64(5.0 + x) * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.084) || ~((x <= 2.3e-8))) tmp = (z + y) * x; else tmp = (5.0 + x) * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.084], N[Not[LessEqual[x, 2.3e-8]], $MachinePrecision]], N[(N[(z + y), $MachinePrecision] * x), $MachinePrecision], N[(N[(5.0 + x), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.084 \lor \neg \left(x \leq 2.3 \cdot 10^{-8}\right):\\
\;\;\;\;\left(z + y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(5 + x\right) \cdot z\\
\end{array}
\end{array}
if x < -0.0840000000000000052 or 2.3000000000000001e-8 < x Initial program 100.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
lift-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
+-commutativeN/A
distribute-rgt-inN/A
lift-*.f64N/A
associate-+r+N/A
distribute-lft-inN/A
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6497.6
Applied rewrites97.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.6
Applied rewrites99.6%
if -0.0840000000000000052 < x < 2.3000000000000001e-8Initial program 99.8%
Taylor expanded in y around 0
distribute-rgt-inN/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6477.7
Applied rewrites77.7%
Final simplification88.5%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.7e-87) (not (<= z 4.35e-156))) (* (+ 5.0 x) z) (* y x)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.7e-87) || !(z <= 4.35e-156)) {
tmp = (5.0 + x) * z;
} else {
tmp = y * 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 ((z <= (-2.7d-87)) .or. (.not. (z <= 4.35d-156))) then
tmp = (5.0d0 + x) * z
else
tmp = y * x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.7e-87) || !(z <= 4.35e-156)) {
tmp = (5.0 + x) * z;
} else {
tmp = y * x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.7e-87) or not (z <= 4.35e-156): tmp = (5.0 + x) * z else: tmp = y * x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.7e-87) || !(z <= 4.35e-156)) tmp = Float64(Float64(5.0 + x) * z); else tmp = Float64(y * x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.7e-87) || ~((z <= 4.35e-156))) tmp = (5.0 + x) * z; else tmp = y * x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.7e-87], N[Not[LessEqual[z, 4.35e-156]], $MachinePrecision]], N[(N[(5.0 + x), $MachinePrecision] * z), $MachinePrecision], N[(y * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-87} \lor \neg \left(z \leq 4.35 \cdot 10^{-156}\right):\\
\;\;\;\;\left(5 + x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;y \cdot x\\
\end{array}
\end{array}
if z < -2.69999999999999984e-87 or 4.35000000000000005e-156 < z Initial program 99.9%
Taylor expanded in y around 0
distribute-rgt-inN/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6483.0
Applied rewrites83.0%
if -2.69999999999999984e-87 < z < 4.35000000000000005e-156Initial program 99.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f6470.9
Applied rewrites70.9%
Final simplification79.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.0) (not (<= x 5.0))) (* x z) (* 5.0 z)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.0) || !(x <= 5.0)) {
tmp = x * z;
} else {
tmp = 5.0 * z;
}
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 <= (-5.0d0)) .or. (.not. (x <= 5.0d0))) then
tmp = x * z
else
tmp = 5.0d0 * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.0) || !(x <= 5.0)) {
tmp = x * z;
} else {
tmp = 5.0 * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.0) or not (x <= 5.0): tmp = x * z else: tmp = 5.0 * z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.0) || !(x <= 5.0)) tmp = Float64(x * z); else tmp = Float64(5.0 * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.0) || ~((x <= 5.0))) tmp = x * z; else tmp = 5.0 * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.0], N[Not[LessEqual[x, 5.0]], $MachinePrecision]], N[(x * z), $MachinePrecision], N[(5.0 * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5 \lor \neg \left(x \leq 5\right):\\
\;\;\;\;x \cdot z\\
\mathbf{else}:\\
\;\;\;\;5 \cdot z\\
\end{array}
\end{array}
if x < -5 or 5 < x Initial program 100.0%
Taylor expanded in y around 0
distribute-rgt-inN/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6458.1
Applied rewrites58.1%
Taylor expanded in x around inf
Applied rewrites57.8%
if -5 < x < 5Initial program 99.8%
Taylor expanded in x around 0
lower-*.f6475.9
Applied rewrites75.9%
Final simplification67.0%
(FPCore (x y z) :precision binary64 (fma y x (* (+ x 5.0) z)))
double code(double x, double y, double z) {
return fma(y, x, ((x + 5.0) * z));
}
function code(x, y, z) return fma(y, x, Float64(Float64(x + 5.0) * z)) end
code[x_, y_, z_] := N[(y * x + N[(N[(x + 5.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, x, \left(x + 5\right) \cdot z\right)
\end{array}
Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
lift-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
+-commutativeN/A
+-commutativeN/A
distribute-rgt-inN/A
lift-*.f64N/A
associate-+r+N/A
distribute-lft-inN/A
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6498.8
Applied rewrites98.8%
(FPCore (x y z) :precision binary64 (* x z))
double code(double x, double y, double z) {
return x * z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * z
end function
public static double code(double x, double y, double z) {
return x * z;
}
def code(x, y, z): return x * z
function code(x, y, z) return Float64(x * z) end
function tmp = code(x, y, z) tmp = x * z; end
code[x_, y_, z_] := N[(x * z), $MachinePrecision]
\begin{array}{l}
\\
x \cdot z
\end{array}
Initial program 99.9%
Taylor expanded in y around 0
distribute-rgt-inN/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6467.8
Applied rewrites67.8%
Taylor expanded in x around inf
Applied rewrites30.4%
Final simplification30.4%
(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 2024338
(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)))