
(FPCore (x y z) :precision binary64 (/ (* 4.0 (- (- x y) (* z 0.5))) z))
double code(double x, double y, double z) {
return (4.0 * ((x - y) - (z * 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 = (4.0d0 * ((x - y) - (z * 0.5d0))) / z
end function
public static double code(double x, double y, double z) {
return (4.0 * ((x - y) - (z * 0.5))) / z;
}
def code(x, y, z): return (4.0 * ((x - y) - (z * 0.5))) / z
function code(x, y, z) return Float64(Float64(4.0 * Float64(Float64(x - y) - Float64(z * 0.5))) / z) end
function tmp = code(x, y, z) tmp = (4.0 * ((x - y) - (z * 0.5))) / z; end
code[x_, y_, z_] := N[(N[(4.0 * N[(N[(x - y), $MachinePrecision] - N[(z * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{4 \cdot \left(\left(x - y\right) - z \cdot 0.5\right)}{z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (* 4.0 (- (- x y) (* z 0.5))) z))
double code(double x, double y, double z) {
return (4.0 * ((x - y) - (z * 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 = (4.0d0 * ((x - y) - (z * 0.5d0))) / z
end function
public static double code(double x, double y, double z) {
return (4.0 * ((x - y) - (z * 0.5))) / z;
}
def code(x, y, z): return (4.0 * ((x - y) - (z * 0.5))) / z
function code(x, y, z) return Float64(Float64(4.0 * Float64(Float64(x - y) - Float64(z * 0.5))) / z) end
function tmp = code(x, y, z) tmp = (4.0 * ((x - y) - (z * 0.5))) / z; end
code[x_, y_, z_] := N[(N[(4.0 * N[(N[(x - y), $MachinePrecision] - N[(z * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{4 \cdot \left(\left(x - y\right) - z \cdot 0.5\right)}{z}
\end{array}
(FPCore (x y z) :precision binary64 (* -4.0 (- (/ (- y x) z) -0.5)))
double code(double x, double y, double z) {
return -4.0 * (((y - x) / z) - -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 = (-4.0d0) * (((y - x) / z) - (-0.5d0))
end function
public static double code(double x, double y, double z) {
return -4.0 * (((y - x) / z) - -0.5);
}
def code(x, y, z): return -4.0 * (((y - x) / z) - -0.5)
function code(x, y, z) return Float64(-4.0 * Float64(Float64(Float64(y - x) / z) - -0.5)) end
function tmp = code(x, y, z) tmp = -4.0 * (((y - x) / z) - -0.5); end
code[x_, y_, z_] := N[(-4.0 * N[(N[(N[(y - x), $MachinePrecision] / z), $MachinePrecision] - -0.5), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
-4 \cdot \left(\frac{y - x}{z} - -0.5\right)
\end{array}
Initial program 100.0%
remove-double-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
div-sub100.0%
distribute-frac-neg2100.0%
distribute-frac-neg100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-out100.0%
remove-double-neg100.0%
sub-neg100.0%
*-commutative100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-inverses100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 4.0 (/ x z))) (t_1 (* -4.0 (/ y z))))
(if (<= z -8.5e+46)
-2.0
(if (<= z -0.62)
t_1
(if (<= z -1.5e-17)
-2.0
(if (<= z 3.9e-142)
t_0
(if (<= z 1.3e-112) t_1 (if (<= z 1.08e+43) t_0 -2.0))))))))
double code(double x, double y, double z) {
double t_0 = 4.0 * (x / z);
double t_1 = -4.0 * (y / z);
double tmp;
if (z <= -8.5e+46) {
tmp = -2.0;
} else if (z <= -0.62) {
tmp = t_1;
} else if (z <= -1.5e-17) {
tmp = -2.0;
} else if (z <= 3.9e-142) {
tmp = t_0;
} else if (z <= 1.3e-112) {
tmp = t_1;
} else if (z <= 1.08e+43) {
tmp = t_0;
} else {
tmp = -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) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 4.0d0 * (x / z)
t_1 = (-4.0d0) * (y / z)
if (z <= (-8.5d+46)) then
tmp = -2.0d0
else if (z <= (-0.62d0)) then
tmp = t_1
else if (z <= (-1.5d-17)) then
tmp = -2.0d0
else if (z <= 3.9d-142) then
tmp = t_0
else if (z <= 1.3d-112) then
tmp = t_1
else if (z <= 1.08d+43) then
tmp = t_0
else
tmp = -2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.0 * (x / z);
double t_1 = -4.0 * (y / z);
double tmp;
if (z <= -8.5e+46) {
tmp = -2.0;
} else if (z <= -0.62) {
tmp = t_1;
} else if (z <= -1.5e-17) {
tmp = -2.0;
} else if (z <= 3.9e-142) {
tmp = t_0;
} else if (z <= 1.3e-112) {
tmp = t_1;
} else if (z <= 1.08e+43) {
tmp = t_0;
} else {
tmp = -2.0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.0 * (x / z) t_1 = -4.0 * (y / z) tmp = 0 if z <= -8.5e+46: tmp = -2.0 elif z <= -0.62: tmp = t_1 elif z <= -1.5e-17: tmp = -2.0 elif z <= 3.9e-142: tmp = t_0 elif z <= 1.3e-112: tmp = t_1 elif z <= 1.08e+43: tmp = t_0 else: tmp = -2.0 return tmp
function code(x, y, z) t_0 = Float64(4.0 * Float64(x / z)) t_1 = Float64(-4.0 * Float64(y / z)) tmp = 0.0 if (z <= -8.5e+46) tmp = -2.0; elseif (z <= -0.62) tmp = t_1; elseif (z <= -1.5e-17) tmp = -2.0; elseif (z <= 3.9e-142) tmp = t_0; elseif (z <= 1.3e-112) tmp = t_1; elseif (z <= 1.08e+43) tmp = t_0; else tmp = -2.0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.0 * (x / z); t_1 = -4.0 * (y / z); tmp = 0.0; if (z <= -8.5e+46) tmp = -2.0; elseif (z <= -0.62) tmp = t_1; elseif (z <= -1.5e-17) tmp = -2.0; elseif (z <= 3.9e-142) tmp = t_0; elseif (z <= 1.3e-112) tmp = t_1; elseif (z <= 1.08e+43) tmp = t_0; else tmp = -2.0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.0 * N[(x / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-4.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.5e+46], -2.0, If[LessEqual[z, -0.62], t$95$1, If[LessEqual[z, -1.5e-17], -2.0, If[LessEqual[z, 3.9e-142], t$95$0, If[LessEqual[z, 1.3e-112], t$95$1, If[LessEqual[z, 1.08e+43], t$95$0, -2.0]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4 \cdot \frac{x}{z}\\
t_1 := -4 \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;-2\\
\mathbf{elif}\;z \leq -0.62:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-17}:\\
\;\;\;\;-2\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-142}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{+43}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;-2\\
\end{array}
\end{array}
if z < -8.4999999999999996e46 or -0.619999999999999996 < z < -1.50000000000000003e-17 or 1.08e43 < z Initial program 100.0%
*-commutative100.0%
associate-/l*99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 69.3%
if -8.4999999999999996e46 < z < -0.619999999999999996 or 3.9000000000000003e-142 < z < 1.29999999999999996e-112Initial program 100.0%
*-commutative100.0%
associate-/l*99.5%
associate--l-99.5%
Simplified99.5%
Taylor expanded in y around inf 77.5%
*-commutative77.5%
Simplified77.5%
if -1.50000000000000003e-17 < z < 3.9000000000000003e-142 or 1.29999999999999996e-112 < z < 1.08e43Initial program 100.0%
*-commutative100.0%
associate-/l*99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in x around inf 61.1%
Final simplification66.3%
(FPCore (x y z)
:precision binary64
(if (or (<= y -1.4e+99)
(not (or (<= y -8e+72) (and (not (<= y -1.8e+27)) (<= y 1.1e+140)))))
(* 4.0 (- -0.5 (/ y z)))
(* -4.0 (- 0.5 (/ x z)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.4e+99) || !((y <= -8e+72) || (!(y <= -1.8e+27) && (y <= 1.1e+140)))) {
tmp = 4.0 * (-0.5 - (y / z));
} else {
tmp = -4.0 * (0.5 - (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 <= (-1.4d+99)) .or. (.not. (y <= (-8d+72)) .or. (.not. (y <= (-1.8d+27))) .and. (y <= 1.1d+140))) then
tmp = 4.0d0 * ((-0.5d0) - (y / z))
else
tmp = (-4.0d0) * (0.5d0 - (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -1.4e+99) || !((y <= -8e+72) || (!(y <= -1.8e+27) && (y <= 1.1e+140)))) {
tmp = 4.0 * (-0.5 - (y / z));
} else {
tmp = -4.0 * (0.5 - (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.4e+99) or not ((y <= -8e+72) or (not (y <= -1.8e+27) and (y <= 1.1e+140))): tmp = 4.0 * (-0.5 - (y / z)) else: tmp = -4.0 * (0.5 - (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.4e+99) || !((y <= -8e+72) || (!(y <= -1.8e+27) && (y <= 1.1e+140)))) tmp = Float64(4.0 * Float64(-0.5 - Float64(y / z))); else tmp = Float64(-4.0 * Float64(0.5 - Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.4e+99) || ~(((y <= -8e+72) || (~((y <= -1.8e+27)) && (y <= 1.1e+140))))) tmp = 4.0 * (-0.5 - (y / z)); else tmp = -4.0 * (0.5 - (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.4e+99], N[Not[Or[LessEqual[y, -8e+72], And[N[Not[LessEqual[y, -1.8e+27]], $MachinePrecision], LessEqual[y, 1.1e+140]]]], $MachinePrecision]], N[(4.0 * N[(-0.5 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(0.5 - N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+99} \lor \neg \left(y \leq -8 \cdot 10^{+72} \lor \neg \left(y \leq -1.8 \cdot 10^{+27}\right) \land y \leq 1.1 \cdot 10^{+140}\right):\\
\;\;\;\;4 \cdot \left(-0.5 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(0.5 - \frac{x}{z}\right)\\
\end{array}
\end{array}
if y < -1.4e99 or -7.99999999999999955e72 < y < -1.79999999999999991e27 or 1.0999999999999999e140 < y Initial program 100.0%
*-commutative100.0%
associate-/l*99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in x around 0 95.8%
associate-*r/95.8%
metadata-eval95.8%
+-commutative95.8%
*-commutative95.8%
fma-undefine95.8%
associate-*r*95.8%
neg-mul-195.8%
associate-/l*95.8%
fma-undefine95.8%
*-commutative95.8%
distribute-neg-in95.8%
sub-neg95.8%
div-sub95.8%
distribute-neg-frac95.8%
associate-/l*95.8%
*-inverses95.8%
metadata-eval95.8%
metadata-eval95.8%
Simplified95.8%
if -1.4e99 < y < -7.99999999999999955e72 or -1.79999999999999991e27 < y < 1.0999999999999999e140Initial program 100.0%
remove-double-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
div-sub100.0%
distribute-frac-neg2100.0%
distribute-frac-neg100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-out100.0%
remove-double-neg100.0%
sub-neg100.0%
*-commutative100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-inverses100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 94.4%
neg-mul-194.4%
distribute-neg-frac94.4%
Simplified94.4%
Taylor expanded in x around 0 94.4%
mul-1-neg94.4%
unsub-neg94.4%
Simplified94.4%
Final simplification94.8%
(FPCore (x y z) :precision binary64 (if (or (<= y -6.8e+122) (not (<= y 2.9e+140))) (* -4.0 (/ y z)) (* -4.0 (- 0.5 (/ x z)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -6.8e+122) || !(y <= 2.9e+140)) {
tmp = -4.0 * (y / z);
} else {
tmp = -4.0 * (0.5 - (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 <= (-6.8d+122)) .or. (.not. (y <= 2.9d+140))) then
tmp = (-4.0d0) * (y / z)
else
tmp = (-4.0d0) * (0.5d0 - (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -6.8e+122) || !(y <= 2.9e+140)) {
tmp = -4.0 * (y / z);
} else {
tmp = -4.0 * (0.5 - (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -6.8e+122) or not (y <= 2.9e+140): tmp = -4.0 * (y / z) else: tmp = -4.0 * (0.5 - (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -6.8e+122) || !(y <= 2.9e+140)) tmp = Float64(-4.0 * Float64(y / z)); else tmp = Float64(-4.0 * Float64(0.5 - Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -6.8e+122) || ~((y <= 2.9e+140))) tmp = -4.0 * (y / z); else tmp = -4.0 * (0.5 - (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -6.8e+122], N[Not[LessEqual[y, 2.9e+140]], $MachinePrecision]], N[(-4.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(0.5 - N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+122} \lor \neg \left(y \leq 2.9 \cdot 10^{+140}\right):\\
\;\;\;\;-4 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(0.5 - \frac{x}{z}\right)\\
\end{array}
\end{array}
if y < -6.8e122 or 2.8999999999999999e140 < y Initial program 100.0%
*-commutative100.0%
associate-/l*99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in y around inf 86.8%
*-commutative86.8%
Simplified86.8%
if -6.8e122 < y < 2.8999999999999999e140Initial program 100.0%
remove-double-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
div-sub100.0%
distribute-frac-neg2100.0%
distribute-frac-neg100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-out100.0%
remove-double-neg100.0%
sub-neg100.0%
*-commutative100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-inverses100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 90.5%
neg-mul-190.5%
distribute-neg-frac90.5%
Simplified90.5%
Taylor expanded in x around 0 90.5%
mul-1-neg90.5%
unsub-neg90.5%
Simplified90.5%
Final simplification89.7%
(FPCore (x y z) :precision binary64 (if (<= z -3.5e-17) -2.0 (if (<= z 1.1e+43) (* 4.0 (/ x z)) -2.0)))
double code(double x, double y, double z) {
double tmp;
if (z <= -3.5e-17) {
tmp = -2.0;
} else if (z <= 1.1e+43) {
tmp = 4.0 * (x / z);
} else {
tmp = -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 (z <= (-3.5d-17)) then
tmp = -2.0d0
else if (z <= 1.1d+43) then
tmp = 4.0d0 * (x / z)
else
tmp = -2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -3.5e-17) {
tmp = -2.0;
} else if (z <= 1.1e+43) {
tmp = 4.0 * (x / z);
} else {
tmp = -2.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -3.5e-17: tmp = -2.0 elif z <= 1.1e+43: tmp = 4.0 * (x / z) else: tmp = -2.0 return tmp
function code(x, y, z) tmp = 0.0 if (z <= -3.5e-17) tmp = -2.0; elseif (z <= 1.1e+43) tmp = Float64(4.0 * Float64(x / z)); else tmp = -2.0; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -3.5e-17) tmp = -2.0; elseif (z <= 1.1e+43) tmp = 4.0 * (x / z); else tmp = -2.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -3.5e-17], -2.0, If[LessEqual[z, 1.1e+43], N[(4.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], -2.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{-17}:\\
\;\;\;\;-2\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+43}:\\
\;\;\;\;4 \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;-2\\
\end{array}
\end{array}
if z < -3.5000000000000002e-17 or 1.1e43 < z Initial program 100.0%
*-commutative100.0%
associate-/l*99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 65.9%
if -3.5000000000000002e-17 < z < 1.1e43Initial program 100.0%
*-commutative100.0%
associate-/l*99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in x around inf 58.2%
Final simplification62.3%
(FPCore (x y z) :precision binary64 -2.0)
double code(double x, double y, double z) {
return -2.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -2.0d0
end function
public static double code(double x, double y, double z) {
return -2.0;
}
def code(x, y, z): return -2.0
function code(x, y, z) return -2.0 end
function tmp = code(x, y, z) tmp = -2.0; end
code[x_, y_, z_] := -2.0
\begin{array}{l}
\\
-2
\end{array}
Initial program 100.0%
*-commutative100.0%
associate-/l*99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 39.3%
Final simplification39.3%
(FPCore (x y z) :precision binary64 (- (* 4.0 (/ x z)) (+ 2.0 (* 4.0 (/ y z)))))
double code(double x, double y, double z) {
return (4.0 * (x / z)) - (2.0 + (4.0 * (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 = (4.0d0 * (x / z)) - (2.0d0 + (4.0d0 * (y / z)))
end function
public static double code(double x, double y, double z) {
return (4.0 * (x / z)) - (2.0 + (4.0 * (y / z)));
}
def code(x, y, z): return (4.0 * (x / z)) - (2.0 + (4.0 * (y / z)))
function code(x, y, z) return Float64(Float64(4.0 * Float64(x / z)) - Float64(2.0 + Float64(4.0 * Float64(y / z)))) end
function tmp = code(x, y, z) tmp = (4.0 * (x / z)) - (2.0 + (4.0 * (y / z))); end
code[x_, y_, z_] := N[(N[(4.0 * N[(x / z), $MachinePrecision]), $MachinePrecision] - N[(2.0 + N[(4.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
4 \cdot \frac{x}{z} - \left(2 + 4 \cdot \frac{y}{z}\right)
\end{array}
herbie shell --seed 2024071
(FPCore (x y z)
:name "Data.Array.Repa.Algorithms.ColorRamp:rampColorHotToCold from repa-algorithms-3.4.0.1, B"
:precision binary64
:alt
(- (* 4.0 (/ x z)) (+ 2.0 (* 4.0 (/ y z))))
(/ (* 4.0 (- (- x y) (* z 0.5))) z))