
(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 (/ x (/ y (- y z))))
double code(double x, double y, double z) {
return x / (y / (y - z));
}
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 / (y - z))
end function
public static double code(double x, double y, double z) {
return x / (y / (y - z));
}
def code(x, y, z): return x / (y / (y - z))
function code(x, y, z) return Float64(x / Float64(y / Float64(y - z))) end
function tmp = code(x, y, z) tmp = x / (y / (y - z)); end
code[x_, y_, z_] := N[(x / N[(y / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{y}{y - z}}
\end{array}
Initial program 81.1%
associate-*r/97.0%
Simplified97.0%
associate-*r/81.1%
associate-/l*97.3%
Applied egg-rr97.3%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(if (or (<= z -2.6e+104)
(and (not (<= z -7e+81)) (or (<= z -3.6e-26) (not (<= z 1.25e-55)))))
(* (/ x y) (- z))
x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.6e+104) || (!(z <= -7e+81) && ((z <= -3.6e-26) || !(z <= 1.25e-55)))) {
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.6d+104)) .or. (.not. (z <= (-7d+81))) .and. (z <= (-3.6d-26)) .or. (.not. (z <= 1.25d-55))) 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.6e+104) || (!(z <= -7e+81) && ((z <= -3.6e-26) || !(z <= 1.25e-55)))) {
tmp = (x / y) * -z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.6e+104) or (not (z <= -7e+81) and ((z <= -3.6e-26) or not (z <= 1.25e-55))): tmp = (x / y) * -z else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.6e+104) || (!(z <= -7e+81) && ((z <= -3.6e-26) || !(z <= 1.25e-55)))) tmp = Float64(Float64(x / y) * Float64(-z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.6e+104) || (~((z <= -7e+81)) && ((z <= -3.6e-26) || ~((z <= 1.25e-55))))) tmp = (x / y) * -z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.6e+104], And[N[Not[LessEqual[z, -7e+81]], $MachinePrecision], Or[LessEqual[z, -3.6e-26], N[Not[LessEqual[z, 1.25e-55]], $MachinePrecision]]]], N[(N[(x / y), $MachinePrecision] * (-z)), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+104} \lor \neg \left(z \leq -7 \cdot 10^{+81}\right) \land \left(z \leq -3.6 \cdot 10^{-26} \lor \neg \left(z \leq 1.25 \cdot 10^{-55}\right)\right):\\
\;\;\;\;\frac{x}{y} \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.6e104 or -7.0000000000000001e81 < z < -3.6000000000000001e-26 or 1.25e-55 < z Initial program 87.6%
associate-*r/93.8%
Simplified93.8%
Taylor expanded in y around 0 71.7%
mul-1-neg71.7%
associate-*l/72.7%
distribute-rgt-neg-out72.7%
Simplified72.7%
if -2.6e104 < z < -7.0000000000000001e81 or -3.6000000000000001e-26 < z < 1.25e-55Initial program 75.0%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.4%
Final simplification77.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (/ x y) (- z))))
(if (<= z -2.6e+104)
t_0
(if (<= z -2.1e+81)
x
(if (<= z -2.1e-26) t_0 (if (<= z 8.5e-56) x (* x (/ z (- y)))))))))
double code(double x, double y, double z) {
double t_0 = (x / y) * -z;
double tmp;
if (z <= -2.6e+104) {
tmp = t_0;
} else if (z <= -2.1e+81) {
tmp = x;
} else if (z <= -2.1e-26) {
tmp = t_0;
} else if (z <= 8.5e-56) {
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) :: t_0
real(8) :: tmp
t_0 = (x / y) * -z
if (z <= (-2.6d+104)) then
tmp = t_0
else if (z <= (-2.1d+81)) then
tmp = x
else if (z <= (-2.1d-26)) then
tmp = t_0
else if (z <= 8.5d-56) 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 t_0 = (x / y) * -z;
double tmp;
if (z <= -2.6e+104) {
tmp = t_0;
} else if (z <= -2.1e+81) {
tmp = x;
} else if (z <= -2.1e-26) {
tmp = t_0;
} else if (z <= 8.5e-56) {
tmp = x;
} else {
tmp = x * (z / -y);
}
return tmp;
}
def code(x, y, z): t_0 = (x / y) * -z tmp = 0 if z <= -2.6e+104: tmp = t_0 elif z <= -2.1e+81: tmp = x elif z <= -2.1e-26: tmp = t_0 elif z <= 8.5e-56: tmp = x else: tmp = x * (z / -y) return tmp
function code(x, y, z) t_0 = Float64(Float64(x / y) * Float64(-z)) tmp = 0.0 if (z <= -2.6e+104) tmp = t_0; elseif (z <= -2.1e+81) tmp = x; elseif (z <= -2.1e-26) tmp = t_0; elseif (z <= 8.5e-56) tmp = x; else tmp = Float64(x * Float64(z / Float64(-y))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x / y) * -z; tmp = 0.0; if (z <= -2.6e+104) tmp = t_0; elseif (z <= -2.1e+81) tmp = x; elseif (z <= -2.1e-26) tmp = t_0; elseif (z <= 8.5e-56) tmp = x; else tmp = x * (z / -y); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x / y), $MachinePrecision] * (-z)), $MachinePrecision]}, If[LessEqual[z, -2.6e+104], t$95$0, If[LessEqual[z, -2.1e+81], x, If[LessEqual[z, -2.1e-26], t$95$0, If[LessEqual[z, 8.5e-56], x, N[(x * N[(z / (-y)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y} \cdot \left(-z\right)\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+104}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+81}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{-26}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-56}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{-y}\\
\end{array}
\end{array}
if z < -2.6e104 or -2.0999999999999999e81 < z < -2.10000000000000008e-26Initial program 85.2%
associate-*r/89.8%
Simplified89.8%
Taylor expanded in y around 0 77.7%
mul-1-neg77.7%
associate-*l/80.8%
distribute-rgt-neg-out80.8%
Simplified80.8%
if -2.6e104 < z < -2.0999999999999999e81 or -2.10000000000000008e-26 < z < 8.49999999999999932e-56Initial program 75.0%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.4%
if 8.49999999999999932e-56 < z Initial program 89.7%
associate-*r/97.2%
Simplified97.2%
Taylor expanded in y around 0 66.6%
mul-1-neg66.6%
*-commutative66.6%
associate-/l*65.9%
associate-/r/67.7%
distribute-lft-neg-in67.7%
distribute-neg-frac67.7%
neg-mul-167.7%
remove-double-neg67.7%
neg-mul-167.7%
times-frac67.7%
metadata-eval67.7%
*-lft-identity67.7%
Simplified67.7%
Final simplification78.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (/ x y) (- z))))
(if (<= z -3e+104)
t_0
(if (<= z -5.5e+81)
x
(if (<= z -6.6e-26) t_0 (if (<= z 4e-55) x (/ (- x) (/ y z))))))))
double code(double x, double y, double z) {
double t_0 = (x / y) * -z;
double tmp;
if (z <= -3e+104) {
tmp = t_0;
} else if (z <= -5.5e+81) {
tmp = x;
} else if (z <= -6.6e-26) {
tmp = t_0;
} else if (z <= 4e-55) {
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) :: t_0
real(8) :: tmp
t_0 = (x / y) * -z
if (z <= (-3d+104)) then
tmp = t_0
else if (z <= (-5.5d+81)) then
tmp = x
else if (z <= (-6.6d-26)) then
tmp = t_0
else if (z <= 4d-55) 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 t_0 = (x / y) * -z;
double tmp;
if (z <= -3e+104) {
tmp = t_0;
} else if (z <= -5.5e+81) {
tmp = x;
} else if (z <= -6.6e-26) {
tmp = t_0;
} else if (z <= 4e-55) {
tmp = x;
} else {
tmp = -x / (y / z);
}
return tmp;
}
def code(x, y, z): t_0 = (x / y) * -z tmp = 0 if z <= -3e+104: tmp = t_0 elif z <= -5.5e+81: tmp = x elif z <= -6.6e-26: tmp = t_0 elif z <= 4e-55: tmp = x else: tmp = -x / (y / z) return tmp
function code(x, y, z) t_0 = Float64(Float64(x / y) * Float64(-z)) tmp = 0.0 if (z <= -3e+104) tmp = t_0; elseif (z <= -5.5e+81) tmp = x; elseif (z <= -6.6e-26) tmp = t_0; elseif (z <= 4e-55) tmp = x; else tmp = Float64(Float64(-x) / Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x / y) * -z; tmp = 0.0; if (z <= -3e+104) tmp = t_0; elseif (z <= -5.5e+81) tmp = x; elseif (z <= -6.6e-26) tmp = t_0; elseif (z <= 4e-55) tmp = x; else tmp = -x / (y / z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x / y), $MachinePrecision] * (-z)), $MachinePrecision]}, If[LessEqual[z, -3e+104], t$95$0, If[LessEqual[z, -5.5e+81], x, If[LessEqual[z, -6.6e-26], t$95$0, If[LessEqual[z, 4e-55], x, N[((-x) / N[(y / z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y} \cdot \left(-z\right)\\
\mathbf{if}\;z \leq -3 \cdot 10^{+104}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{+81}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-26}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-55}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\frac{y}{z}}\\
\end{array}
\end{array}
if z < -2.99999999999999969e104 or -5.5000000000000003e81 < z < -6.5999999999999997e-26Initial program 85.2%
associate-*r/89.8%
Simplified89.8%
Taylor expanded in y around 0 77.7%
mul-1-neg77.7%
associate-*l/80.8%
distribute-rgt-neg-out80.8%
Simplified80.8%
if -2.99999999999999969e104 < z < -5.5000000000000003e81 or -6.5999999999999997e-26 < z < 3.99999999999999998e-55Initial program 75.0%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.4%
if 3.99999999999999998e-55 < z Initial program 89.7%
associate-*r/97.2%
Simplified97.2%
associate-*r/89.7%
associate-/l*97.3%
Applied egg-rr97.3%
Taylor expanded in y around 0 66.6%
mul-1-neg66.6%
associate-/l*67.8%
distribute-neg-frac67.8%
Simplified67.8%
Final simplification78.2%
(FPCore (x y z)
:precision binary64
(if (<= z -3.4e+104)
(* (/ x y) (- z))
(if (<= z -7e+81)
x
(if (<= z -2.3e-26)
(/ (* z (- x)) y)
(if (<= z 2.7e-55) x (/ (- x) (/ y z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -3.4e+104) {
tmp = (x / y) * -z;
} else if (z <= -7e+81) {
tmp = x;
} else if (z <= -2.3e-26) {
tmp = (z * -x) / y;
} else if (z <= 2.7e-55) {
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 <= (-3.4d+104)) then
tmp = (x / y) * -z
else if (z <= (-7d+81)) then
tmp = x
else if (z <= (-2.3d-26)) then
tmp = (z * -x) / y
else if (z <= 2.7d-55) 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 <= -3.4e+104) {
tmp = (x / y) * -z;
} else if (z <= -7e+81) {
tmp = x;
} else if (z <= -2.3e-26) {
tmp = (z * -x) / y;
} else if (z <= 2.7e-55) {
tmp = x;
} else {
tmp = -x / (y / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -3.4e+104: tmp = (x / y) * -z elif z <= -7e+81: tmp = x elif z <= -2.3e-26: tmp = (z * -x) / y elif z <= 2.7e-55: tmp = x else: tmp = -x / (y / z) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -3.4e+104) tmp = Float64(Float64(x / y) * Float64(-z)); elseif (z <= -7e+81) tmp = x; elseif (z <= -2.3e-26) tmp = Float64(Float64(z * Float64(-x)) / y); elseif (z <= 2.7e-55) tmp = x; else tmp = Float64(Float64(-x) / Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -3.4e+104) tmp = (x / y) * -z; elseif (z <= -7e+81) tmp = x; elseif (z <= -2.3e-26) tmp = (z * -x) / y; elseif (z <= 2.7e-55) tmp = x; else tmp = -x / (y / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -3.4e+104], N[(N[(x / y), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[z, -7e+81], x, If[LessEqual[z, -2.3e-26], N[(N[(z * (-x)), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 2.7e-55], x, N[((-x) / N[(y / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{y} \cdot \left(-z\right)\\
\mathbf{elif}\;z \leq -7 \cdot 10^{+81}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-26}:\\
\;\;\;\;\frac{z \cdot \left(-x\right)}{y}\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-55}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\frac{y}{z}}\\
\end{array}
\end{array}
if z < -3.3999999999999997e104Initial program 83.1%
associate-*r/85.5%
Simplified85.5%
Taylor expanded in y around 0 80.1%
mul-1-neg80.1%
associate-*l/85.5%
distribute-rgt-neg-out85.5%
Simplified85.5%
if -3.3999999999999997e104 < z < -7.0000000000000001e81 or -2.30000000000000009e-26 < z < 2.70000000000000004e-55Initial program 75.0%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in y around inf 82.4%
if -7.0000000000000001e81 < z < -2.30000000000000009e-26Initial program 88.1%
Taylor expanded in y around 0 74.3%
mul-1-neg74.3%
distribute-rgt-neg-out74.3%
Simplified74.3%
if 2.70000000000000004e-55 < z Initial program 89.7%
associate-*r/97.2%
Simplified97.2%
associate-*r/89.7%
associate-/l*97.3%
Applied egg-rr97.3%
Taylor expanded in y around 0 66.6%
mul-1-neg66.6%
associate-/l*67.8%
distribute-neg-frac67.8%
Simplified67.8%
Final simplification78.2%
(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 81.1%
associate-*r/97.0%
Simplified97.0%
Final simplification97.0%
(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 81.1%
associate-*r/97.0%
Simplified97.0%
Taylor expanded in y around inf 53.8%
Final simplification53.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 2023320
(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))