
(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 8 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 (<= z -2.8e+139) (- x (/ z (/ y x))) (- x (/ x (/ y z)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.8e+139) {
tmp = x - (z / (y / x));
} else {
tmp = x - (x / (y / 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.8d+139)) then
tmp = x - (z / (y / x))
else
tmp = x - (x / (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.8e+139) {
tmp = x - (z / (y / x));
} else {
tmp = x - (x / (y / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.8e+139: tmp = x - (z / (y / x)) else: tmp = x - (x / (y / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.8e+139) tmp = Float64(x - Float64(z / Float64(y / x))); else tmp = Float64(x - Float64(x / Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.8e+139) tmp = x - (z / (y / x)); else tmp = x - (x / (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.8e+139], N[(x - N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x / N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+139}:\\
\;\;\;\;x - \frac{z}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x}{\frac{y}{z}}\\
\end{array}
\end{array}
if z < -2.7999999999999998e139Initial program 88.9%
associate-*l/94.5%
distribute-rgt-out--88.7%
associate-*r/88.9%
associate-*l/99.8%
*-inverses99.8%
*-lft-identity99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
if -2.7999999999999998e139 < z Initial program 79.5%
associate-*l/82.6%
distribute-rgt-out--78.8%
associate-*r/76.9%
associate-*l/93.4%
*-inverses93.4%
*-lft-identity93.4%
Simplified93.4%
Taylor expanded in z around 0 92.2%
*-commutative92.2%
associate-/l*97.7%
Simplified97.7%
Final simplification98.0%
(FPCore (x y z) :precision binary64 (if (or (<= z -3.6e-17) (not (<= z 4.2e-37))) (* z (/ (- x) y)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -3.6e-17) || !(z <= 4.2e-37)) {
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 <= (-3.6d-17)) .or. (.not. (z <= 4.2d-37))) 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 <= -3.6e-17) || !(z <= 4.2e-37)) {
tmp = z * (-x / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -3.6e-17) or not (z <= 4.2e-37): tmp = z * (-x / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -3.6e-17) || !(z <= 4.2e-37)) 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 <= -3.6e-17) || ~((z <= 4.2e-37))) tmp = z * (-x / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -3.6e-17], N[Not[LessEqual[z, 4.2e-37]], $MachinePrecision]], N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{-17} \lor \neg \left(z \leq 4.2 \cdot 10^{-37}\right):\\
\;\;\;\;z \cdot \frac{-x}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -3.59999999999999995e-17 or 4.2000000000000002e-37 < z Initial program 85.5%
associate-*l/89.2%
distribute-rgt-out--83.7%
associate-*r/82.8%
associate-*l/95.2%
*-inverses95.2%
*-lft-identity95.2%
Simplified95.2%
Taylor expanded in z around 0 89.2%
*-commutative89.2%
associate-/l*93.5%
Simplified93.5%
Taylor expanded in y around 0 73.4%
mul-1-neg73.4%
associate-*r/73.6%
distribute-rgt-neg-in73.6%
distribute-frac-neg73.6%
Simplified73.6%
if -3.59999999999999995e-17 < z < 4.2000000000000002e-37Initial program 74.6%
associate-*l/77.6%
distribute-rgt-out--75.6%
associate-*r/73.1%
associate-*l/93.2%
*-inverses93.2%
*-lft-identity93.2%
Simplified93.2%
Taylor expanded in z around 0 78.2%
Final simplification75.6%
(FPCore (x y z) :precision binary64 (if (<= z -9.5e-22) (* z (/ (- x) y)) (if (<= z 3.6e-41) x (* (- x) (/ z y)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -9.5e-22) {
tmp = z * (-x / y);
} else if (z <= 3.6e-41) {
tmp = x;
} 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 (z <= (-9.5d-22)) then
tmp = z * (-x / y)
else if (z <= 3.6d-41) then
tmp = x
else
tmp = -x * (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -9.5e-22) {
tmp = z * (-x / y);
} else if (z <= 3.6e-41) {
tmp = x;
} else {
tmp = -x * (z / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -9.5e-22: tmp = z * (-x / y) elif z <= 3.6e-41: tmp = x else: tmp = -x * (z / y) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -9.5e-22) tmp = Float64(z * Float64(Float64(-x) / y)); elseif (z <= 3.6e-41) tmp = x; else tmp = Float64(Float64(-x) * Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -9.5e-22) tmp = z * (-x / y); elseif (z <= 3.6e-41) tmp = x; else tmp = -x * (z / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -9.5e-22], N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e-41], x, N[((-x) * N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{-22}:\\
\;\;\;\;z \cdot \frac{-x}{y}\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-41}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\left(-x\right) \cdot \frac{z}{y}\\
\end{array}
\end{array}
if z < -9.4999999999999994e-22Initial program 86.2%
associate-*l/94.1%
distribute-rgt-out--88.2%
associate-*r/84.7%
associate-*l/98.4%
*-inverses98.4%
*-lft-identity98.4%
Simplified98.4%
Taylor expanded in z around 0 90.1%
*-commutative90.1%
associate-/l*92.9%
Simplified92.9%
Taylor expanded in y around 0 76.3%
mul-1-neg76.3%
associate-*r/77.5%
distribute-rgt-neg-in77.5%
distribute-frac-neg77.5%
Simplified77.5%
if -9.4999999999999994e-22 < z < 3.6e-41Initial program 74.6%
associate-*l/77.6%
distribute-rgt-out--75.6%
associate-*r/73.1%
associate-*l/93.2%
*-inverses93.2%
*-lft-identity93.2%
Simplified93.2%
Taylor expanded in z around 0 78.2%
if 3.6e-41 < z Initial program 84.9%
associate-*l/84.9%
distribute-rgt-out--79.5%
associate-*r/81.0%
associate-*l/92.2%
*-inverses92.2%
*-lft-identity92.2%
Simplified92.2%
Taylor expanded in z around inf 70.8%
mul-1-neg70.8%
associate-*l/70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
Final simplification75.8%
(FPCore (x y z) :precision binary64 (if (<= z -4.4e-17) (* z (/ (- x) y)) (if (<= z 6.6e-49) x (/ x (/ (- y) z)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -4.4e-17) {
tmp = z * (-x / y);
} else if (z <= 6.6e-49) {
tmp = x;
} else {
tmp = x / (-y / 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 <= (-4.4d-17)) then
tmp = z * (-x / y)
else if (z <= 6.6d-49) then
tmp = x
else
tmp = x / (-y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -4.4e-17) {
tmp = z * (-x / y);
} else if (z <= 6.6e-49) {
tmp = x;
} else {
tmp = x / (-y / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -4.4e-17: tmp = z * (-x / y) elif z <= 6.6e-49: tmp = x else: tmp = x / (-y / z) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -4.4e-17) tmp = Float64(z * Float64(Float64(-x) / y)); elseif (z <= 6.6e-49) tmp = x; else tmp = Float64(x / Float64(Float64(-y) / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -4.4e-17) tmp = z * (-x / y); elseif (z <= 6.6e-49) tmp = x; else tmp = x / (-y / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -4.4e-17], N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-49], x, N[(x / N[((-y) / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{-17}:\\
\;\;\;\;z \cdot \frac{-x}{y}\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-49}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{-y}{z}}\\
\end{array}
\end{array}
if z < -4.4e-17Initial program 86.2%
associate-*l/94.1%
distribute-rgt-out--88.2%
associate-*r/84.7%
associate-*l/98.4%
*-inverses98.4%
*-lft-identity98.4%
Simplified98.4%
Taylor expanded in z around 0 90.1%
*-commutative90.1%
associate-/l*92.9%
Simplified92.9%
Taylor expanded in y around 0 76.3%
mul-1-neg76.3%
associate-*r/77.5%
distribute-rgt-neg-in77.5%
distribute-frac-neg77.5%
Simplified77.5%
if -4.4e-17 < z < 6.6e-49Initial program 74.6%
associate-*l/77.6%
distribute-rgt-out--75.6%
associate-*r/73.1%
associate-*l/93.2%
*-inverses93.2%
*-lft-identity93.2%
Simplified93.2%
Taylor expanded in z around 0 78.2%
if 6.6e-49 < z Initial program 84.9%
associate-*l/84.9%
distribute-rgt-out--79.5%
associate-*r/81.0%
associate-*l/92.2%
*-inverses92.2%
*-lft-identity92.2%
Simplified92.2%
Taylor expanded in z around inf 70.8%
mul-1-neg70.8%
associate-*l/70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
add-sqr-sqrt35.8%
sqrt-unprod26.6%
sqr-neg26.6%
sqrt-unprod0.9%
clear-num0.9%
add-sqr-sqrt1.9%
associate-/r/1.9%
frac-2neg1.9%
clear-num1.9%
add-sqr-sqrt1.0%
sqrt-unprod24.2%
sqr-neg24.2%
sqrt-unprod34.9%
add-sqr-sqrt71.3%
distribute-neg-frac71.3%
Applied egg-rr71.3%
Final simplification76.0%
(FPCore (x y z) :precision binary64 (if (<= z -2.7e+139) (- x (* z (/ x y))) (- x (/ x (/ y z)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.7e+139) {
tmp = x - (z * (x / y));
} else {
tmp = x - (x / (y / 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+139)) then
tmp = x - (z * (x / y))
else
tmp = x - (x / (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.7e+139) {
tmp = x - (z * (x / y));
} else {
tmp = x - (x / (y / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.7e+139: tmp = x - (z * (x / y)) else: tmp = x - (x / (y / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.7e+139) tmp = Float64(x - Float64(z * Float64(x / y))); else tmp = Float64(x - Float64(x / Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.7e+139) tmp = x - (z * (x / y)); else tmp = x - (x / (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.7e+139], N[(x - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x / N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+139}:\\
\;\;\;\;x - z \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x}{\frac{y}{z}}\\
\end{array}
\end{array}
if z < -2.6999999999999998e139Initial program 88.9%
associate-*l/94.5%
distribute-rgt-out--88.7%
associate-*r/88.9%
associate-*l/99.8%
*-inverses99.8%
*-lft-identity99.8%
Simplified99.8%
if -2.6999999999999998e139 < z Initial program 79.5%
associate-*l/82.6%
distribute-rgt-out--78.8%
associate-*r/76.9%
associate-*l/93.4%
*-inverses93.4%
*-lft-identity93.4%
Simplified93.4%
Taylor expanded in z around 0 92.2%
*-commutative92.2%
associate-/l*97.7%
Simplified97.7%
Final simplification98.0%
(FPCore (x y z) :precision binary64 (if (<= x 8.8e+173) x (* y (/ x y))))
double code(double x, double y, double z) {
double tmp;
if (x <= 8.8e+173) {
tmp = x;
} else {
tmp = y * (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 (x <= 8.8d+173) then
tmp = x
else
tmp = y * (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 8.8e+173) {
tmp = x;
} else {
tmp = y * (x / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 8.8e+173: tmp = x else: tmp = y * (x / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 8.8e+173) tmp = x; else tmp = Float64(y * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 8.8e+173) tmp = x; else tmp = y * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 8.8e+173], x, N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 8.8 \cdot 10^{+173}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\end{array}
\end{array}
if x < 8.7999999999999999e173Initial program 83.4%
associate-*l/83.2%
distribute-rgt-out--80.0%
associate-*r/81.7%
associate-*l/94.5%
*-inverses94.5%
*-lft-identity94.5%
Simplified94.5%
Taylor expanded in z around 0 47.2%
if 8.7999999999999999e173 < x Initial program 59.1%
Taylor expanded in y around inf 13.1%
associate-/l*60.4%
div-inv63.6%
clear-num63.7%
Applied egg-rr63.7%
Final simplification48.9%
(FPCore (x y z) :precision binary64 (- x (* z (/ x y))))
double code(double x, double y, double z) {
return x - (z * (x / 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 * (x / y))
end function
public static double code(double x, double y, double z) {
return x - (z * (x / y));
}
def code(x, y, z): return x - (z * (x / y))
function code(x, y, z) return Float64(x - Float64(z * Float64(x / y))) end
function tmp = code(x, y, z) tmp = x - (z * (x / y)); end
code[x_, y_, z_] := N[(x - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - z \cdot \frac{x}{y}
\end{array}
Initial program 80.8%
associate-*l/84.2%
distribute-rgt-out--80.2%
associate-*r/78.6%
associate-*l/94.3%
*-inverses94.3%
*-lft-identity94.3%
Simplified94.3%
Final simplification94.3%
(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 80.8%
associate-*l/84.2%
distribute-rgt-out--80.2%
associate-*r/78.6%
associate-*l/94.3%
*-inverses94.3%
*-lft-identity94.3%
Simplified94.3%
Taylor expanded in z around 0 46.8%
Final simplification46.8%
(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 2023182
(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))