
(FPCore (x y z) :precision binary64 (+ (+ (+ (+ (+ x y) y) x) z) x))
double code(double x, double y, double z) {
return ((((x + y) + y) + x) + 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 = ((((x + y) + y) + x) + z) + x
end function
public static double code(double x, double y, double z) {
return ((((x + y) + y) + x) + z) + x;
}
def code(x, y, z): return ((((x + y) + y) + x) + z) + x
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x + y) + y) + x) + z) + x) end
function tmp = code(x, y, z) tmp = ((((x + y) + y) + x) + z) + x; end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] + y), $MachinePrecision] + x), $MachinePrecision] + z), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (+ (+ (+ (+ x y) y) x) z) x))
double code(double x, double y, double z) {
return ((((x + y) + y) + x) + 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 = ((((x + y) + y) + x) + z) + x
end function
public static double code(double x, double y, double z) {
return ((((x + y) + y) + x) + z) + x;
}
def code(x, y, z): return ((((x + y) + y) + x) + z) + x
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x + y) + y) + x) + z) + x) end
function tmp = code(x, y, z) tmp = ((((x + y) + y) + x) + z) + x; end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] + y), $MachinePrecision] + x), $MachinePrecision] + z), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x
\end{array}
(FPCore (x y z) :precision binary64 (fma x 3.0 (fma y 2.0 z)))
double code(double x, double y, double z) {
return fma(x, 3.0, fma(y, 2.0, z));
}
function code(x, y, z) return fma(x, 3.0, fma(y, 2.0, z)) end
code[x_, y_, z_] := N[(x * 3.0 + N[(y * 2.0 + z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, 3, \mathsf{fma}\left(y, 2, z\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
count-299.9%
associate-+l+99.9%
associate-+r+99.9%
distribute-rgt1-in99.9%
*-commutative99.9%
fma-def100.0%
metadata-eval100.0%
count-2100.0%
*-commutative100.0%
fma-def100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z) :precision binary64 (+ z (fma x 3.0 (* y 2.0))))
double code(double x, double y, double z) {
return z + fma(x, 3.0, (y * 2.0));
}
function code(x, y, z) return Float64(z + fma(x, 3.0, Float64(y * 2.0))) end
code[x_, y_, z_] := N[(z + N[(x * 3.0 + N[(y * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z + \mathsf{fma}\left(x, 3, y \cdot 2\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
count-299.9%
associate-+l+99.9%
associate-+r+99.9%
distribute-rgt1-in99.9%
*-commutative99.9%
fma-def100.0%
metadata-eval100.0%
count-2100.0%
*-commutative100.0%
fma-def100.0%
Simplified100.0%
fma-udef99.9%
fma-udef99.9%
associate-+r+99.9%
fma-def100.0%
*-commutative100.0%
Applied egg-rr100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(if (<= z -2.06e+36)
z
(if (<= z -1.1e-217)
(* y 2.0)
(if (<= z 1.35e-233)
(* x 3.0)
(if (<= z 6.2e-188)
(* y 2.0)
(if (<= z 2.8e-57) (* x 3.0) (if (<= z 3.4e+110) (* y 2.0) z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.06e+36) {
tmp = z;
} else if (z <= -1.1e-217) {
tmp = y * 2.0;
} else if (z <= 1.35e-233) {
tmp = x * 3.0;
} else if (z <= 6.2e-188) {
tmp = y * 2.0;
} else if (z <= 2.8e-57) {
tmp = x * 3.0;
} else if (z <= 3.4e+110) {
tmp = y * 2.0;
} else {
tmp = 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 (z <= (-2.06d+36)) then
tmp = z
else if (z <= (-1.1d-217)) then
tmp = y * 2.0d0
else if (z <= 1.35d-233) then
tmp = x * 3.0d0
else if (z <= 6.2d-188) then
tmp = y * 2.0d0
else if (z <= 2.8d-57) then
tmp = x * 3.0d0
else if (z <= 3.4d+110) then
tmp = y * 2.0d0
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.06e+36) {
tmp = z;
} else if (z <= -1.1e-217) {
tmp = y * 2.0;
} else if (z <= 1.35e-233) {
tmp = x * 3.0;
} else if (z <= 6.2e-188) {
tmp = y * 2.0;
} else if (z <= 2.8e-57) {
tmp = x * 3.0;
} else if (z <= 3.4e+110) {
tmp = y * 2.0;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.06e+36: tmp = z elif z <= -1.1e-217: tmp = y * 2.0 elif z <= 1.35e-233: tmp = x * 3.0 elif z <= 6.2e-188: tmp = y * 2.0 elif z <= 2.8e-57: tmp = x * 3.0 elif z <= 3.4e+110: tmp = y * 2.0 else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.06e+36) tmp = z; elseif (z <= -1.1e-217) tmp = Float64(y * 2.0); elseif (z <= 1.35e-233) tmp = Float64(x * 3.0); elseif (z <= 6.2e-188) tmp = Float64(y * 2.0); elseif (z <= 2.8e-57) tmp = Float64(x * 3.0); elseif (z <= 3.4e+110) tmp = Float64(y * 2.0); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.06e+36) tmp = z; elseif (z <= -1.1e-217) tmp = y * 2.0; elseif (z <= 1.35e-233) tmp = x * 3.0; elseif (z <= 6.2e-188) tmp = y * 2.0; elseif (z <= 2.8e-57) tmp = x * 3.0; elseif (z <= 3.4e+110) tmp = y * 2.0; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.06e+36], z, If[LessEqual[z, -1.1e-217], N[(y * 2.0), $MachinePrecision], If[LessEqual[z, 1.35e-233], N[(x * 3.0), $MachinePrecision], If[LessEqual[z, 6.2e-188], N[(y * 2.0), $MachinePrecision], If[LessEqual[z, 2.8e-57], N[(x * 3.0), $MachinePrecision], If[LessEqual[z, 3.4e+110], N[(y * 2.0), $MachinePrecision], z]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.06 \cdot 10^{+36}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-217}:\\
\;\;\;\;y \cdot 2\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-233}:\\
\;\;\;\;x \cdot 3\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-188}:\\
\;\;\;\;y \cdot 2\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-57}:\\
\;\;\;\;x \cdot 3\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+110}:\\
\;\;\;\;y \cdot 2\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -2.06000000000000006e36 or 3.4000000000000001e110 < z Initial program 100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in z around inf 77.0%
if -2.06000000000000006e36 < z < -1.09999999999999991e-217 or 1.35e-233 < z < 6.2000000000000004e-188 or 2.7999999999999999e-57 < z < 3.4000000000000001e110Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 50.2%
if -1.09999999999999991e-217 < z < 1.35e-233 or 6.2000000000000004e-188 < z < 2.7999999999999999e-57Initial program 99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
count-299.8%
Simplified99.8%
Taylor expanded in x around inf 74.2%
Final simplification65.4%
(FPCore (x y z)
:precision binary64
(if (<= x -3.05e+125)
(* x 3.0)
(if (or (<= x -1.05e+49) (and (not (<= x -4.7e+36)) (<= x 2.9e+154)))
(+ z (* y 2.0))
(* x 3.0))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.05e+125) {
tmp = x * 3.0;
} else if ((x <= -1.05e+49) || (!(x <= -4.7e+36) && (x <= 2.9e+154))) {
tmp = z + (y * 2.0);
} else {
tmp = x * 3.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) :: tmp
if (x <= (-3.05d+125)) then
tmp = x * 3.0d0
else if ((x <= (-1.05d+49)) .or. (.not. (x <= (-4.7d+36))) .and. (x <= 2.9d+154)) then
tmp = z + (y * 2.0d0)
else
tmp = x * 3.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.05e+125) {
tmp = x * 3.0;
} else if ((x <= -1.05e+49) || (!(x <= -4.7e+36) && (x <= 2.9e+154))) {
tmp = z + (y * 2.0);
} else {
tmp = x * 3.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.05e+125: tmp = x * 3.0 elif (x <= -1.05e+49) or (not (x <= -4.7e+36) and (x <= 2.9e+154)): tmp = z + (y * 2.0) else: tmp = x * 3.0 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.05e+125) tmp = Float64(x * 3.0); elseif ((x <= -1.05e+49) || (!(x <= -4.7e+36) && (x <= 2.9e+154))) tmp = Float64(z + Float64(y * 2.0)); else tmp = Float64(x * 3.0); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.05e+125) tmp = x * 3.0; elseif ((x <= -1.05e+49) || (~((x <= -4.7e+36)) && (x <= 2.9e+154))) tmp = z + (y * 2.0); else tmp = x * 3.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.05e+125], N[(x * 3.0), $MachinePrecision], If[Or[LessEqual[x, -1.05e+49], And[N[Not[LessEqual[x, -4.7e+36]], $MachinePrecision], LessEqual[x, 2.9e+154]]], N[(z + N[(y * 2.0), $MachinePrecision]), $MachinePrecision], N[(x * 3.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.05 \cdot 10^{+125}:\\
\;\;\;\;x \cdot 3\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{+49} \lor \neg \left(x \leq -4.7 \cdot 10^{+36}\right) \land x \leq 2.9 \cdot 10^{+154}:\\
\;\;\;\;z + y \cdot 2\\
\mathbf{else}:\\
\;\;\;\;x \cdot 3\\
\end{array}
\end{array}
if x < -3.04999999999999988e125 or -1.05000000000000005e49 < x < -4.69999999999999989e36 or 2.89999999999999979e154 < x Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in x around inf 85.2%
if -3.04999999999999988e125 < x < -1.05000000000000005e49 or -4.69999999999999989e36 < x < 2.89999999999999979e154Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in x around 0 84.1%
Final simplification84.4%
(FPCore (x y z) :precision binary64 (if (or (<= y -3.2e+62) (not (<= y 1.56e+37))) (+ z (* y 2.0)) (+ (* x 2.0) (+ x z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -3.2e+62) || !(y <= 1.56e+37)) {
tmp = z + (y * 2.0);
} else {
tmp = (x * 2.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 ((y <= (-3.2d+62)) .or. (.not. (y <= 1.56d+37))) then
tmp = z + (y * 2.0d0)
else
tmp = (x * 2.0d0) + (x + z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -3.2e+62) || !(y <= 1.56e+37)) {
tmp = z + (y * 2.0);
} else {
tmp = (x * 2.0) + (x + z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -3.2e+62) or not (y <= 1.56e+37): tmp = z + (y * 2.0) else: tmp = (x * 2.0) + (x + z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -3.2e+62) || !(y <= 1.56e+37)) tmp = Float64(z + Float64(y * 2.0)); else tmp = Float64(Float64(x * 2.0) + Float64(x + z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -3.2e+62) || ~((y <= 1.56e+37))) tmp = z + (y * 2.0); else tmp = (x * 2.0) + (x + z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -3.2e+62], N[Not[LessEqual[y, 1.56e+37]], $MachinePrecision]], N[(z + N[(y * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * 2.0), $MachinePrecision] + N[(x + z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+62} \lor \neg \left(y \leq 1.56 \cdot 10^{+37}\right):\\
\;\;\;\;z + y \cdot 2\\
\mathbf{else}:\\
\;\;\;\;x \cdot 2 + \left(x + z\right)\\
\end{array}
\end{array}
if y < -3.19999999999999984e62 or 1.56000000000000008e37 < y Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in x around 0 86.9%
if -3.19999999999999984e62 < y < 1.56000000000000008e37Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around 0 91.1%
Final simplification89.5%
(FPCore (x y z) :precision binary64 (if (or (<= y -8.2e+58) (not (<= y 7.8e+38))) (+ z (* y 2.0)) (+ z (* x 3.0))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -8.2e+58) || !(y <= 7.8e+38)) {
tmp = z + (y * 2.0);
} else {
tmp = z + (x * 3.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) :: tmp
if ((y <= (-8.2d+58)) .or. (.not. (y <= 7.8d+38))) then
tmp = z + (y * 2.0d0)
else
tmp = z + (x * 3.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -8.2e+58) || !(y <= 7.8e+38)) {
tmp = z + (y * 2.0);
} else {
tmp = z + (x * 3.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -8.2e+58) or not (y <= 7.8e+38): tmp = z + (y * 2.0) else: tmp = z + (x * 3.0) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -8.2e+58) || !(y <= 7.8e+38)) tmp = Float64(z + Float64(y * 2.0)); else tmp = Float64(z + Float64(x * 3.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -8.2e+58) || ~((y <= 7.8e+38))) tmp = z + (y * 2.0); else tmp = z + (x * 3.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -8.2e+58], N[Not[LessEqual[y, 7.8e+38]], $MachinePrecision]], N[(z + N[(y * 2.0), $MachinePrecision]), $MachinePrecision], N[(z + N[(x * 3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+58} \lor \neg \left(y \leq 7.8 \cdot 10^{+38}\right):\\
\;\;\;\;z + y \cdot 2\\
\mathbf{else}:\\
\;\;\;\;z + x \cdot 3\\
\end{array}
\end{array}
if y < -8.2e58 or 7.80000000000000047e38 < y Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in x around 0 86.9%
if -8.2e58 < y < 7.80000000000000047e38Initial program 99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
count-299.9%
associate-+l+99.9%
associate-+r+99.9%
distribute-rgt1-in99.9%
*-commutative99.9%
fma-def100.0%
metadata-eval100.0%
count-2100.0%
*-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in y around 0 91.1%
Final simplification89.5%
(FPCore (x y z) :precision binary64 (+ x (+ z (* 2.0 (+ x y)))))
double code(double x, double y, double z) {
return x + (z + (2.0 * (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 + (z + (2.0d0 * (x + y)))
end function
public static double code(double x, double y, double z) {
return x + (z + (2.0 * (x + y)));
}
def code(x, y, z): return x + (z + (2.0 * (x + y)))
function code(x, y, z) return Float64(x + Float64(z + Float64(2.0 * Float64(x + y)))) end
function tmp = code(x, y, z) tmp = x + (z + (2.0 * (x + y))); end
code[x_, y_, z_] := N[(x + N[(z + N[(2.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(z + 2 \cdot \left(x + y\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (<= y -1e+116) (* y 2.0) (if (<= y 1.45e+39) z (* y 2.0))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1e+116) {
tmp = y * 2.0;
} else if (y <= 1.45e+39) {
tmp = z;
} else {
tmp = y * 2.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) :: tmp
if (y <= (-1d+116)) then
tmp = y * 2.0d0
else if (y <= 1.45d+39) then
tmp = z
else
tmp = y * 2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1e+116) {
tmp = y * 2.0;
} else if (y <= 1.45e+39) {
tmp = z;
} else {
tmp = y * 2.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1e+116: tmp = y * 2.0 elif y <= 1.45e+39: tmp = z else: tmp = y * 2.0 return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1e+116) tmp = Float64(y * 2.0); elseif (y <= 1.45e+39) tmp = z; else tmp = Float64(y * 2.0); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1e+116) tmp = y * 2.0; elseif (y <= 1.45e+39) tmp = z; else tmp = y * 2.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1e+116], N[(y * 2.0), $MachinePrecision], If[LessEqual[y, 1.45e+39], z, N[(y * 2.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+116}:\\
\;\;\;\;y \cdot 2\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+39}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;y \cdot 2\\
\end{array}
\end{array}
if y < -1.00000000000000002e116 or 1.45000000000000015e39 < y Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 71.6%
if -1.00000000000000002e116 < y < 1.45000000000000015e39Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in z around inf 46.4%
Final simplification54.9%
(FPCore (x y z) :precision binary64 z)
double code(double x, double y, double z) {
return z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z
end function
public static double code(double x, double y, double z) {
return z;
}
def code(x, y, z): return z
function code(x, y, z) return z end
function tmp = code(x, y, z) tmp = z; end
code[x_, y_, z_] := z
\begin{array}{l}
\\
z
\end{array}
Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in z around inf 36.3%
Final simplification36.3%
herbie shell --seed 2023257
(FPCore (x y z)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendInside from plot-0.2.3.4"
:precision binary64
(+ (+ (+ (+ (+ x y) y) x) z) x))