
(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 7 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 (- y -0.5)) z))
double code(double x, double y, double z) {
return (x * (y - -0.5)) + 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 * (y - (-0.5d0))) + z
end function
public static double code(double x, double y, double z) {
return (x * (y - -0.5)) + z;
}
def code(x, y, z): return (x * (y - -0.5)) + z
function code(x, y, z) return Float64(Float64(x * Float64(y - -0.5)) + z) end
function tmp = code(x, y, z) tmp = (x * (y - -0.5)) + z; end
code[x_, y_, z_] := N[(N[(x * N[(y - -0.5), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y - -0.5\right) + 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%
(FPCore (x y z)
:precision binary64
(if (<= y -1.3e+30)
(* x y)
(if (<= y -1.65e-164)
z
(if (<= y -1.18e-222)
(* x 0.5)
(if (<= y -2.15e-306)
z
(if (<= y 2.7e-191)
(* x 0.5)
(if (<= y 1.45e-144)
z
(if (<= y 1.9e+28) (* x 0.5) (if (<= y 3.6e+81) z (* x y))))))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.3e+30) {
tmp = x * y;
} else if (y <= -1.65e-164) {
tmp = z;
} else if (y <= -1.18e-222) {
tmp = x * 0.5;
} else if (y <= -2.15e-306) {
tmp = z;
} else if (y <= 2.7e-191) {
tmp = x * 0.5;
} else if (y <= 1.45e-144) {
tmp = z;
} else if (y <= 1.9e+28) {
tmp = x * 0.5;
} else if (y <= 3.6e+81) {
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 <= (-1.3d+30)) then
tmp = x * y
else if (y <= (-1.65d-164)) then
tmp = z
else if (y <= (-1.18d-222)) then
tmp = x * 0.5d0
else if (y <= (-2.15d-306)) then
tmp = z
else if (y <= 2.7d-191) then
tmp = x * 0.5d0
else if (y <= 1.45d-144) then
tmp = z
else if (y <= 1.9d+28) then
tmp = x * 0.5d0
else if (y <= 3.6d+81) 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 <= -1.3e+30) {
tmp = x * y;
} else if (y <= -1.65e-164) {
tmp = z;
} else if (y <= -1.18e-222) {
tmp = x * 0.5;
} else if (y <= -2.15e-306) {
tmp = z;
} else if (y <= 2.7e-191) {
tmp = x * 0.5;
} else if (y <= 1.45e-144) {
tmp = z;
} else if (y <= 1.9e+28) {
tmp = x * 0.5;
} else if (y <= 3.6e+81) {
tmp = z;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.3e+30: tmp = x * y elif y <= -1.65e-164: tmp = z elif y <= -1.18e-222: tmp = x * 0.5 elif y <= -2.15e-306: tmp = z elif y <= 2.7e-191: tmp = x * 0.5 elif y <= 1.45e-144: tmp = z elif y <= 1.9e+28: tmp = x * 0.5 elif y <= 3.6e+81: tmp = z else: tmp = x * y return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.3e+30) tmp = Float64(x * y); elseif (y <= -1.65e-164) tmp = z; elseif (y <= -1.18e-222) tmp = Float64(x * 0.5); elseif (y <= -2.15e-306) tmp = z; elseif (y <= 2.7e-191) tmp = Float64(x * 0.5); elseif (y <= 1.45e-144) tmp = z; elseif (y <= 1.9e+28) tmp = Float64(x * 0.5); elseif (y <= 3.6e+81) tmp = z; else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.3e+30) tmp = x * y; elseif (y <= -1.65e-164) tmp = z; elseif (y <= -1.18e-222) tmp = x * 0.5; elseif (y <= -2.15e-306) tmp = z; elseif (y <= 2.7e-191) tmp = x * 0.5; elseif (y <= 1.45e-144) tmp = z; elseif (y <= 1.9e+28) tmp = x * 0.5; elseif (y <= 3.6e+81) tmp = z; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.3e+30], N[(x * y), $MachinePrecision], If[LessEqual[y, -1.65e-164], z, If[LessEqual[y, -1.18e-222], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, -2.15e-306], z, If[LessEqual[y, 2.7e-191], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, 1.45e-144], z, If[LessEqual[y, 1.9e+28], N[(x * 0.5), $MachinePrecision], If[LessEqual[y, 3.6e+81], z, N[(x * y), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+30}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-164}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq -1.18 \cdot 10^{-222}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-306}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-191}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-144}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+28}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+81}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if y < -1.29999999999999994e30 or 3.60000000000000005e81 < 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 89.0%
+-commutative89.0%
+-commutative89.0%
associate-+l+89.0%
+-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 75.4%
if -1.29999999999999994e30 < y < -1.65e-164 or -1.18000000000000007e-222 < y < -2.15e-306 or 2.69999999999999999e-191 < y < 1.4500000000000001e-144 or 1.8999999999999999e28 < y < 3.60000000000000005e81Initial 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 69.4%
if -1.65e-164 < y < -1.18000000000000007e-222 or -2.15e-306 < y < 2.69999999999999999e-191 or 1.4500000000000001e-144 < y < 1.8999999999999999e28Initial 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 95.2%
+-commutative95.2%
+-commutative95.2%
associate-+l+95.2%
+-commutative95.2%
Simplified95.2%
Taylor expanded in x around inf 77.5%
Taylor expanded in y around 0 72.4%
Final simplification72.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -0.5) (not (<= y 0.5))) (+ z (* x y)) (+ z (* x 0.5))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -0.5) || !(y <= 0.5)) {
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.5d0))) 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.5)) {
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.5): 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.5)) 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.5))) 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.5]], $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.5\right):\\
\;\;\;\;z + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z + x \cdot 0.5\\
\end{array}
\end{array}
if y < -0.5 or 0.5 < 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 99.4%
if -0.5 < y < 0.5Initial 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 99.0%
*-commutative99.0%
Simplified99.0%
Final simplification99.2%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.65e+29) (not (<= y 4e+82))) (* x y) (+ z (* x 0.5))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.65e+29) || !(y <= 4e+82)) {
tmp = 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 <= (-1.65d+29)) .or. (.not. (y <= 4d+82))) then
tmp = 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 <= -1.65e+29) || !(y <= 4e+82)) {
tmp = x * y;
} else {
tmp = z + (x * 0.5);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.65e+29) or not (y <= 4e+82): tmp = x * y else: tmp = z + (x * 0.5) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.65e+29) || !(y <= 4e+82)) tmp = 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 <= -1.65e+29) || ~((y <= 4e+82))) tmp = x * y; else tmp = z + (x * 0.5); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.65e+29], N[Not[LessEqual[y, 4e+82]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(z + N[(x * 0.5), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{+29} \lor \neg \left(y \leq 4 \cdot 10^{+82}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z + x \cdot 0.5\\
\end{array}
\end{array}
if y < -1.64999999999999992e29 or 3.9999999999999999e82 < 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 89.0%
+-commutative89.0%
+-commutative89.0%
associate-+l+89.0%
+-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 75.4%
if -1.64999999999999992e29 < y < 3.9999999999999999e82Initial 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 91.9%
*-commutative91.9%
Simplified91.9%
Final simplification84.8%
(FPCore (x y z) :precision binary64 (if (<= z -1.46e+26) z (if (<= z 3e+155) (* x (+ y 0.5)) z)))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.46e+26) {
tmp = z;
} else if (z <= 3e+155) {
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.46d+26)) then
tmp = z
else if (z <= 3d+155) 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.46e+26) {
tmp = z;
} else if (z <= 3e+155) {
tmp = x * (y + 0.5);
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.46e+26: tmp = z elif z <= 3e+155: tmp = x * (y + 0.5) else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.46e+26) tmp = z; elseif (z <= 3e+155) 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.46e+26) tmp = z; elseif (z <= 3e+155) tmp = x * (y + 0.5); else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.46e+26], z, If[LessEqual[z, 3e+155], N[(x * N[(y + 0.5), $MachinePrecision]), $MachinePrecision], z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.46 \cdot 10^{+26}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+155}:\\
\;\;\;\;x \cdot \left(y + 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -1.45999999999999992e26 or 3.0000000000000001e155 < z 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 71.1%
if -1.45999999999999992e26 < z < 3.0000000000000001e155Initial 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 98.7%
+-commutative98.7%
+-commutative98.7%
associate-+l+98.7%
+-commutative98.7%
Simplified98.7%
Taylor expanded in x around inf 80.4%
Final simplification76.8%
(FPCore (x y z) :precision binary64 (if (<= z -2.7e-20) z (if (<= z 1.8e-103) (* x 0.5) z)))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.7e-20) {
tmp = z;
} else if (z <= 1.8e-103) {
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 <= (-2.7d-20)) then
tmp = z
else if (z <= 1.8d-103) 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 <= -2.7e-20) {
tmp = z;
} else if (z <= 1.8e-103) {
tmp = x * 0.5;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.7e-20: tmp = z elif z <= 1.8e-103: tmp = x * 0.5 else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.7e-20) tmp = z; elseif (z <= 1.8e-103) tmp = Float64(x * 0.5); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.7e-20) tmp = z; elseif (z <= 1.8e-103) tmp = x * 0.5; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.7e-20], z, If[LessEqual[z, 1.8e-103], N[(x * 0.5), $MachinePrecision], z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-20}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-103}:\\
\;\;\;\;x \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -2.7e-20 or 1.7999999999999999e-103 < z 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 56.3%
if -2.7e-20 < z < 1.7999999999999999e-103Initial 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 100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 89.4%
Taylor expanded in y around 0 46.9%
Final simplification52.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 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 40.5%
herbie shell --seed 2024091
(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))