
(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 (+ (+ (/ x 2.0) (* x y)) z))
double code(double x, double y, double z) {
return ((x / 2.0) + (x * y)) + 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) + (x * y)) + z
end function
public static double code(double x, double y, double z) {
return ((x / 2.0) + (x * y)) + z;
}
def code(x, y, z): return ((x / 2.0) + (x * y)) + z
function code(x, y, z) return Float64(Float64(Float64(x / 2.0) + Float64(x * y)) + z) end
function tmp = code(x, y, z) tmp = ((x / 2.0) + (x * y)) + z; end
code[x_, y_, z_] := N[(N[(N[(x / 2.0), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]
\begin{array}{l}
\\
\left(\frac{x}{2} + x \cdot y\right) + z
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(if (<= y -7e+57)
(* x y)
(if (<= y -1.05e-63)
z
(if (<= y -3.6e-151)
(* x 0.5)
(if (<= y 1.8e-149)
z
(if (<= y 1.2e-106)
(* x 0.5)
(if (<= y 8e-45) z (if (<= y 0.5) (* x 0.5) (* x y)))))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -7e+57) {
tmp = x * y;
} else if (y <= -1.05e-63) {
tmp = z;
} else if (y <= -3.6e-151) {
tmp = x * 0.5;
} else if (y <= 1.8e-149) {
tmp = z;
} else if (y <= 1.2e-106) {
tmp = x * 0.5;
} else if (y <= 8e-45) {
tmp = z;
} else if (y <= 0.5) {
tmp = x * 0.5;
} 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 <= (-7d+57)) then
tmp = x * y
else if (y <= (-1.05d-63)) then
tmp = z
else if (y <= (-3.6d-151)) then
tmp = x * 0.5d0
else if (y <= 1.8d-149) then
tmp = z
else if (y <= 1.2d-106) then
tmp = x * 0.5d0
else if (y <= 8d-45) then
tmp = z
else if (y <= 0.5d0) then
tmp = x * 0.5d0
else
tmp = x * y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -7e+57) {
tmp = x * y;
} else if (y <= -1.05e-63) {
tmp = z;
} else if (y <= -3.6e-151) {
tmp = x * 0.5;
} else if (y <= 1.8e-149) {
tmp = z;
} else if (y <= 1.2e-106) {
tmp = x * 0.5;
} else if (y <= 8e-45) {
tmp = z;
} else if (y <= 0.5) {
tmp = x * 0.5;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -7e+57: tmp = x * y elif y <= -1.05e-63: tmp = z elif y <= -3.6e-151: tmp = x * 0.5 elif y <= 1.8e-149: tmp = z elif y <= 1.2e-106: tmp = x * 0.5 elif y <= 8e-45: tmp = z elif y <= 0.5: tmp = x * 0.5 else: tmp = x * y return tmp
function code(x, y, z) tmp = 0.0 if (y <= -7e+57) tmp = Float64(x * y); elseif (y <= -1.05e-63) tmp = z; elseif (y <= -3.6e-151) tmp = Float64(x * 0.5); elseif (y <= 1.8e-149) tmp = z; elseif (y <= 1.2e-106) tmp = Float64(x * 0.5); elseif (y <= 8e-45) tmp = z; elseif (y <= 0.5) tmp = Float64(x * 0.5); else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -7e+57) tmp = x * y; elseif (y <= -1.05e-63) tmp = z; elseif (y <= -3.6e-151) tmp = x * 0.5; elseif (y <= 1.8e-149) tmp = z; elseif (y <= 1.2e-106) tmp = x * 0.5; elseif (y <= 8e-45) tmp = z; elseif (y <= 0.5) tmp = x * 0.5; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -7e+57], N[(x * y), $MachinePrecision], If[LessEqual[y, -1.05e-63], z, If[LessEqual[y, -3.6e-151], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, 1.8e-149], z, If[LessEqual[y, 1.2e-106], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, 8e-45], z, If[LessEqual[y, 0.5], N[(x * 0.5), $MachinePrecision], N[(x * y), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+57}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-63}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-151}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-149}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-106}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-45}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 0.5:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if y < -6.9999999999999995e57 or 0.5 < y Initial program 100.0%
associate-+l+100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 70.4%
+-commutative70.4%
Simplified70.4%
Taylor expanded in y around inf 68.8%
if -6.9999999999999995e57 < y < -1.05e-63 or -3.60000000000000032e-151 < y < 1.8000000000000001e-149 or 1.1999999999999999e-106 < y < 7.99999999999999987e-45Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*100.0%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 66.5%
associate-*r*66.5%
neg-mul-166.5%
Simplified66.5%
Taylor expanded in z around inf 63.1%
if -1.05e-63 < y < -3.60000000000000032e-151 or 1.8000000000000001e-149 < y < 1.1999999999999999e-106 or 7.99999999999999987e-45 < y < 0.5Initial program 100.0%
associate-+l+100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 70.0%
+-commutative70.0%
Simplified70.0%
Taylor expanded in y around 0 68.9%
*-commutative68.9%
Simplified68.9%
Final simplification66.6%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.7e-14) (not (<= z 1.05e-26))) (+ z (* x y)) (* x (+ y 0.5))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.7e-14) || !(z <= 1.05e-26)) {
tmp = z + (x * y);
} else {
tmp = x * (y + 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 ((z <= (-2.7d-14)) .or. (.not. (z <= 1.05d-26))) then
tmp = z + (x * y)
else
tmp = x * (y + 0.5d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.7e-14) || !(z <= 1.05e-26)) {
tmp = z + (x * y);
} else {
tmp = x * (y + 0.5);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.7e-14) or not (z <= 1.05e-26): tmp = z + (x * y) else: tmp = x * (y + 0.5) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.7e-14) || !(z <= 1.05e-26)) tmp = Float64(z + Float64(x * y)); else tmp = Float64(x * Float64(y + 0.5)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.7e-14) || ~((z <= 1.05e-26))) tmp = z + (x * y); else tmp = x * (y + 0.5); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.7e-14], N[Not[LessEqual[z, 1.05e-26]], $MachinePrecision]], N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(x * N[(y + 0.5), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-14} \lor \neg \left(z \leq 1.05 \cdot 10^{-26}\right):\\
\;\;\;\;z + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\end{array}
\end{array}
if z < -2.6999999999999999e-14 or 1.05000000000000004e-26 < z Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*100.0%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 90.5%
associate-*r*90.5%
neg-mul-190.5%
Simplified90.5%
cancel-sign-sub90.5%
+-commutative90.5%
Applied egg-rr90.5%
if -2.6999999999999999e-14 < z < 1.05000000000000004e-26Initial program 100.0%
associate-+l+100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 88.0%
+-commutative88.0%
Simplified88.0%
Final simplification89.4%
(FPCore (x y z) :precision binary64 (if (or (<= y -0.5) (not (<= y 0.0045))) (+ z (* x y)) (- z (* x -0.5))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -0.5) || !(y <= 0.0045)) {
tmp = z + (x * y);
} 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 <= (-0.5d0)) .or. (.not. (y <= 0.0045d0))) then
tmp = z + (x * y)
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 <= -0.5) || !(y <= 0.0045)) {
tmp = z + (x * y);
} else {
tmp = z - (x * -0.5);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -0.5) or not (y <= 0.0045): tmp = z + (x * y) else: tmp = z - (x * -0.5) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -0.5) || !(y <= 0.0045)) tmp = Float64(z + Float64(x * y)); else tmp = Float64(z - Float64(x * -0.5)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -0.5) || ~((y <= 0.0045))) tmp = z + (x * y); else tmp = z - (x * -0.5); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -0.5], N[Not[LessEqual[y, 0.0045]], $MachinePrecision]], N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(z - N[(x * -0.5), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.5 \lor \neg \left(y \leq 0.0045\right):\\
\;\;\;\;z + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z - x \cdot -0.5\\
\end{array}
\end{array}
if y < -0.5 or 0.00449999999999999966 < y Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*100.0%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 98.0%
associate-*r*98.0%
neg-mul-198.0%
Simplified98.0%
cancel-sign-sub98.0%
+-commutative98.0%
Applied egg-rr98.0%
if -0.5 < y < 0.00449999999999999966Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*99.9%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 98.0%
*-commutative98.0%
Simplified98.0%
Final simplification98.0%
(FPCore (x y z) :precision binary64 (if (<= z -1.02e+114) z (if (<= z 3.5e+169) (* x (+ y 0.5)) z)))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.02e+114) {
tmp = z;
} else if (z <= 3.5e+169) {
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 (z <= (-1.02d+114)) then
tmp = z
else if (z <= 3.5d+169) 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 (z <= -1.02e+114) {
tmp = z;
} else if (z <= 3.5e+169) {
tmp = x * (y + 0.5);
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.02e+114: tmp = z elif z <= 3.5e+169: tmp = x * (y + 0.5) else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.02e+114) tmp = z; elseif (z <= 3.5e+169) 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 (z <= -1.02e+114) tmp = z; elseif (z <= 3.5e+169) tmp = x * (y + 0.5); else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.02e+114], z, If[LessEqual[z, 3.5e+169], N[(x * N[(y + 0.5), $MachinePrecision]), $MachinePrecision], z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+114}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+169}:\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -1.01999999999999999e114 or 3.50000000000000019e169 < z Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*100.0%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 95.4%
associate-*r*95.4%
neg-mul-195.4%
Simplified95.4%
Taylor expanded in z around inf 86.4%
if -1.01999999999999999e114 < z < 3.50000000000000019e169Initial program 100.0%
associate-+l+100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 78.2%
+-commutative78.2%
Simplified78.2%
Final simplification80.8%
(FPCore (x y z) :precision binary64 (if (<= z -4e-12) z (if (<= z 3.9e-23) (* x 0.5) z)))
double code(double x, double y, double z) {
double tmp;
if (z <= -4e-12) {
tmp = z;
} else if (z <= 3.9e-23) {
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 (z <= (-4d-12)) then
tmp = z
else if (z <= 3.9d-23) 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 (z <= -4e-12) {
tmp = z;
} else if (z <= 3.9e-23) {
tmp = x * 0.5;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -4e-12: tmp = z elif z <= 3.9e-23: tmp = x * 0.5 else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -4e-12) tmp = z; elseif (z <= 3.9e-23) tmp = Float64(x * 0.5); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -4e-12) tmp = z; elseif (z <= 3.9e-23) tmp = x * 0.5; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -4e-12], z, If[LessEqual[z, 3.9e-23], N[(x * 0.5), $MachinePrecision], z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{-12}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-23}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -3.99999999999999992e-12 or 3.9e-23 < z Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*100.0%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 90.5%
associate-*r*90.5%
neg-mul-190.5%
Simplified90.5%
Taylor expanded in z around inf 67.1%
if -3.99999999999999992e-12 < z < 3.9e-23Initial program 100.0%
associate-+l+100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 88.0%
+-commutative88.0%
Simplified88.0%
Taylor expanded in y around 0 46.3%
*-commutative46.3%
Simplified46.3%
Final simplification57.7%
(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-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*99.9%
associate-/r/100.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-neg-in100.0%
distribute-frac-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
distribute-rgt-neg-out100.0%
unsub-neg100.0%
neg-mul-1100.0%
associate-/l*99.9%
associate-/r/100.0%
distribute-rgt-out--100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around inf 74.4%
associate-*r*74.4%
neg-mul-174.4%
Simplified74.4%
Taylor expanded in z around inf 43.5%
Final simplification43.5%
herbie shell --seed 2024031
(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))