
(FPCore (x y z) :precision binary64 (/ (- x y) (- z y)))
double code(double x, double y, double z) {
return (x - y) / (z - 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 - y) / (z - y)
end function
public static double code(double x, double y, double z) {
return (x - y) / (z - y);
}
def code(x, y, z): return (x - y) / (z - y)
function code(x, y, z) return Float64(Float64(x - y) / Float64(z - y)) end
function tmp = code(x, y, z) tmp = (x - y) / (z - y); end
code[x_, y_, z_] := N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (- x y) (- z y)))
double code(double x, double y, double z) {
return (x - y) / (z - 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 - y) / (z - y)
end function
public static double code(double x, double y, double z) {
return (x - y) / (z - y);
}
def code(x, y, z): return (x - y) / (z - y)
function code(x, y, z) return Float64(Float64(x - y) / Float64(z - y)) end
function tmp = code(x, y, z) tmp = (x - y) / (z - y); end
code[x_, y_, z_] := N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - y}
\end{array}
(FPCore (x y z) :precision binary64 (/ (- x y) (- z y)))
double code(double x, double y, double z) {
return (x - y) / (z - 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 - y) / (z - y)
end function
public static double code(double x, double y, double z) {
return (x - y) / (z - y);
}
def code(x, y, z): return (x - y) / (z - y)
function code(x, y, z) return Float64(Float64(x - y) / Float64(z - y)) end
function tmp = code(x, y, z) tmp = (x - y) / (z - y); end
code[x_, y_, z_] := N[(N[(x - y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - y}
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- 1.0 (/ x y))))
(if (<= y -2.4e+36)
t_0
(if (<= y -3.6e-47)
(/ y (- y z))
(if (or (<= y -2.8e-59) (not (<= y 2.3e-21))) t_0 (/ x (- z y)))))))
double code(double x, double y, double z) {
double t_0 = 1.0 - (x / y);
double tmp;
if (y <= -2.4e+36) {
tmp = t_0;
} else if (y <= -3.6e-47) {
tmp = y / (y - z);
} else if ((y <= -2.8e-59) || !(y <= 2.3e-21)) {
tmp = t_0;
} else {
tmp = x / (z - 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) :: t_0
real(8) :: tmp
t_0 = 1.0d0 - (x / y)
if (y <= (-2.4d+36)) then
tmp = t_0
else if (y <= (-3.6d-47)) then
tmp = y / (y - z)
else if ((y <= (-2.8d-59)) .or. (.not. (y <= 2.3d-21))) then
tmp = t_0
else
tmp = x / (z - y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 1.0 - (x / y);
double tmp;
if (y <= -2.4e+36) {
tmp = t_0;
} else if (y <= -3.6e-47) {
tmp = y / (y - z);
} else if ((y <= -2.8e-59) || !(y <= 2.3e-21)) {
tmp = t_0;
} else {
tmp = x / (z - y);
}
return tmp;
}
def code(x, y, z): t_0 = 1.0 - (x / y) tmp = 0 if y <= -2.4e+36: tmp = t_0 elif y <= -3.6e-47: tmp = y / (y - z) elif (y <= -2.8e-59) or not (y <= 2.3e-21): tmp = t_0 else: tmp = x / (z - y) return tmp
function code(x, y, z) t_0 = Float64(1.0 - Float64(x / y)) tmp = 0.0 if (y <= -2.4e+36) tmp = t_0; elseif (y <= -3.6e-47) tmp = Float64(y / Float64(y - z)); elseif ((y <= -2.8e-59) || !(y <= 2.3e-21)) tmp = t_0; else tmp = Float64(x / Float64(z - y)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 1.0 - (x / y); tmp = 0.0; if (y <= -2.4e+36) tmp = t_0; elseif (y <= -3.6e-47) tmp = y / (y - z); elseif ((y <= -2.8e-59) || ~((y <= 2.3e-21))) tmp = t_0; else tmp = x / (z - y); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e+36], t$95$0, If[LessEqual[y, -3.6e-47], N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2.8e-59], N[Not[LessEqual[y, 2.3e-21]], $MachinePrecision]], t$95$0, N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 - \frac{x}{y}\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+36}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-47}:\\
\;\;\;\;\frac{y}{y - z}\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-59} \lor \neg \left(y \leq 2.3 \cdot 10^{-21}\right):\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z - y}\\
\end{array}
\end{array}
if y < -2.39999999999999992e36 or -3.59999999999999991e-47 < y < -2.79999999999999981e-59 or 2.29999999999999999e-21 < y Initial program 99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg99.9%
distribute-frac-neg299.9%
sub-neg99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
+-commutative99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in z around 0 85.3%
div-sub85.4%
*-inverses85.4%
Simplified85.4%
if -2.39999999999999992e36 < y < -3.59999999999999991e-47Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 80.5%
if -2.79999999999999981e-59 < y < 2.29999999999999999e-21Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around inf 86.1%
neg-mul-186.1%
distribute-neg-frac286.1%
neg-sub086.1%
sub-neg86.1%
mul-1-neg86.1%
+-commutative86.1%
associate--r+86.1%
neg-sub086.1%
mul-1-neg86.1%
remove-double-neg86.1%
Simplified86.1%
Final simplification85.5%
(FPCore (x y z) :precision binary64 (if (<= y -1.56e+41) 1.0 (if (<= y -1.9e-38) (/ y (- z)) (if (<= y 1.35e-21) (/ x z) 1.0))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.56e+41) {
tmp = 1.0;
} else if (y <= -1.9e-38) {
tmp = y / -z;
} else if (y <= 1.35e-21) {
tmp = x / z;
} else {
tmp = 1.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 <= (-1.56d+41)) then
tmp = 1.0d0
else if (y <= (-1.9d-38)) then
tmp = y / -z
else if (y <= 1.35d-21) then
tmp = x / z
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1.56e+41) {
tmp = 1.0;
} else if (y <= -1.9e-38) {
tmp = y / -z;
} else if (y <= 1.35e-21) {
tmp = x / z;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.56e+41: tmp = 1.0 elif y <= -1.9e-38: tmp = y / -z elif y <= 1.35e-21: tmp = x / z else: tmp = 1.0 return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.56e+41) tmp = 1.0; elseif (y <= -1.9e-38) tmp = Float64(y / Float64(-z)); elseif (y <= 1.35e-21) tmp = Float64(x / z); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.56e+41) tmp = 1.0; elseif (y <= -1.9e-38) tmp = y / -z; elseif (y <= 1.35e-21) tmp = x / z; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.56e+41], 1.0, If[LessEqual[y, -1.9e-38], N[(y / (-z)), $MachinePrecision], If[LessEqual[y, 1.35e-21], N[(x / z), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.56 \cdot 10^{+41}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-38}:\\
\;\;\;\;\frac{y}{-z}\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-21}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.56e41 or 1.3500000000000001e-21 < y Initial program 99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg99.9%
distribute-frac-neg299.9%
sub-neg99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
+-commutative99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in y around inf 68.3%
if -1.56e41 < y < -1.9e-38Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 73.7%
Taylor expanded in y around 0 65.4%
associate-*r/65.4%
neg-mul-165.4%
Simplified65.4%
if -1.9e-38 < y < 1.3500000000000001e-21Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 70.1%
Final simplification69.0%
(FPCore (x y z) :precision binary64 (if (or (<= y -5.6e-71) (not (<= y 1.95e-25))) (- 1.0 (/ x y)) (/ x z)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -5.6e-71) || !(y <= 1.95e-25)) {
tmp = 1.0 - (x / y);
} else {
tmp = 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 <= (-5.6d-71)) .or. (.not. (y <= 1.95d-25))) then
tmp = 1.0d0 - (x / y)
else
tmp = x / z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -5.6e-71) || !(y <= 1.95e-25)) {
tmp = 1.0 - (x / y);
} else {
tmp = x / z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -5.6e-71) or not (y <= 1.95e-25): tmp = 1.0 - (x / y) else: tmp = x / z return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -5.6e-71) || !(y <= 1.95e-25)) tmp = Float64(1.0 - Float64(x / y)); else tmp = Float64(x / z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -5.6e-71) || ~((y <= 1.95e-25))) tmp = 1.0 - (x / y); else tmp = x / z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -5.6e-71], N[Not[LessEqual[y, 1.95e-25]], $MachinePrecision]], N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.6 \cdot 10^{-71} \lor \neg \left(y \leq 1.95 \cdot 10^{-25}\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z}\\
\end{array}
\end{array}
if y < -5.60000000000000001e-71 or 1.95e-25 < y Initial program 99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg99.9%
distribute-frac-neg299.9%
sub-neg99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
+-commutative99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in z around 0 81.3%
div-sub81.3%
*-inverses81.3%
Simplified81.3%
if -5.60000000000000001e-71 < y < 1.95e-25Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 71.8%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (if (or (<= y -6.2e-59) (not (<= y 1.1e-21))) (- 1.0 (/ x y)) (/ x (- z y))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -6.2e-59) || !(y <= 1.1e-21)) {
tmp = 1.0 - (x / y);
} else {
tmp = x / (z - 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 <= (-6.2d-59)) .or. (.not. (y <= 1.1d-21))) then
tmp = 1.0d0 - (x / y)
else
tmp = x / (z - y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -6.2e-59) || !(y <= 1.1e-21)) {
tmp = 1.0 - (x / y);
} else {
tmp = x / (z - y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -6.2e-59) or not (y <= 1.1e-21): tmp = 1.0 - (x / y) else: tmp = x / (z - y) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -6.2e-59) || !(y <= 1.1e-21)) tmp = Float64(1.0 - Float64(x / y)); else tmp = Float64(x / Float64(z - y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -6.2e-59) || ~((y <= 1.1e-21))) tmp = 1.0 - (x / y); else tmp = x / (z - y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -6.2e-59], N[Not[LessEqual[y, 1.1e-21]], $MachinePrecision]], N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{-59} \lor \neg \left(y \leq 1.1 \cdot 10^{-21}\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z - y}\\
\end{array}
\end{array}
if y < -6.19999999999999998e-59 or 1.1e-21 < y Initial program 99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg99.9%
distribute-frac-neg299.9%
sub-neg99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
+-commutative99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in z around 0 81.6%
div-sub81.6%
*-inverses81.6%
Simplified81.6%
if -6.19999999999999998e-59 < y < 1.1e-21Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around inf 86.1%
neg-mul-186.1%
distribute-neg-frac286.1%
neg-sub086.1%
sub-neg86.1%
mul-1-neg86.1%
+-commutative86.1%
associate--r+86.1%
neg-sub086.1%
mul-1-neg86.1%
remove-double-neg86.1%
Simplified86.1%
Final simplification83.6%
(FPCore (x y z) :precision binary64 (if (<= y -1.45e-28) 1.0 (if (<= y 1.6e-21) (/ x z) 1.0)))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.45e-28) {
tmp = 1.0;
} else if (y <= 1.6e-21) {
tmp = x / z;
} else {
tmp = 1.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 <= (-1.45d-28)) then
tmp = 1.0d0
else if (y <= 1.6d-21) then
tmp = x / z
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1.45e-28) {
tmp = 1.0;
} else if (y <= 1.6e-21) {
tmp = x / z;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.45e-28: tmp = 1.0 elif y <= 1.6e-21: tmp = x / z else: tmp = 1.0 return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.45e-28) tmp = 1.0; elseif (y <= 1.6e-21) tmp = Float64(x / z); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.45e-28) tmp = 1.0; elseif (y <= 1.6e-21) tmp = x / z; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.45e-28], 1.0, If[LessEqual[y, 1.6e-21], N[(x / z), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-21}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.45000000000000006e-28 or 1.6000000000000001e-21 < y Initial program 99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg99.9%
distribute-frac-neg299.9%
sub-neg99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
+-commutative99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in y around inf 64.7%
if -1.45000000000000006e-28 < y < 1.6000000000000001e-21Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y around 0 69.2%
Final simplification66.8%
(FPCore (x y z) :precision binary64 1.0)
double code(double x, double y, double z) {
return 1.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 1.0d0
end function
public static double code(double x, double y, double z) {
return 1.0;
}
def code(x, y, z): return 1.0
function code(x, y, z) return 1.0 end
function tmp = code(x, y, z) tmp = 1.0; end
code[x_, y_, z_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
distribute-frac-neg100.0%
distribute-frac-neg2100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y around inf 38.3%
Final simplification38.3%
(FPCore (x y z) :precision binary64 (- (/ x (- z y)) (/ y (- z y))))
double code(double x, double y, double z) {
return (x / (z - y)) - (y / (z - 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 - y)) - (y / (z - y))
end function
public static double code(double x, double y, double z) {
return (x / (z - y)) - (y / (z - y));
}
def code(x, y, z): return (x / (z - y)) - (y / (z - y))
function code(x, y, z) return Float64(Float64(x / Float64(z - y)) - Float64(y / Float64(z - y))) end
function tmp = code(x, y, z) tmp = (x / (z - y)) - (y / (z - y)); end
code[x_, y_, z_] := N[(N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision] - N[(y / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{z - y} - \frac{y}{z - y}
\end{array}
herbie shell --seed 2024048
(FPCore (x y z)
:name "Graphics.Rasterific.Shading:$sgradientColorAt from Rasterific-0.6.1"
:precision binary64
:alt
(- (/ x (- z y)) (/ y (- z y)))
(/ (- x y) (- z y)))