
(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 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 * 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 -7.6e-140) (- x (/ z (/ y x))) (if (<= z 9.5e-74) (+ x (/ -1.0 (/ y (* z x)))) (- x (* z (/ x y))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -7.6e-140) {
tmp = x - (z / (y / x));
} else if (z <= 9.5e-74) {
tmp = x + (-1.0 / (y / (z * x)));
} else {
tmp = x - (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 <= (-7.6d-140)) then
tmp = x - (z / (y / x))
else if (z <= 9.5d-74) then
tmp = x + ((-1.0d0) / (y / (z * x)))
else
tmp = x - (z * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -7.6e-140) {
tmp = x - (z / (y / x));
} else if (z <= 9.5e-74) {
tmp = x + (-1.0 / (y / (z * x)));
} else {
tmp = x - (z * (x / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -7.6e-140: tmp = x - (z / (y / x)) elif z <= 9.5e-74: tmp = x + (-1.0 / (y / (z * x))) else: tmp = x - (z * (x / y)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -7.6e-140) tmp = Float64(x - Float64(z / Float64(y / x))); elseif (z <= 9.5e-74) tmp = Float64(x + Float64(-1.0 / Float64(y / Float64(z * x)))); else tmp = Float64(x - Float64(z * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -7.6e-140) tmp = x - (z / (y / x)); elseif (z <= 9.5e-74) tmp = x + (-1.0 / (y / (z * x))); else tmp = x - (z * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -7.6e-140], N[(x - N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-74], N[(x + N[(-1.0 / N[(y / N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{-140}:\\
\;\;\;\;x - \frac{z}{\frac{y}{x}}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-74}:\\
\;\;\;\;x + \frac{-1}{\frac{y}{z \cdot x}}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{x}{y}\\
\end{array}
\end{array}
if z < -7.59999999999999997e-140Initial program 80.0%
associate-*l/89.0%
distribute-rgt-out--86.4%
associate-*r/85.1%
associate-*l/97.5%
*-inverses97.5%
*-lft-identity97.5%
Simplified97.5%
clear-num97.5%
un-div-inv97.9%
Applied egg-rr97.9%
if -7.59999999999999997e-140 < z < 9.5000000000000007e-74Initial program 84.4%
associate-*l/75.6%
distribute-rgt-out--72.9%
associate-*r/72.0%
associate-*l/86.6%
*-inverses86.6%
*-lft-identity86.6%
Simplified86.6%
associate-*r/99.1%
clear-num99.1%
Applied egg-rr99.1%
if 9.5000000000000007e-74 < z Initial program 82.2%
associate-*l/91.7%
distribute-rgt-out--85.4%
associate-*r/82.6%
associate-*l/99.3%
*-inverses99.3%
*-lft-identity99.3%
Simplified99.3%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(if (or (<= z -2.95e+57)
(and (not (<= z -3.1)) (or (<= z -1.05e-50) (not (<= z 1.7e+64)))))
(/ (- x) (/ y z))
x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.95e+57) || (!(z <= -3.1) && ((z <= -1.05e-50) || !(z <= 1.7e+64)))) {
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 <= (-2.95d+57)) .or. (.not. (z <= (-3.1d0))) .and. (z <= (-1.05d-50)) .or. (.not. (z <= 1.7d+64))) 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 <= -2.95e+57) || (!(z <= -3.1) && ((z <= -1.05e-50) || !(z <= 1.7e+64)))) {
tmp = -x / (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.95e+57) or (not (z <= -3.1) and ((z <= -1.05e-50) or not (z <= 1.7e+64))): tmp = -x / (y / z) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.95e+57) || (!(z <= -3.1) && ((z <= -1.05e-50) || !(z <= 1.7e+64)))) 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 <= -2.95e+57) || (~((z <= -3.1)) && ((z <= -1.05e-50) || ~((z <= 1.7e+64))))) tmp = -x / (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.95e+57], And[N[Not[LessEqual[z, -3.1]], $MachinePrecision], Or[LessEqual[z, -1.05e-50], N[Not[LessEqual[z, 1.7e+64]], $MachinePrecision]]]], N[((-x) / N[(y / z), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.95 \cdot 10^{+57} \lor \neg \left(z \leq -3.1\right) \land \left(z \leq -1.05 \cdot 10^{-50} \lor \neg \left(z \leq 1.7 \cdot 10^{+64}\right)\right):\\
\;\;\;\;\frac{-x}{\frac{y}{z}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.95000000000000006e57 or -3.10000000000000009 < z < -1.05e-50 or 1.7000000000000001e64 < z Initial program 83.4%
Taylor expanded in y around 0 75.2%
mul-1-neg75.2%
associate-*l/73.7%
*-commutative73.7%
distribute-rgt-neg-in73.7%
distribute-frac-neg73.7%
Simplified73.7%
associate-*r/75.2%
associate-*l/79.5%
add-sqr-sqrt36.5%
sqrt-unprod22.1%
sqr-neg22.1%
sqrt-unprod0.4%
add-sqr-sqrt1.5%
clear-num1.5%
associate-/r/1.5%
frac-2neg1.5%
clear-num1.5%
neg-mul-11.5%
associate-/l*1.5%
add-sqr-sqrt0.4%
sqrt-unprod22.4%
sqr-neg22.4%
sqrt-unprod36.8%
add-sqr-sqrt79.3%
frac-2neg79.3%
associate-/l/75.1%
Applied egg-rr75.1%
div-inv75.1%
clear-num75.2%
mul-1-neg75.2%
*-commutative75.2%
associate-/l*73.7%
Applied egg-rr73.7%
if -2.95000000000000006e57 < z < -3.10000000000000009 or -1.05e-50 < z < 1.7000000000000001e64Initial program 81.7%
Taylor expanded in y around inf 82.6%
Final simplification79.0%
(FPCore (x y z)
:precision binary64
(if (<= z -7e+57)
(/ (- x) (/ y z))
(if (<= z -60.0)
x
(if (or (<= z -3e-51) (not (<= z 1.45e+60))) (* x (/ (- z) y)) x))))
double code(double x, double y, double z) {
double tmp;
if (z <= -7e+57) {
tmp = -x / (y / z);
} else if (z <= -60.0) {
tmp = x;
} else if ((z <= -3e-51) || !(z <= 1.45e+60)) {
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 <= (-7d+57)) then
tmp = -x / (y / z)
else if (z <= (-60.0d0)) then
tmp = x
else if ((z <= (-3d-51)) .or. (.not. (z <= 1.45d+60))) 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 <= -7e+57) {
tmp = -x / (y / z);
} else if (z <= -60.0) {
tmp = x;
} else if ((z <= -3e-51) || !(z <= 1.45e+60)) {
tmp = x * (-z / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -7e+57: tmp = -x / (y / z) elif z <= -60.0: tmp = x elif (z <= -3e-51) or not (z <= 1.45e+60): tmp = x * (-z / y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -7e+57) tmp = Float64(Float64(-x) / Float64(y / z)); elseif (z <= -60.0) tmp = x; elseif ((z <= -3e-51) || !(z <= 1.45e+60)) 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 <= -7e+57) tmp = -x / (y / z); elseif (z <= -60.0) tmp = x; elseif ((z <= -3e-51) || ~((z <= 1.45e+60))) tmp = x * (-z / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -7e+57], N[((-x) / N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -60.0], x, If[Or[LessEqual[z, -3e-51], N[Not[LessEqual[z, 1.45e+60]], $MachinePrecision]], N[(x * N[((-z) / y), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+57}:\\
\;\;\;\;\frac{-x}{\frac{y}{z}}\\
\mathbf{elif}\;z \leq -60:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-51} \lor \neg \left(z \leq 1.45 \cdot 10^{+60}\right):\\
\;\;\;\;x \cdot \frac{-z}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -6.9999999999999995e57Initial program 85.4%
Taylor expanded in y around 0 75.8%
mul-1-neg75.8%
associate-*l/68.6%
*-commutative68.6%
distribute-rgt-neg-in68.6%
distribute-frac-neg68.6%
Simplified68.6%
associate-*r/75.8%
associate-*l/78.1%
add-sqr-sqrt77.8%
sqrt-unprod39.1%
sqr-neg39.1%
sqrt-unprod0.0%
add-sqr-sqrt2.0%
clear-num2.0%
associate-/r/2.0%
frac-2neg2.0%
clear-num2.0%
neg-mul-12.0%
associate-/l*2.0%
add-sqr-sqrt0.0%
sqrt-unprod39.0%
sqr-neg39.0%
sqrt-unprod77.9%
add-sqr-sqrt78.1%
frac-2neg78.1%
associate-/l/75.8%
Applied egg-rr75.8%
div-inv75.8%
clear-num75.8%
mul-1-neg75.8%
*-commutative75.8%
associate-/l*68.7%
Applied egg-rr68.7%
if -6.9999999999999995e57 < z < -60 or -3.00000000000000002e-51 < z < 1.45e60Initial program 81.7%
Taylor expanded in y around inf 82.6%
if -60 < z < -3.00000000000000002e-51 or 1.45e60 < z Initial program 82.3%
Taylor expanded in y around 0 74.9%
mul-1-neg74.9%
associate-*l/76.8%
*-commutative76.8%
distribute-rgt-neg-in76.8%
distribute-frac-neg76.8%
Simplified76.8%
Final simplification79.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (/ (- x) y))))
(if (<= z -2.5e+135)
t_0
(if (<= z -0.052)
x
(if (<= z -9e-52) (* x (/ (- z) y)) (if (<= z 8.2e+58) x t_0))))))
double code(double x, double y, double z) {
double t_0 = z * (-x / y);
double tmp;
if (z <= -2.5e+135) {
tmp = t_0;
} else if (z <= -0.052) {
tmp = x;
} else if (z <= -9e-52) {
tmp = x * (-z / y);
} else if (z <= 8.2e+58) {
tmp = x;
} else {
tmp = t_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) :: tmp
t_0 = z * (-x / y)
if (z <= (-2.5d+135)) then
tmp = t_0
else if (z <= (-0.052d0)) then
tmp = x
else if (z <= (-9d-52)) then
tmp = x * (-z / y)
else if (z <= 8.2d+58) then
tmp = x
else
tmp = t_0
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 <= -2.5e+135) {
tmp = t_0;
} else if (z <= -0.052) {
tmp = x;
} else if (z <= -9e-52) {
tmp = x * (-z / y);
} else if (z <= 8.2e+58) {
tmp = x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * (-x / y) tmp = 0 if z <= -2.5e+135: tmp = t_0 elif z <= -0.052: tmp = x elif z <= -9e-52: tmp = x * (-z / y) elif z <= 8.2e+58: tmp = x else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * Float64(Float64(-x) / y)) tmp = 0.0 if (z <= -2.5e+135) tmp = t_0; elseif (z <= -0.052) tmp = x; elseif (z <= -9e-52) tmp = Float64(x * Float64(Float64(-z) / y)); elseif (z <= 8.2e+58) tmp = x; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (-x / y); tmp = 0.0; if (z <= -2.5e+135) tmp = t_0; elseif (z <= -0.052) tmp = x; elseif (z <= -9e-52) tmp = x * (-z / y); elseif (z <= 8.2e+58) tmp = x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[((-x) / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.5e+135], t$95$0, If[LessEqual[z, -0.052], x, If[LessEqual[z, -9e-52], N[(x * N[((-z) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+58], x, t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \frac{-x}{y}\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{+135}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -0.052:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-52}:\\
\;\;\;\;x \cdot \frac{-z}{y}\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if z < -2.50000000000000015e135 or 8.2e58 < z Initial program 83.3%
Taylor expanded in y around 0 79.9%
mul-1-neg79.9%
associate-*r/84.9%
*-commutative84.9%
distribute-rgt-neg-in84.9%
Simplified84.9%
if -2.50000000000000015e135 < z < -0.0519999999999999976 or -9.0000000000000001e-52 < z < 8.2e58Initial program 82.0%
Taylor expanded in y around inf 80.9%
if -0.0519999999999999976 < z < -9.0000000000000001e-52Initial program 81.5%
Taylor expanded in y around 0 56.1%
mul-1-neg56.1%
associate-*l/74.3%
*-commutative74.3%
distribute-rgt-neg-in74.3%
distribute-frac-neg74.3%
Simplified74.3%
Final simplification81.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 82.4%
associate-*l/84.6%
distribute-rgt-out--80.8%
associate-*r/79.2%
associate-*l/93.8%
*-inverses93.8%
*-lft-identity93.8%
Simplified93.8%
Final simplification93.8%
(FPCore (x y z) :precision binary64 (- x (/ z (/ y x))))
double code(double x, double y, double z) {
return x - (z / (y / 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 - (z / (y / x))
end function
public static double code(double x, double y, double z) {
return x - (z / (y / x));
}
def code(x, y, z): return x - (z / (y / x))
function code(x, y, z) return Float64(x - Float64(z / Float64(y / x))) end
function tmp = code(x, y, z) tmp = x - (z / (y / x)); end
code[x_, y_, z_] := N[(x - N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{z}{\frac{y}{x}}
\end{array}
Initial program 82.4%
associate-*l/84.6%
distribute-rgt-out--80.8%
associate-*r/79.2%
associate-*l/93.8%
*-inverses93.8%
*-lft-identity93.8%
Simplified93.8%
clear-num93.6%
un-div-inv94.1%
Applied egg-rr94.1%
Final simplification94.1%
(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 82.4%
Taylor expanded in y around inf 57.6%
Final simplification57.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 2023174
(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))