
(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 * Float64(y - z)) / y) end
function tmp = code(x, y, z) tmp = (x * (y - z)) / y; end
code[x_, y_, z_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 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 * Float64(y - z)) / y) end
function tmp = code(x, y, z) tmp = (x * (y - z)) / y; end
code[x_, y_, z_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{y}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= x -3.5e-262) (not (<= x 5e-47))) (- x (* x (/ z y))) (- x (/ z (/ y x)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3.5e-262) || !(x <= 5e-47)) {
tmp = x - (x * (z / y));
} else {
tmp = x - (z / (y / x));
}
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 <= (-3.5d-262)) .or. (.not. (x <= 5d-47))) then
tmp = x - (x * (z / y))
else
tmp = x - (z / (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3.5e-262) || !(x <= 5e-47)) {
tmp = x - (x * (z / y));
} else {
tmp = x - (z / (y / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3.5e-262) or not (x <= 5e-47): tmp = x - (x * (z / y)) else: tmp = x - (z / (y / x)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3.5e-262) || !(x <= 5e-47)) tmp = Float64(x - Float64(x * Float64(z / y))); else tmp = Float64(x - Float64(z / Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3.5e-262) || ~((x <= 5e-47))) tmp = x - (x * (z / y)); else tmp = x - (z / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3.5e-262], N[Not[LessEqual[x, 5e-47]], $MachinePrecision]], N[(x - N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{-262} \lor \neg \left(x \leq 5 \cdot 10^{-47}\right):\\
\;\;\;\;x - x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{z}{\frac{y}{x}}\\
\end{array}
\end{array}
if x < -3.50000000000000011e-262 or 5.00000000000000011e-47 < x Initial program 83.9%
--rgt-identity83.9%
associate-*l/86.4%
sub-neg86.4%
distribute-rgt-in78.2%
*-commutative78.2%
distribute-lft-neg-out78.2%
unsub-neg78.2%
associate--r+78.2%
associate-*l/75.8%
associate-/l*90.9%
*-inverses90.9%
/-rgt-identity90.9%
+-rgt-identity90.9%
*-commutative90.9%
associate-/r/98.9%
Simplified98.9%
clear-num98.9%
associate-/r/98.9%
clear-num99.0%
Applied egg-rr99.0%
if -3.50000000000000011e-262 < x < 5.00000000000000011e-47Initial program 93.1%
--rgt-identity93.1%
associate-*l/73.9%
sub-neg73.9%
distribute-rgt-in73.9%
*-commutative73.9%
distribute-lft-neg-out73.9%
unsub-neg73.9%
associate--r+73.9%
associate-*l/95.0%
associate-/l*98.2%
*-inverses98.2%
/-rgt-identity98.2%
+-rgt-identity98.2%
*-commutative98.2%
associate-/r/83.6%
Simplified83.6%
clear-num83.6%
associate-/r/83.6%
clear-num83.7%
Applied egg-rr83.7%
associate-*l/96.4%
associate-/l*98.1%
Applied egg-rr98.1%
Final simplification98.8%
(FPCore (x y z) :precision binary64 (if (or (<= z -8.8e+88) (not (<= z 2.25e+27))) (/ (- x) (/ y z)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -8.8e+88) || !(z <= 2.25e+27)) {
tmp = -x / (y / z);
} else {
tmp = x;
}
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 <= (-8.8d+88)) .or. (.not. (z <= 2.25d+27))) then
tmp = -x / (y / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -8.8e+88) || !(z <= 2.25e+27)) {
tmp = -x / (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -8.8e+88) or not (z <= 2.25e+27): tmp = -x / (y / z) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -8.8e+88) || !(z <= 2.25e+27)) tmp = Float64(Float64(-x) / Float64(y / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -8.8e+88) || ~((z <= 2.25e+27))) tmp = -x / (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -8.8e+88], N[Not[LessEqual[z, 2.25e+27]], $MachinePrecision]], N[((-x) / N[(y / z), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+88} \lor \neg \left(z \leq 2.25 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{-x}{\frac{y}{z}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -8.80000000000000035e88 or 2.25e27 < z Initial program 88.0%
Taylor expanded in y around 0 77.3%
mul-1-neg77.3%
distribute-rgt-neg-in77.3%
Simplified77.3%
frac-2neg77.3%
div-inv77.2%
distribute-rgt-neg-out77.2%
remove-double-neg77.2%
Applied egg-rr77.2%
un-div-inv77.3%
add-sqr-sqrt38.8%
sqrt-unprod28.7%
sqr-neg28.7%
sqrt-unprod0.5%
add-sqr-sqrt1.2%
associate-*l/1.2%
associate-/r/1.3%
frac-2neg1.3%
distribute-frac-neg1.3%
distribute-neg-frac1.3%
associate-/l*1.2%
*-commutative1.2%
associate-/l*1.2%
add-sqr-sqrt0.7%
sqrt-unprod35.5%
sqr-neg35.5%
sqrt-unprod36.0%
add-sqr-sqrt72.6%
Applied egg-rr72.6%
if -8.80000000000000035e88 < z < 2.25e27Initial program 84.5%
associate-*r/99.9%
Simplified99.9%
Taylor expanded in y around inf 75.4%
Final simplification74.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -9e+88) (not (<= z 2.5e+28))) (* x (/ (- z) y)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -9e+88) || !(z <= 2.5e+28)) {
tmp = x * (-z / y);
} else {
tmp = x;
}
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 <= (-9d+88)) .or. (.not. (z <= 2.5d+28))) then
tmp = x * (-z / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -9e+88) || !(z <= 2.5e+28)) {
tmp = x * (-z / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -9e+88) or not (z <= 2.5e+28): tmp = x * (-z / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -9e+88) || !(z <= 2.5e+28)) tmp = Float64(x * Float64(Float64(-z) / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -9e+88) || ~((z <= 2.5e+28))) tmp = x * (-z / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -9e+88], N[Not[LessEqual[z, 2.5e+28]], $MachinePrecision]], N[(x * N[((-z) / y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+88} \lor \neg \left(z \leq 2.5 \cdot 10^{+28}\right):\\
\;\;\;\;x \cdot \frac{-z}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -9e88 or 2.49999999999999979e28 < z Initial program 88.0%
associate-*r/89.6%
Simplified89.6%
Taylor expanded in y around 0 72.6%
neg-mul-172.6%
distribute-neg-frac72.6%
Simplified72.6%
if -9e88 < z < 2.49999999999999979e28Initial program 84.5%
associate-*r/99.9%
Simplified99.9%
Taylor expanded in y around inf 75.4%
Final simplification74.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -8.8e+88) (not (<= z 2.25e+27))) (* z (/ (- x) y)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -8.8e+88) || !(z <= 2.25e+27)) {
tmp = z * (-x / y);
} else {
tmp = x;
}
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 <= (-8.8d+88)) .or. (.not. (z <= 2.25d+27))) then
tmp = z * (-x / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -8.8e+88) || !(z <= 2.25e+27)) {
tmp = z * (-x / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -8.8e+88) or not (z <= 2.25e+27): tmp = z * (-x / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -8.8e+88) || !(z <= 2.25e+27)) tmp = Float64(z * Float64(Float64(-x) / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -8.8e+88) || ~((z <= 2.25e+27))) tmp = z * (-x / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -8.8e+88], N[Not[LessEqual[z, 2.25e+27]], $MachinePrecision]], N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+88} \lor \neg \left(z \leq 2.25 \cdot 10^{+27}\right):\\
\;\;\;\;z \cdot \frac{-x}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -8.80000000000000035e88 or 2.25e27 < z Initial program 88.0%
associate-*r/89.6%
Simplified89.6%
Taylor expanded in y around 0 77.3%
associate-*r/78.4%
associate-*r*78.4%
neg-mul-178.4%
*-commutative78.4%
Simplified78.4%
if -8.80000000000000035e88 < z < 2.25e27Initial program 84.5%
associate-*r/99.9%
Simplified99.9%
Taylor expanded in y around inf 75.4%
Final simplification76.7%
(FPCore (x y z) :precision binary64 (if (<= z -1e+89) (/ (* x (- z)) y) (if (<= z 2e+27) x (* z (/ (- x) y)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1e+89) {
tmp = (x * -z) / y;
} else if (z <= 2e+27) {
tmp = x;
} else {
tmp = z * (-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 (z <= (-1d+89)) then
tmp = (x * -z) / y
else if (z <= 2d+27) then
tmp = x
else
tmp = z * (-x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1e+89) {
tmp = (x * -z) / y;
} else if (z <= 2e+27) {
tmp = x;
} else {
tmp = z * (-x / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1e+89: tmp = (x * -z) / y elif z <= 2e+27: tmp = x else: tmp = z * (-x / y) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1e+89) tmp = Float64(Float64(x * Float64(-z)) / y); elseif (z <= 2e+27) tmp = x; else tmp = Float64(z * Float64(Float64(-x) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1e+89) tmp = (x * -z) / y; elseif (z <= 2e+27) tmp = x; else tmp = z * (-x / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1e+89], N[(N[(x * (-z)), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 2e+27], x, N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+89}:\\
\;\;\;\;\frac{x \cdot \left(-z\right)}{y}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+27}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{-x}{y}\\
\end{array}
\end{array}
if z < -9.99999999999999995e88Initial program 88.6%
Taylor expanded in y around 0 76.5%
mul-1-neg76.5%
distribute-rgt-neg-in76.5%
Simplified76.5%
if -9.99999999999999995e88 < z < 2e27Initial program 84.5%
associate-*r/99.9%
Simplified99.9%
Taylor expanded in y around inf 75.4%
if 2e27 < z Initial program 87.4%
associate-*r/90.5%
Simplified90.5%
Taylor expanded in y around 0 77.9%
associate-*r/81.2%
associate-*r*81.2%
neg-mul-181.2%
*-commutative81.2%
Simplified81.2%
Final simplification77.0%
(FPCore (x y z) :precision binary64 (if (<= y -1.55e-121) x (if (<= y 4.6e-245) (* y (/ x y)) x)))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.55e-121) {
tmp = x;
} else if (y <= 4.6e-245) {
tmp = y * (x / y);
} else {
tmp = x;
}
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.55d-121)) then
tmp = x
else if (y <= 4.6d-245) then
tmp = y * (x / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1.55e-121) {
tmp = x;
} else if (y <= 4.6e-245) {
tmp = y * (x / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.55e-121: tmp = x elif y <= 4.6e-245: tmp = y * (x / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.55e-121) tmp = x; elseif (y <= 4.6e-245) tmp = Float64(y * Float64(x / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.55e-121) tmp = x; elseif (y <= 4.6e-245) tmp = y * (x / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.55e-121], x, If[LessEqual[y, 4.6e-245], N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{-121}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-245}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.5499999999999999e-121 or 4.6000000000000003e-245 < y Initial program 83.9%
associate-*r/98.5%
Simplified98.5%
Taylor expanded in y around inf 61.9%
if -1.5499999999999999e-121 < y < 4.6000000000000003e-245Initial program 93.1%
Taylor expanded in y around inf 9.0%
associate-/l*24.8%
div-inv24.8%
clear-num24.9%
Applied egg-rr24.9%
Final simplification53.6%
(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(x * Float64(Float64(y - z) / y)) end
function tmp = code(x, y, z) tmp = x * ((y - z) / y); end
code[x_, y_, z_] := N[(x * N[(N[(y - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y - z}{y}
\end{array}
Initial program 86.0%
associate-*r/95.5%
Simplified95.5%
Final simplification95.5%
(FPCore (x y z) :precision binary64 (- x (* x (/ z y))))
double code(double x, double y, double z) {
return x - (x * (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 - (x * (z / y))
end function
public static double code(double x, double y, double z) {
return x - (x * (z / y));
}
def code(x, y, z): return x - (x * (z / y))
function code(x, y, z) return Float64(x - Float64(x * Float64(z / y))) end
function tmp = code(x, y, z) tmp = x - (x * (z / y)); end
code[x_, y_, z_] := N[(x - N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - x \cdot \frac{z}{y}
\end{array}
Initial program 86.0%
--rgt-identity86.0%
associate-*l/83.6%
sub-neg83.6%
distribute-rgt-in77.2%
*-commutative77.2%
distribute-lft-neg-out77.2%
unsub-neg77.2%
associate--r+77.2%
associate-*l/80.2%
associate-/l*92.6%
*-inverses92.6%
/-rgt-identity92.6%
+-rgt-identity92.6%
*-commutative92.6%
associate-/r/95.5%
Simplified95.5%
clear-num95.4%
associate-/r/95.4%
clear-num95.5%
Applied egg-rr95.5%
Final simplification95.5%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 86.0%
associate-*r/95.5%
Simplified95.5%
Taylor expanded in y around inf 50.5%
Final simplification50.5%
(FPCore (x y z) :precision binary64 (if (< z -2.060202331921739e+104) (- x (/ (* z x) y)) (if (< z 1.6939766013828526e+213) (/ x (/ y (- y z))) (* (- y z) (/ x y)))))
double code(double x, double y, double z) {
double tmp;
if (z < -2.060202331921739e+104) {
tmp = x - ((z * x) / y);
} else if (z < 1.6939766013828526e+213) {
tmp = x / (y / (y - z));
} else {
tmp = (y - z) * (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 (z < (-2.060202331921739d+104)) then
tmp = x - ((z * x) / y)
else if (z < 1.6939766013828526d+213) then
tmp = x / (y / (y - z))
else
tmp = (y - z) * (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z < -2.060202331921739e+104) {
tmp = x - ((z * x) / y);
} else if (z < 1.6939766013828526e+213) {
tmp = x / (y / (y - z));
} else {
tmp = (y - z) * (x / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z < -2.060202331921739e+104: tmp = x - ((z * x) / y) elif z < 1.6939766013828526e+213: tmp = x / (y / (y - z)) else: tmp = (y - z) * (x / y) return tmp
function code(x, y, z) tmp = 0.0 if (z < -2.060202331921739e+104) tmp = Float64(x - Float64(Float64(z * x) / y)); elseif (z < 1.6939766013828526e+213) tmp = Float64(x / Float64(y / Float64(y - z))); else tmp = Float64(Float64(y - z) * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z < -2.060202331921739e+104) tmp = x - ((z * x) / y); elseif (z < 1.6939766013828526e+213) tmp = x / (y / (y - z)); else tmp = (y - z) * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Less[z, -2.060202331921739e+104], N[(x - N[(N[(z * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[Less[z, 1.6939766013828526e+213], N[(x / N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z < -2.060202331921739 \cdot 10^{+104}:\\
\;\;\;\;x - \frac{z \cdot x}{y}\\
\mathbf{elif}\;z < 1.6939766013828526 \cdot 10^{+213}:\\
\;\;\;\;\frac{x}{\frac{y}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{y}\\
\end{array}
\end{array}
herbie shell --seed 2023279
(FPCore (x y z)
:name "Diagrams.Backend.Cairo.Internal:setTexture from diagrams-cairo-1.3.0.3"
:precision binary64
:herbie-target
(if (< z -2.060202331921739e+104) (- x (/ (* z x) y)) (if (< z 1.6939766013828526e+213) (/ x (/ y (- y z))) (* (- y z) (/ x y))))
(/ (* x (- y z)) y))