
(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 -8.5e+95) (* (- y z) (/ x y)) (- x (/ x (/ y z)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -8.5e+95) {
tmp = (y - 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 <= (-8.5d+95)) then
tmp = (y - 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 <= -8.5e+95) {
tmp = (y - z) * (x / y);
} else {
tmp = x - (x / (y / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -8.5e+95: tmp = (y - z) * (x / y) else: tmp = x - (x / (y / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -8.5e+95) tmp = Float64(Float64(y - 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 <= -8.5e+95) tmp = (y - z) * (x / y); else tmp = x - (x / (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -8.5e+95], N[(N[(y - z), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x - N[(x / N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+95}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x}{\frac{y}{z}}\\
\end{array}
\end{array}
if z < -8.5000000000000002e95Initial program 74.8%
*-commutative74.8%
associate-*r/96.0%
Simplified96.0%
if -8.5000000000000002e95 < z Initial program 85.3%
--rgt-identity85.3%
associate-*l/81.5%
sub-neg81.5%
distribute-rgt-in76.7%
*-commutative76.7%
distribute-lft-neg-out76.7%
unsub-neg76.7%
associate--r+76.7%
associate-*l/80.4%
associate-/l*93.2%
*-inverses93.2%
/-rgt-identity93.2%
+-rgt-identity93.2%
*-commutative93.2%
associate-/r/97.2%
Simplified97.2%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(if (or (<= z -2e+27)
(not (or (<= z -1.9e-16) (and (not (<= z -6.1e-71)) (<= z 2.5e+39)))))
(* x (/ (- z) y))
x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2e+27) || !((z <= -1.9e-16) || (!(z <= -6.1e-71) && (z <= 2.5e+39)))) {
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 <= (-2d+27)) .or. (.not. (z <= (-1.9d-16)) .or. (.not. (z <= (-6.1d-71))) .and. (z <= 2.5d+39))) 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 <= -2e+27) || !((z <= -1.9e-16) || (!(z <= -6.1e-71) && (z <= 2.5e+39)))) {
tmp = x * (-z / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2e+27) or not ((z <= -1.9e-16) or (not (z <= -6.1e-71) and (z <= 2.5e+39))): tmp = x * (-z / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2e+27) || !((z <= -1.9e-16) || (!(z <= -6.1e-71) && (z <= 2.5e+39)))) 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 <= -2e+27) || ~(((z <= -1.9e-16) || (~((z <= -6.1e-71)) && (z <= 2.5e+39))))) tmp = x * (-z / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2e+27], N[Not[Or[LessEqual[z, -1.9e-16], And[N[Not[LessEqual[z, -6.1e-71]], $MachinePrecision], LessEqual[z, 2.5e+39]]]], $MachinePrecision]], N[(x * N[((-z) / y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+27} \lor \neg \left(z \leq -1.9 \cdot 10^{-16} \lor \neg \left(z \leq -6.1 \cdot 10^{-71}\right) \land z \leq 2.5 \cdot 10^{+39}\right):\\
\;\;\;\;x \cdot \frac{-z}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2e27 or -1.90000000000000006e-16 < z < -6.0999999999999998e-71 or 2.50000000000000008e39 < z Initial program 84.7%
associate-*r/88.9%
Simplified88.9%
Taylor expanded in y around 0 68.7%
neg-mul-168.7%
distribute-neg-frac68.7%
Simplified68.7%
if -2e27 < z < -1.90000000000000006e-16 or -6.0999999999999998e-71 < z < 2.50000000000000008e39Initial program 81.3%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.8%
Final simplification75.7%
(FPCore (x y z)
:precision binary64
(if (or (<= z -8.5e+25)
(and (not (<= z -1.4e-15))
(or (<= z -1.66e-71) (not (<= z 1.25e+39)))))
(* z (/ (- x) y))
x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -8.5e+25) || (!(z <= -1.4e-15) && ((z <= -1.66e-71) || !(z <= 1.25e+39)))) {
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.5d+25)) .or. (.not. (z <= (-1.4d-15))) .and. (z <= (-1.66d-71)) .or. (.not. (z <= 1.25d+39))) 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.5e+25) || (!(z <= -1.4e-15) && ((z <= -1.66e-71) || !(z <= 1.25e+39)))) {
tmp = z * (-x / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -8.5e+25) or (not (z <= -1.4e-15) and ((z <= -1.66e-71) or not (z <= 1.25e+39))): tmp = z * (-x / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -8.5e+25) || (!(z <= -1.4e-15) && ((z <= -1.66e-71) || !(z <= 1.25e+39)))) 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.5e+25) || (~((z <= -1.4e-15)) && ((z <= -1.66e-71) || ~((z <= 1.25e+39))))) tmp = z * (-x / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -8.5e+25], And[N[Not[LessEqual[z, -1.4e-15]], $MachinePrecision], Or[LessEqual[z, -1.66e-71], N[Not[LessEqual[z, 1.25e+39]], $MachinePrecision]]]], N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+25} \lor \neg \left(z \leq -1.4 \cdot 10^{-15}\right) \land \left(z \leq -1.66 \cdot 10^{-71} \lor \neg \left(z \leq 1.25 \cdot 10^{+39}\right)\right):\\
\;\;\;\;z \cdot \frac{-x}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -8.5000000000000007e25 or -1.40000000000000007e-15 < z < -1.6599999999999999e-71 or 1.25000000000000004e39 < z Initial program 84.7%
associate-*r/88.9%
Simplified88.9%
Taylor expanded in y around 0 74.3%
mul-1-neg74.3%
associate-*l/76.4%
distribute-lft-neg-in76.4%
*-commutative76.4%
distribute-neg-frac76.4%
Simplified76.4%
if -8.5000000000000007e25 < z < -1.40000000000000007e-15 or -1.6599999999999999e-71 < z < 1.25000000000000004e39Initial program 81.3%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.8%
Final simplification79.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (/ (- x) y))))
(if (<= z -5.2e+22)
t_0
(if (<= z -1.75e-15)
x
(if (<= z -6.1e-71) t_0 (if (<= z 1.75e+40) x (/ (* z (- x)) y)))))))
double code(double x, double y, double z) {
double t_0 = z * (-x / y);
double tmp;
if (z <= -5.2e+22) {
tmp = t_0;
} else if (z <= -1.75e-15) {
tmp = x;
} else if (z <= -6.1e-71) {
tmp = t_0;
} else if (z <= 1.75e+40) {
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) :: t_0
real(8) :: tmp
t_0 = z * (-x / y)
if (z <= (-5.2d+22)) then
tmp = t_0
else if (z <= (-1.75d-15)) then
tmp = x
else if (z <= (-6.1d-71)) then
tmp = t_0
else if (z <= 1.75d+40) 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 t_0 = z * (-x / y);
double tmp;
if (z <= -5.2e+22) {
tmp = t_0;
} else if (z <= -1.75e-15) {
tmp = x;
} else if (z <= -6.1e-71) {
tmp = t_0;
} else if (z <= 1.75e+40) {
tmp = x;
} else {
tmp = (z * -x) / y;
}
return tmp;
}
def code(x, y, z): t_0 = z * (-x / y) tmp = 0 if z <= -5.2e+22: tmp = t_0 elif z <= -1.75e-15: tmp = x elif z <= -6.1e-71: tmp = t_0 elif z <= 1.75e+40: tmp = x else: tmp = (z * -x) / y return tmp
function code(x, y, z) t_0 = Float64(z * Float64(Float64(-x) / y)) tmp = 0.0 if (z <= -5.2e+22) tmp = t_0; elseif (z <= -1.75e-15) tmp = x; elseif (z <= -6.1e-71) tmp = t_0; elseif (z <= 1.75e+40) tmp = x; else tmp = Float64(Float64(z * Float64(-x)) / y); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (-x / y); tmp = 0.0; if (z <= -5.2e+22) tmp = t_0; elseif (z <= -1.75e-15) tmp = x; elseif (z <= -6.1e-71) tmp = t_0; elseif (z <= 1.75e+40) tmp = x; else tmp = (z * -x) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.2e+22], t$95$0, If[LessEqual[z, -1.75e-15], x, If[LessEqual[z, -6.1e-71], t$95$0, If[LessEqual[z, 1.75e+40], x, N[(N[(z * (-x)), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \frac{-x}{y}\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+22}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-15}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -6.1 \cdot 10^{-71}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+40}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot \left(-x\right)}{y}\\
\end{array}
\end{array}
if z < -5.2e22 or -1.75e-15 < z < -6.0999999999999998e-71Initial program 80.1%
associate-*r/88.7%
Simplified88.7%
Taylor expanded in y around 0 71.0%
mul-1-neg71.0%
associate-*l/75.1%
distribute-lft-neg-in75.1%
*-commutative75.1%
distribute-neg-frac75.1%
Simplified75.1%
if -5.2e22 < z < -1.75e-15 or -6.0999999999999998e-71 < z < 1.75e40Initial program 81.3%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.8%
if 1.75e40 < z Initial program 91.3%
associate-*r/89.3%
Simplified89.3%
Taylor expanded in y around 0 78.9%
associate-*r/78.9%
mul-1-neg78.9%
distribute-rgt-neg-out78.9%
Simplified78.9%
Final simplification79.7%
(FPCore (x y z) :precision binary64 (if (<= z -1.05e+99) (* (- y z) (/ x y)) (* x (/ (- y z) y))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.05e+99) {
tmp = (y - z) * (x / y);
} else {
tmp = x * ((y - 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 <= (-1.05d+99)) then
tmp = (y - z) * (x / y)
else
tmp = x * ((y - z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.05e+99) {
tmp = (y - z) * (x / y);
} else {
tmp = x * ((y - z) / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.05e+99: tmp = (y - z) * (x / y) else: tmp = x * ((y - z) / y) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.05e+99) tmp = Float64(Float64(y - z) * Float64(x / y)); else tmp = Float64(x * Float64(Float64(y - z) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.05e+99) tmp = (y - z) * (x / y); else tmp = x * ((y - z) / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.05e+99], N[(N[(y - z), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+99}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y - z}{y}\\
\end{array}
\end{array}
if z < -1.05000000000000005e99Initial program 74.4%
*-commutative74.4%
associate-*r/96.0%
Simplified96.0%
if -1.05000000000000005e99 < z Initial program 85.4%
associate-*r/97.1%
Simplified97.1%
Final simplification96.9%
(FPCore (x y z) :precision binary64 (if (<= x 4.2e-97) x (* y (/ x y))))
double code(double x, double y, double z) {
double tmp;
if (x <= 4.2e-97) {
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 <= 4.2d-97) 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 <= 4.2e-97) {
tmp = x;
} else {
tmp = y * (x / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 4.2e-97: tmp = x else: tmp = y * (x / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 4.2e-97) 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 <= 4.2e-97) tmp = x; else tmp = y * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 4.2e-97], x, N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.2 \cdot 10^{-97}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\end{array}
\end{array}
if x < 4.2000000000000002e-97Initial program 88.2%
associate-*r/93.5%
Simplified93.5%
Taylor expanded in y around inf 51.9%
if 4.2000000000000002e-97 < x Initial program 74.3%
Taylor expanded in y around inf 32.1%
associate-/l*51.0%
associate-/r/56.9%
Applied egg-rr56.9%
Final simplification53.8%
(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 83.0%
associate-*r/94.4%
Simplified94.4%
Final simplification94.4%
(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 83.0%
associate-*r/94.4%
Simplified94.4%
Taylor expanded in y around inf 51.6%
Final simplification51.6%
(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 2023287
(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))