
(FPCore (x y z) :precision binary64 (/ (+ x (* y (- z x))) z))
double code(double x, double y, double z) {
return (x + (y * (z - x))) / 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 * (z - x))) / z
end function
public static double code(double x, double y, double z) {
return (x + (y * (z - x))) / z;
}
def code(x, y, z): return (x + (y * (z - x))) / z
function code(x, y, z) return Float64(Float64(x + Float64(y * Float64(z - x))) / z) end
function tmp = code(x, y, z) tmp = (x + (y * (z - x))) / z; end
code[x_, y_, z_] := N[(N[(x + N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y \cdot \left(z - x\right)}{z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (+ x (* y (- z x))) z))
double code(double x, double y, double z) {
return (x + (y * (z - x))) / 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 * (z - x))) / z
end function
public static double code(double x, double y, double z) {
return (x + (y * (z - x))) / z;
}
def code(x, y, z): return (x + (y * (z - x))) / z
function code(x, y, z) return Float64(Float64(x + Float64(y * Float64(z - x))) / z) end
function tmp = code(x, y, z) tmp = (x + (y * (z - x))) / z; end
code[x_, y_, z_] := N[(N[(x + N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y \cdot \left(z - x\right)}{z}
\end{array}
(FPCore (x y z) :precision binary64 (- y (* (/ x z) (+ y -1.0))))
double code(double x, double y, double z) {
return y - ((x / z) * (y + -1.0));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y - ((x / z) * (y + (-1.0d0)))
end function
public static double code(double x, double y, double z) {
return y - ((x / z) * (y + -1.0));
}
def code(x, y, z): return y - ((x / z) * (y + -1.0))
function code(x, y, z) return Float64(y - Float64(Float64(x / z) * Float64(y + -1.0))) end
function tmp = code(x, y, z) tmp = y - ((x / z) * (y + -1.0)); end
code[x_, y_, z_] := N[(y - N[(N[(x / z), $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y - \frac{x}{z} \cdot \left(y + -1\right)
\end{array}
Initial program 91.5%
Taylor expanded in x around inf 97.7%
+-commutative97.7%
distribute-rgt-in97.8%
*-commutative97.8%
associate-*r*97.8%
neg-mul-197.8%
metadata-eval97.8%
distribute-lft-neg-in97.8%
distribute-rgt-neg-in97.8%
distribute-rgt-in97.7%
neg-mul-197.7%
metadata-eval97.7%
sub-neg97.7%
associate-*r*97.7%
associate-*r/97.7%
mul-1-neg97.7%
unsub-neg97.7%
associate-/l*95.9%
associate-/r/100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (/ y z))))
(if (<= y -9.5e+16)
t_0
(if (<= y -1.04e-132)
(/ x z)
(if (<= y -3.35e-192) y (if (<= y 2.1e-45) (/ x z) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * (y / z);
double tmp;
if (y <= -9.5e+16) {
tmp = t_0;
} else if (y <= -1.04e-132) {
tmp = x / z;
} else if (y <= -3.35e-192) {
tmp = y;
} else if (y <= 2.1e-45) {
tmp = x / z;
} 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 * (y / z)
if (y <= (-9.5d+16)) then
tmp = t_0
else if (y <= (-1.04d-132)) then
tmp = x / z
else if (y <= (-3.35d-192)) then
tmp = y
else if (y <= 2.1d-45) then
tmp = x / z
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * (y / z);
double tmp;
if (y <= -9.5e+16) {
tmp = t_0;
} else if (y <= -1.04e-132) {
tmp = x / z;
} else if (y <= -3.35e-192) {
tmp = y;
} else if (y <= 2.1e-45) {
tmp = x / z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * (y / z) tmp = 0 if y <= -9.5e+16: tmp = t_0 elif y <= -1.04e-132: tmp = x / z elif y <= -3.35e-192: tmp = y elif y <= 2.1e-45: tmp = x / z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * Float64(y / z)) tmp = 0.0 if (y <= -9.5e+16) tmp = t_0; elseif (y <= -1.04e-132) tmp = Float64(x / z); elseif (y <= -3.35e-192) tmp = y; elseif (y <= 2.1e-45) tmp = Float64(x / z); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (y / z); tmp = 0.0; if (y <= -9.5e+16) tmp = t_0; elseif (y <= -1.04e-132) tmp = x / z; elseif (y <= -3.35e-192) tmp = y; elseif (y <= 2.1e-45) tmp = x / z; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+16], t$95$0, If[LessEqual[y, -1.04e-132], N[(x / z), $MachinePrecision], If[LessEqual[y, -3.35e-192], y, If[LessEqual[y, 2.1e-45], N[(x / z), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \frac{y}{z}\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+16}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -1.04 \cdot 10^{-132}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{elif}\;y \leq -3.35 \cdot 10^{-192}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-45}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y < -9.5e16 or 2.09999999999999995e-45 < y Initial program 83.8%
Taylor expanded in z around inf 54.2%
Taylor expanded in x around 0 47.1%
*-commutative47.1%
Simplified47.1%
*-commutative47.1%
associate-/l*60.4%
associate-/r/61.6%
Applied egg-rr61.6%
if -9.5e16 < y < -1.04e-132 or -3.34999999999999995e-192 < y < 2.09999999999999995e-45Initial program 99.9%
Taylor expanded in y around 0 77.8%
if -1.04e-132 < y < -3.34999999999999995e-192Initial program 99.9%
Taylor expanded in x around 0 82.1%
Final simplification69.5%
(FPCore (x y z)
:precision binary64
(if (<= y -9.5e+16)
y
(if (or (<= y -5.1e-133) (and (not (<= y -3.35e-192)) (<= y 1.4e-45)))
(/ x z)
y)))
double code(double x, double y, double z) {
double tmp;
if (y <= -9.5e+16) {
tmp = y;
} else if ((y <= -5.1e-133) || (!(y <= -3.35e-192) && (y <= 1.4e-45))) {
tmp = x / z;
} else {
tmp = 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 (y <= (-9.5d+16)) then
tmp = y
else if ((y <= (-5.1d-133)) .or. (.not. (y <= (-3.35d-192))) .and. (y <= 1.4d-45)) then
tmp = x / z
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -9.5e+16) {
tmp = y;
} else if ((y <= -5.1e-133) || (!(y <= -3.35e-192) && (y <= 1.4e-45))) {
tmp = x / z;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -9.5e+16: tmp = y elif (y <= -5.1e-133) or (not (y <= -3.35e-192) and (y <= 1.4e-45)): tmp = x / z else: tmp = y return tmp
function code(x, y, z) tmp = 0.0 if (y <= -9.5e+16) tmp = y; elseif ((y <= -5.1e-133) || (!(y <= -3.35e-192) && (y <= 1.4e-45))) tmp = Float64(x / z); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -9.5e+16) tmp = y; elseif ((y <= -5.1e-133) || (~((y <= -3.35e-192)) && (y <= 1.4e-45))) tmp = x / z; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -9.5e+16], y, If[Or[LessEqual[y, -5.1e-133], And[N[Not[LessEqual[y, -3.35e-192]], $MachinePrecision], LessEqual[y, 1.4e-45]]], N[(x / z), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+16}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq -5.1 \cdot 10^{-133} \lor \neg \left(y \leq -3.35 \cdot 10^{-192}\right) \land y \leq 1.4 \cdot 10^{-45}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < -9.5e16 or -5.0999999999999999e-133 < y < -3.34999999999999995e-192 or 1.4000000000000001e-45 < y Initial program 85.1%
Taylor expanded in x around 0 62.0%
if -9.5e16 < y < -5.0999999999999999e-133 or -3.34999999999999995e-192 < y < 1.4000000000000001e-45Initial program 99.9%
Taylor expanded in y around 0 77.8%
Final simplification68.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -3.9e+33) (not (<= x 1.15e+44))) (* (/ x z) (- 1.0 y)) (+ y (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3.9e+33) || !(x <= 1.15e+44)) {
tmp = (x / z) * (1.0 - y);
} else {
tmp = y + (x / 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 ((x <= (-3.9d+33)) .or. (.not. (x <= 1.15d+44))) then
tmp = (x / z) * (1.0d0 - y)
else
tmp = y + (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3.9e+33) || !(x <= 1.15e+44)) {
tmp = (x / z) * (1.0 - y);
} else {
tmp = y + (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3.9e+33) or not (x <= 1.15e+44): tmp = (x / z) * (1.0 - y) else: tmp = y + (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3.9e+33) || !(x <= 1.15e+44)) tmp = Float64(Float64(x / z) * Float64(1.0 - y)); else tmp = Float64(y + Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3.9e+33) || ~((x <= 1.15e+44))) tmp = (x / z) * (1.0 - y); else tmp = y + (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3.9e+33], N[Not[LessEqual[x, 1.15e+44]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.9 \cdot 10^{+33} \lor \neg \left(x \leq 1.15 \cdot 10^{+44}\right):\\
\;\;\;\;\frac{x}{z} \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x}{z}\\
\end{array}
\end{array}
if x < -3.9000000000000002e33 or 1.15000000000000002e44 < x Initial program 95.1%
Taylor expanded in x around inf 90.8%
associate-/l*93.7%
associate-/r/93.7%
mul-1-neg93.7%
unsub-neg93.7%
Simplified93.7%
if -3.9000000000000002e33 < x < 1.15000000000000002e44Initial program 89.3%
Taylor expanded in x around inf 99.4%
+-commutative99.4%
distribute-rgt-in99.4%
*-commutative99.4%
associate-*r*99.4%
neg-mul-199.4%
metadata-eval99.4%
distribute-lft-neg-in99.4%
distribute-rgt-neg-in99.4%
distribute-rgt-in99.4%
neg-mul-199.4%
metadata-eval99.4%
sub-neg99.4%
associate-*r*99.4%
associate-*r/99.4%
mul-1-neg99.4%
unsub-neg99.4%
associate-/l*93.5%
associate-/r/100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 90.0%
mul-1-neg90.0%
distribute-frac-neg90.0%
Simplified90.0%
Taylor expanded in y around 0 90.0%
+-commutative90.0%
Simplified90.0%
Final simplification91.4%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.0) (not (<= y 4.3e-12))) (/ y (/ z (- z x))) (+ y (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.0) || !(y <= 4.3e-12)) {
tmp = y / (z / (z - x));
} else {
tmp = y + (x / 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 ((y <= (-1.0d0)) .or. (.not. (y <= 4.3d-12))) then
tmp = y / (z / (z - x))
else
tmp = y + (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -1.0) || !(y <= 4.3e-12)) {
tmp = y / (z / (z - x));
} else {
tmp = y + (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.0) or not (y <= 4.3e-12): tmp = y / (z / (z - x)) else: tmp = y + (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.0) || !(y <= 4.3e-12)) tmp = Float64(y / Float64(z / Float64(z - x))); else tmp = Float64(y + Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.0) || ~((y <= 4.3e-12))) tmp = y / (z / (z - x)); else tmp = y + (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.0], N[Not[LessEqual[y, 4.3e-12]], $MachinePrecision]], N[(y / N[(z / N[(z - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \lor \neg \left(y \leq 4.3 \cdot 10^{-12}\right):\\
\;\;\;\;\frac{y}{\frac{z}{z - x}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x}{z}\\
\end{array}
\end{array}
if y < -1 or 4.29999999999999985e-12 < y Initial program 83.2%
Taylor expanded in y around inf 81.8%
associate-/l*98.5%
Simplified98.5%
if -1 < y < 4.29999999999999985e-12Initial program 99.9%
Taylor expanded in x around inf 100.0%
+-commutative100.0%
distribute-rgt-in100.0%
*-commutative100.0%
associate-*r*100.0%
neg-mul-1100.0%
metadata-eval100.0%
distribute-lft-neg-in100.0%
distribute-rgt-neg-in100.0%
distribute-rgt-in100.0%
neg-mul-1100.0%
metadata-eval100.0%
sub-neg100.0%
associate-*r*100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
associate-/l*100.0%
associate-/r/100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 99.0%
mul-1-neg99.0%
distribute-frac-neg99.0%
Simplified99.0%
Taylor expanded in y around 0 99.0%
+-commutative99.0%
Simplified99.0%
Final simplification98.8%
(FPCore (x y z) :precision binary64 (if (<= x 2.8e+206) (+ y (/ x z)) (/ (- y) (/ z x))))
double code(double x, double y, double z) {
double tmp;
if (x <= 2.8e+206) {
tmp = y + (x / z);
} else {
tmp = -y / (z / 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 <= 2.8d+206) then
tmp = y + (x / z)
else
tmp = -y / (z / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 2.8e+206) {
tmp = y + (x / z);
} else {
tmp = -y / (z / x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 2.8e+206: tmp = y + (x / z) else: tmp = -y / (z / x) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 2.8e+206) tmp = Float64(y + Float64(x / z)); else tmp = Float64(Float64(-y) / Float64(z / x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 2.8e+206) tmp = y + (x / z); else tmp = -y / (z / x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 2.8e+206], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision], N[((-y) / N[(z / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.8 \cdot 10^{+206}:\\
\;\;\;\;y + \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{-y}{\frac{z}{x}}\\
\end{array}
\end{array}
if x < 2.7999999999999998e206Initial program 91.6%
Taylor expanded in x around inf 98.4%
+-commutative98.4%
distribute-rgt-in98.4%
*-commutative98.4%
associate-*r*98.4%
neg-mul-198.4%
metadata-eval98.4%
distribute-lft-neg-in98.4%
distribute-rgt-neg-in98.4%
distribute-rgt-in98.4%
neg-mul-198.4%
metadata-eval98.4%
sub-neg98.4%
associate-*r*98.4%
associate-*r/98.4%
mul-1-neg98.4%
unsub-neg98.4%
associate-/l*95.6%
associate-/r/100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 84.0%
mul-1-neg84.0%
distribute-frac-neg84.0%
Simplified84.0%
Taylor expanded in y around 0 84.0%
+-commutative84.0%
Simplified84.0%
if 2.7999999999999998e206 < x Initial program 90.0%
Taylor expanded in x around inf 90.0%
associate-/l*99.9%
associate-/r/99.9%
mul-1-neg99.9%
unsub-neg99.9%
Simplified99.9%
Taylor expanded in y around inf 64.8%
associate-*r/64.8%
mul-1-neg64.8%
*-commutative64.8%
distribute-lft-neg-out64.8%
associate-/l*84.6%
Simplified84.6%
Final simplification84.0%
(FPCore (x y z) :precision binary64 (+ y (/ x z)))
double code(double x, double y, double z) {
return y + (x / z);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y + (x / z)
end function
public static double code(double x, double y, double z) {
return y + (x / z);
}
def code(x, y, z): return y + (x / z)
function code(x, y, z) return Float64(y + Float64(x / z)) end
function tmp = code(x, y, z) tmp = y + (x / z); end
code[x_, y_, z_] := N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y + \frac{x}{z}
\end{array}
Initial program 91.5%
Taylor expanded in x around inf 97.7%
+-commutative97.7%
distribute-rgt-in97.8%
*-commutative97.8%
associate-*r*97.8%
neg-mul-197.8%
metadata-eval97.8%
distribute-lft-neg-in97.8%
distribute-rgt-neg-in97.8%
distribute-rgt-in97.7%
neg-mul-197.7%
metadata-eval97.7%
sub-neg97.7%
associate-*r*97.7%
associate-*r/97.7%
mul-1-neg97.7%
unsub-neg97.7%
associate-/l*95.9%
associate-/r/100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 82.2%
mul-1-neg82.2%
distribute-frac-neg82.2%
Simplified82.2%
Taylor expanded in y around 0 82.2%
+-commutative82.2%
Simplified82.2%
Final simplification82.2%
(FPCore (x y z) :precision binary64 y)
double code(double x, double y, double z) {
return y;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y
end function
public static double code(double x, double y, double z) {
return y;
}
def code(x, y, z): return y
function code(x, y, z) return y end
function tmp = code(x, y, z) tmp = y; end
code[x_, y_, z_] := y
\begin{array}{l}
\\
y
\end{array}
Initial program 91.5%
Taylor expanded in x around 0 45.0%
Final simplification45.0%
(FPCore (x y z) :precision binary64 (- (+ y (/ x z)) (/ y (/ z x))))
double code(double x, double y, double z) {
return (y + (x / z)) - (y / (z / x));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (y + (x / z)) - (y / (z / x))
end function
public static double code(double x, double y, double z) {
return (y + (x / z)) - (y / (z / x));
}
def code(x, y, z): return (y + (x / z)) - (y / (z / x))
function code(x, y, z) return Float64(Float64(y + Float64(x / z)) - Float64(y / Float64(z / x))) end
function tmp = code(x, y, z) tmp = (y + (x / z)) - (y / (z / x)); end
code[x_, y_, z_] := N[(N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision] - N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y + \frac{x}{z}\right) - \frac{y}{\frac{z}{x}}
\end{array}
herbie shell --seed 2023301
(FPCore (x y z)
:name "Diagrams.Backend.Rasterific:rasterificRadialGradient from diagrams-rasterific-1.3.1.3"
:precision binary64
:herbie-target
(- (+ y (/ x z)) (/ y (/ z x)))
(/ (+ x (* y (- z x))) z))