
(FPCore (x y z) :precision binary64 (+ (+ (/ x 2.0) (* y x)) z))
double code(double x, double y, double z) {
return ((x / 2.0) + (y * 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 / 2.0d0) + (y * x)) + z
end function
public static double code(double x, double y, double z) {
return ((x / 2.0) + (y * x)) + z;
}
def code(x, y, z): return ((x / 2.0) + (y * x)) + z
function code(x, y, z) return Float64(Float64(Float64(x / 2.0) + Float64(y * x)) + z) end
function tmp = code(x, y, z) tmp = ((x / 2.0) + (y * x)) + z; end
code[x_, y_, z_] := N[(N[(N[(x / 2.0), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]
\begin{array}{l}
\\
\left(\frac{x}{2} + y \cdot x\right) + z
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (+ (/ x 2.0) (* y x)) z))
double code(double x, double y, double z) {
return ((x / 2.0) + (y * 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 / 2.0d0) + (y * x)) + z
end function
public static double code(double x, double y, double z) {
return ((x / 2.0) + (y * x)) + z;
}
def code(x, y, z): return ((x / 2.0) + (y * x)) + z
function code(x, y, z) return Float64(Float64(Float64(x / 2.0) + Float64(y * x)) + z) end
function tmp = code(x, y, z) tmp = ((x / 2.0) + (y * x)) + z; end
code[x_, y_, z_] := N[(N[(N[(x / 2.0), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]
\begin{array}{l}
\\
\left(\frac{x}{2} + y \cdot x\right) + z
\end{array}
(FPCore (x y z) :precision binary64 (fma x (+ y 0.5) z))
double code(double x, double y, double z) {
return fma(x, (y + 0.5), z);
}
function code(x, y, z) return fma(x, Float64(y + 0.5), z) end
code[x_, y_, z_] := N[(x * N[(y + 0.5), $MachinePrecision] + z), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y + 0.5, z\right)
\end{array}
Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
metadata-eval100.0%
Simplified100.0%
(FPCore (x y z)
:precision binary64
(if (<= y -3850000.0)
(* x y)
(if (<= y -1.32e-278)
(* x 0.5)
(if (<= y 1.45e-239)
z
(if (<= y 9e-155) (* x 0.5) (if (<= y 1.4e-18) z (* x y)))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -3850000.0) {
tmp = x * y;
} else if (y <= -1.32e-278) {
tmp = x * 0.5;
} else if (y <= 1.45e-239) {
tmp = z;
} else if (y <= 9e-155) {
tmp = x * 0.5;
} else if (y <= 1.4e-18) {
tmp = z;
} else {
tmp = x * y;
}
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 <= (-3850000.0d0)) then
tmp = x * y
else if (y <= (-1.32d-278)) then
tmp = x * 0.5d0
else if (y <= 1.45d-239) then
tmp = z
else if (y <= 9d-155) then
tmp = x * 0.5d0
else if (y <= 1.4d-18) then
tmp = z
else
tmp = x * y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -3850000.0) {
tmp = x * y;
} else if (y <= -1.32e-278) {
tmp = x * 0.5;
} else if (y <= 1.45e-239) {
tmp = z;
} else if (y <= 9e-155) {
tmp = x * 0.5;
} else if (y <= 1.4e-18) {
tmp = z;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -3850000.0: tmp = x * y elif y <= -1.32e-278: tmp = x * 0.5 elif y <= 1.45e-239: tmp = z elif y <= 9e-155: tmp = x * 0.5 elif y <= 1.4e-18: tmp = z else: tmp = x * y return tmp
function code(x, y, z) tmp = 0.0 if (y <= -3850000.0) tmp = Float64(x * y); elseif (y <= -1.32e-278) tmp = Float64(x * 0.5); elseif (y <= 1.45e-239) tmp = z; elseif (y <= 9e-155) tmp = Float64(x * 0.5); elseif (y <= 1.4e-18) tmp = z; else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -3850000.0) tmp = x * y; elseif (y <= -1.32e-278) tmp = x * 0.5; elseif (y <= 1.45e-239) tmp = z; elseif (y <= 9e-155) tmp = x * 0.5; elseif (y <= 1.4e-18) tmp = z; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -3850000.0], N[(x * y), $MachinePrecision], If[LessEqual[y, -1.32e-278], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, 1.45e-239], z, If[LessEqual[y, 9e-155], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, 1.4e-18], z, N[(x * y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3850000:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq -1.32 \cdot 10^{-278}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-239}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-155}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-18}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if y < -3.85e6 or 1.40000000000000006e-18 < y Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 83.1%
if -3.85e6 < y < -1.32e-278 or 1.4500000000000001e-239 < y < 9.0000000000000007e-155Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf 65.2%
Taylor expanded in y around 0 63.2%
*-commutative63.2%
Simplified63.2%
if -1.32e-278 < y < 1.4500000000000001e-239 or 9.0000000000000007e-155 < y < 1.40000000000000006e-18Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 61.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -910000000.0)
(and (not (<= x -1.45e-87))
(or (<= x -2.8e-207) (not (<= x 9.5e-94)))))
(* x (+ y 0.5))
z))
double code(double x, double y, double z) {
double tmp;
if ((x <= -910000000.0) || (!(x <= -1.45e-87) && ((x <= -2.8e-207) || !(x <= 9.5e-94)))) {
tmp = x * (y + 0.5);
} 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 ((x <= (-910000000.0d0)) .or. (.not. (x <= (-1.45d-87))) .and. (x <= (-2.8d-207)) .or. (.not. (x <= 9.5d-94))) then
tmp = x * (y + 0.5d0)
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -910000000.0) || (!(x <= -1.45e-87) && ((x <= -2.8e-207) || !(x <= 9.5e-94)))) {
tmp = x * (y + 0.5);
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -910000000.0) or (not (x <= -1.45e-87) and ((x <= -2.8e-207) or not (x <= 9.5e-94))): tmp = x * (y + 0.5) else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -910000000.0) || (!(x <= -1.45e-87) && ((x <= -2.8e-207) || !(x <= 9.5e-94)))) tmp = Float64(x * Float64(y + 0.5)); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -910000000.0) || (~((x <= -1.45e-87)) && ((x <= -2.8e-207) || ~((x <= 9.5e-94))))) tmp = x * (y + 0.5); else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -910000000.0], And[N[Not[LessEqual[x, -1.45e-87]], $MachinePrecision], Or[LessEqual[x, -2.8e-207], N[Not[LessEqual[x, 9.5e-94]], $MachinePrecision]]]], N[(x * N[(y + 0.5), $MachinePrecision]), $MachinePrecision], z]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -910000000 \lor \neg \left(x \leq -1.45 \cdot 10^{-87}\right) \land \left(x \leq -2.8 \cdot 10^{-207} \lor \neg \left(x \leq 9.5 \cdot 10^{-94}\right)\right):\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -9.1e8 or -1.45e-87 < x < -2.79999999999999993e-207 or 9.4999999999999997e-94 < x Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf 88.0%
if -9.1e8 < x < -1.45e-87 or -2.79999999999999993e-207 < x < 9.4999999999999997e-94Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 70.4%
Final simplification82.5%
(FPCore (x y z) :precision binary64 (if (<= y -9e-9) (* x (+ y 0.5)) (if (<= y 1.4e-18) (+ z (* x 0.5)) (+ (* x 0.5) (* x y)))))
double code(double x, double y, double z) {
double tmp;
if (y <= -9e-9) {
tmp = x * (y + 0.5);
} else if (y <= 1.4e-18) {
tmp = z + (x * 0.5);
} else {
tmp = (x * 0.5) + (x * y);
}
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 <= (-9d-9)) then
tmp = x * (y + 0.5d0)
else if (y <= 1.4d-18) then
tmp = z + (x * 0.5d0)
else
tmp = (x * 0.5d0) + (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -9e-9) {
tmp = x * (y + 0.5);
} else if (y <= 1.4e-18) {
tmp = z + (x * 0.5);
} else {
tmp = (x * 0.5) + (x * y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -9e-9: tmp = x * (y + 0.5) elif y <= 1.4e-18: tmp = z + (x * 0.5) else: tmp = (x * 0.5) + (x * y) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -9e-9) tmp = Float64(x * Float64(y + 0.5)); elseif (y <= 1.4e-18) tmp = Float64(z + Float64(x * 0.5)); else tmp = Float64(Float64(x * 0.5) + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -9e-9) tmp = x * (y + 0.5); elseif (y <= 1.4e-18) tmp = z + (x * 0.5); else tmp = (x * 0.5) + (x * y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -9e-9], N[(x * N[(y + 0.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-18], N[(z + N[(x * 0.5), $MachinePrecision]), $MachinePrecision], N[(N[(x * 0.5), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{-9}:\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-18}:\\
\;\;\;\;z + x \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5 + x \cdot y\\
\end{array}
\end{array}
if y < -8.99999999999999953e-9Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf 85.9%
if -8.99999999999999953e-9 < y < 1.40000000000000006e-18Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
*-commutative100.0%
Simplified100.0%
if 1.40000000000000006e-18 < y Initial program 99.9%
+-commutative99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf 85.1%
+-commutative85.1%
distribute-lft-in85.1%
Applied egg-rr85.1%
Final simplification92.4%
(FPCore (x y z) :precision binary64 (if (or (<= y -3.2e-9) (not (<= y 1.4e-18))) (* x (+ y 0.5)) (+ z (* x 0.5))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -3.2e-9) || !(y <= 1.4e-18)) {
tmp = x * (y + 0.5);
} else {
tmp = z + (x * 0.5);
}
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-9)) .or. (.not. (y <= 1.4d-18))) then
tmp = x * (y + 0.5d0)
else
tmp = z + (x * 0.5d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -3.2e-9) || !(y <= 1.4e-18)) {
tmp = x * (y + 0.5);
} else {
tmp = z + (x * 0.5);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -3.2e-9) or not (y <= 1.4e-18): tmp = x * (y + 0.5) else: tmp = z + (x * 0.5) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -3.2e-9) || !(y <= 1.4e-18)) tmp = Float64(x * Float64(y + 0.5)); else tmp = Float64(z + Float64(x * 0.5)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -3.2e-9) || ~((y <= 1.4e-18))) tmp = x * (y + 0.5); else tmp = z + (x * 0.5); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -3.2e-9], N[Not[LessEqual[y, 1.4e-18]], $MachinePrecision]], N[(x * N[(y + 0.5), $MachinePrecision]), $MachinePrecision], N[(z + N[(x * 0.5), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{-9} \lor \neg \left(y \leq 1.4 \cdot 10^{-18}\right):\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z + x \cdot 0.5\\
\end{array}
\end{array}
if y < -3.20000000000000012e-9 or 1.40000000000000006e-18 < y Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf 85.6%
if -3.20000000000000012e-9 < y < 1.40000000000000006e-18Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification92.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -20500000000000.0) (not (<= x 3.1e-19))) (* x 0.5) z))
double code(double x, double y, double z) {
double tmp;
if ((x <= -20500000000000.0) || !(x <= 3.1e-19)) {
tmp = x * 0.5;
} 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 ((x <= (-20500000000000.0d0)) .or. (.not. (x <= 3.1d-19))) then
tmp = x * 0.5d0
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -20500000000000.0) || !(x <= 3.1e-19)) {
tmp = x * 0.5;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -20500000000000.0) or not (x <= 3.1e-19): tmp = x * 0.5 else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -20500000000000.0) || !(x <= 3.1e-19)) tmp = Float64(x * 0.5); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -20500000000000.0) || ~((x <= 3.1e-19))) tmp = x * 0.5; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -20500000000000.0], N[Not[LessEqual[x, 3.1e-19]], $MachinePrecision]], N[(x * 0.5), $MachinePrecision], z]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -20500000000000 \lor \neg \left(x \leq 3.1 \cdot 10^{-19}\right):\\
\;\;\;\;x \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -2.05e13 or 3.0999999999999999e-19 < x Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf 93.3%
Taylor expanded in y around 0 41.5%
*-commutative41.5%
Simplified41.5%
if -2.05e13 < x < 3.0999999999999999e-19Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 57.6%
Final simplification48.9%
(FPCore (x y z) :precision binary64 (+ z (* x (- y -0.5))))
double code(double x, double y, double z) {
return z + (x * (y - -0.5));
}
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 * (y - (-0.5d0)))
end function
public static double code(double x, double y, double z) {
return z + (x * (y - -0.5));
}
def code(x, y, z): return z + (x * (y - -0.5))
function code(x, y, z) return Float64(z + Float64(x * Float64(y - -0.5))) end
function tmp = code(x, y, z) tmp = z + (x * (y - -0.5)); end
code[x_, y_, z_] := N[(z + N[(x * N[(y - -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z + x \cdot \left(y - -0.5\right)
\end{array}
Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification100.0%
(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 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 30.5%
herbie shell --seed 2024100
(FPCore (x y z)
:name "Data.Histogram.Bin.BinF:$cfromIndex from histogram-fill-0.8.4.1"
:precision binary64
(+ (+ (/ x 2.0) (* y x)) z))