
(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 9 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.2%
Taylor expanded in x around -inf 97.8%
mul-1-neg97.8%
unsub-neg97.8%
associate-/l*93.3%
associate-/r/100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z) :precision binary64 (if (or (<= y -4e+192) (and (not (<= y -950000.0)) (<= y 1.65e+87))) (+ y (/ x z)) (* y (/ (- x) z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -4e+192) || (!(y <= -950000.0) && (y <= 1.65e+87))) {
tmp = y + (x / z);
} 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 <= (-4d+192)) .or. (.not. (y <= (-950000.0d0))) .and. (y <= 1.65d+87)) then
tmp = y + (x / z)
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 <= -4e+192) || (!(y <= -950000.0) && (y <= 1.65e+87))) {
tmp = y + (x / z);
} else {
tmp = y * (-x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -4e+192) or (not (y <= -950000.0) and (y <= 1.65e+87)): tmp = y + (x / z) else: tmp = y * (-x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -4e+192) || (!(y <= -950000.0) && (y <= 1.65e+87))) tmp = Float64(y + Float64(x / z)); else tmp = Float64(y * Float64(Float64(-x) / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -4e+192) || (~((y <= -950000.0)) && (y <= 1.65e+87))) tmp = y + (x / z); else tmp = y * (-x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -4e+192], And[N[Not[LessEqual[y, -950000.0]], $MachinePrecision], LessEqual[y, 1.65e+87]]], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision], N[(y * N[((-x) / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+192} \lor \neg \left(y \leq -950000\right) \land y \leq 1.65 \cdot 10^{+87}:\\
\;\;\;\;y + \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-x}{z}\\
\end{array}
\end{array}
if y < -4.00000000000000016e192 or -9.5e5 < y < 1.6500000000000001e87Initial program 93.7%
Taylor expanded in z around inf 86.0%
Taylor expanded in x around 0 90.7%
if -4.00000000000000016e192 < y < -9.5e5 or 1.6500000000000001e87 < y Initial program 85.5%
Taylor expanded in x around inf 66.3%
associate-/l*56.8%
associate-/r/67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
Taylor expanded in y around inf 65.7%
associate-*l/66.8%
neg-mul-166.8%
distribute-rgt-neg-out66.8%
Simplified66.8%
Final simplification83.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ y (/ x z))))
(if (<= y -3.6e+191)
t_0
(if (<= y -950000.0)
(/ (* y (- x)) z)
(if (<= y 2.3e+86) t_0 (* y (/ (- x) z)))))))
double code(double x, double y, double z) {
double t_0 = y + (x / z);
double tmp;
if (y <= -3.6e+191) {
tmp = t_0;
} else if (y <= -950000.0) {
tmp = (y * -x) / z;
} else if (y <= 2.3e+86) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = y + (x / z)
if (y <= (-3.6d+191)) then
tmp = t_0
else if (y <= (-950000.0d0)) then
tmp = (y * -x) / z
else if (y <= 2.3d+86) then
tmp = t_0
else
tmp = y * (-x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y + (x / z);
double tmp;
if (y <= -3.6e+191) {
tmp = t_0;
} else if (y <= -950000.0) {
tmp = (y * -x) / z;
} else if (y <= 2.3e+86) {
tmp = t_0;
} else {
tmp = y * (-x / z);
}
return tmp;
}
def code(x, y, z): t_0 = y + (x / z) tmp = 0 if y <= -3.6e+191: tmp = t_0 elif y <= -950000.0: tmp = (y * -x) / z elif y <= 2.3e+86: tmp = t_0 else: tmp = y * (-x / z) return tmp
function code(x, y, z) t_0 = Float64(y + Float64(x / z)) tmp = 0.0 if (y <= -3.6e+191) tmp = t_0; elseif (y <= -950000.0) tmp = Float64(Float64(y * Float64(-x)) / z); elseif (y <= 2.3e+86) tmp = t_0; else tmp = Float64(y * Float64(Float64(-x) / z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y + (x / z); tmp = 0.0; if (y <= -3.6e+191) tmp = t_0; elseif (y <= -950000.0) tmp = (y * -x) / z; elseif (y <= 2.3e+86) tmp = t_0; else tmp = y * (-x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+191], t$95$0, If[LessEqual[y, -950000.0], N[(N[(y * (-x)), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 2.3e+86], t$95$0, N[(y * N[((-x) / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y + \frac{x}{z}\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+191}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -950000:\\
\;\;\;\;\frac{y \cdot \left(-x\right)}{z}\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+86}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-x}{z}\\
\end{array}
\end{array}
if y < -3.5999999999999999e191 or -9.5e5 < y < 2.2999999999999999e86Initial program 93.7%
Taylor expanded in z around inf 86.0%
Taylor expanded in x around 0 90.7%
if -3.5999999999999999e191 < y < -9.5e5Initial program 80.8%
Taylor expanded in y around inf 79.4%
Taylor expanded in z around 0 65.3%
mul-1-neg65.3%
distribute-lft-neg-out65.3%
*-commutative65.3%
Simplified65.3%
if 2.2999999999999999e86 < y Initial program 89.2%
Taylor expanded in x around inf 66.0%
associate-/l*59.5%
associate-/r/68.1%
mul-1-neg68.1%
unsub-neg68.1%
Simplified68.1%
Taylor expanded in y around inf 66.0%
associate-*l/68.1%
neg-mul-168.1%
distribute-rgt-neg-out68.1%
Simplified68.1%
Final simplification83.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.75e+22) (not (<= x 8.2e+95))) (* (/ x z) (- 1.0 y)) (+ y (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.75e+22) || !(x <= 8.2e+95)) {
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 <= (-1.75d+22)) .or. (.not. (x <= 8.2d+95))) 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 <= -1.75e+22) || !(x <= 8.2e+95)) {
tmp = (x / z) * (1.0 - y);
} else {
tmp = y + (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.75e+22) or not (x <= 8.2e+95): tmp = (x / z) * (1.0 - y) else: tmp = y + (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.75e+22) || !(x <= 8.2e+95)) 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 <= -1.75e+22) || ~((x <= 8.2e+95))) tmp = (x / z) * (1.0 - y); else tmp = y + (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.75e+22], N[Not[LessEqual[x, 8.2e+95]], $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 -1.75 \cdot 10^{+22} \lor \neg \left(x \leq 8.2 \cdot 10^{+95}\right):\\
\;\;\;\;\frac{x}{z} \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x}{z}\\
\end{array}
\end{array}
if x < -1.75e22 or 8.19999999999999972e95 < x Initial program 92.6%
Taylor expanded in x around inf 89.9%
associate-/l*93.0%
associate-/r/93.0%
mul-1-neg93.0%
unsub-neg93.0%
Simplified93.0%
if -1.75e22 < x < 8.19999999999999972e95Initial program 90.4%
Taylor expanded in z around inf 75.0%
Taylor expanded in x around 0 84.5%
Final simplification87.5%
(FPCore (x y z) :precision binary64 (if (or (<= y -118.0) (not (<= y 1.0))) (/ (* y (- z x)) z) (+ y (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -118.0) || !(y <= 1.0)) {
tmp = (y * (z - x)) / z;
} 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 <= (-118.0d0)) .or. (.not. (y <= 1.0d0))) then
tmp = (y * (z - x)) / z
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 <= -118.0) || !(y <= 1.0)) {
tmp = (y * (z - x)) / z;
} else {
tmp = y + (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -118.0) or not (y <= 1.0): tmp = (y * (z - x)) / z else: tmp = y + (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -118.0) || !(y <= 1.0)) tmp = Float64(Float64(y * Float64(z - x)) / z); else tmp = Float64(y + Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -118.0) || ~((y <= 1.0))) tmp = (y * (z - x)) / z; else tmp = y + (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -118.0], N[Not[LessEqual[y, 1.0]], $MachinePrecision]], N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -118 \lor \neg \left(y \leq 1\right):\\
\;\;\;\;\frac{y \cdot \left(z - x\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x}{z}\\
\end{array}
\end{array}
if y < -118 or 1 < y Initial program 82.3%
Taylor expanded in y around inf 80.9%
if -118 < y < 1Initial program 99.9%
Taylor expanded in z around inf 98.3%
Taylor expanded in x around 0 98.4%
Final simplification89.7%
(FPCore (x y z) :precision binary64 (if (<= z -5.6e+45) y (if (<= z 8.5e+31) (/ x z) y)))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.6e+45) {
tmp = y;
} else if (z <= 8.5e+31) {
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 (z <= (-5.6d+45)) then
tmp = y
else if (z <= 8.5d+31) 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 (z <= -5.6e+45) {
tmp = y;
} else if (z <= 8.5e+31) {
tmp = x / z;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.6e+45: tmp = y elif z <= 8.5e+31: tmp = x / z else: tmp = y return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.6e+45) tmp = y; elseif (z <= 8.5e+31) tmp = Float64(x / z); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.6e+45) tmp = y; elseif (z <= 8.5e+31) tmp = x / z; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.6e+45], y, If[LessEqual[z, 8.5e+31], N[(x / z), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+45}:\\
\;\;\;\;y\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+31}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if z < -5.5999999999999999e45 or 8.49999999999999947e31 < z Initial program 78.3%
Taylor expanded in x around 0 75.0%
if -5.5999999999999999e45 < z < 8.49999999999999947e31Initial program 100.0%
Taylor expanded in y around 0 50.8%
Final simplification60.6%
(FPCore (x y z) :precision binary64 (if (<= y 1.0) (+ y (/ x z)) (* z (/ y z))))
double code(double x, double y, double z) {
double tmp;
if (y <= 1.0) {
tmp = y + (x / z);
} else {
tmp = z * (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 (y <= 1.0d0) then
tmp = y + (x / z)
else
tmp = z * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= 1.0) {
tmp = y + (x / z);
} else {
tmp = z * (y / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 1.0: tmp = y + (x / z) else: tmp = z * (y / z) return tmp
function code(x, y, z) tmp = 0.0 if (y <= 1.0) tmp = Float64(y + Float64(x / z)); else tmp = Float64(z * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 1.0) tmp = y + (x / z); else tmp = z * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 1.0], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision], N[(z * N[(y / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1:\\
\;\;\;\;y + \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < 1Initial program 92.1%
Taylor expanded in z around inf 79.4%
Taylor expanded in x around 0 86.8%
if 1 < y Initial program 88.4%
Taylor expanded in y around inf 87.5%
Taylor expanded in z around inf 36.7%
associate-/l*42.5%
associate-/r/48.5%
Applied egg-rr48.5%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (if (<= y 1.0) (+ y (/ x z)) (- y (/ x z))))
double code(double x, double y, double z) {
double tmp;
if (y <= 1.0) {
tmp = y + (x / z);
} 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) then
tmp = y + (x / z)
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) {
tmp = y + (x / z);
} else {
tmp = y - (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 1.0: tmp = y + (x / z) else: tmp = y - (x / z) return tmp
function code(x, y, z) tmp = 0.0 if (y <= 1.0) tmp = Float64(y + Float64(x / z)); 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) tmp = y + (x / z); else tmp = y - (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 1.0], N[(y + N[(x / z), $MachinePrecision]), $MachinePrecision], N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1:\\
\;\;\;\;y + \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{x}{z}\\
\end{array}
\end{array}
if y < 1Initial program 92.1%
Taylor expanded in z around inf 79.4%
Taylor expanded in x around 0 86.8%
if 1 < y Initial program 88.4%
Taylor expanded in z around inf 35.5%
Taylor expanded in x around 0 41.3%
div-inv41.3%
add-sqr-sqrt24.1%
sqrt-unprod53.9%
sqr-neg53.9%
sqrt-unprod28.5%
add-sqr-sqrt64.3%
cancel-sign-sub-inv64.3%
div-inv64.3%
Applied egg-rr64.3%
Final simplification81.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.2%
Taylor expanded in x around 0 40.5%
Final simplification40.5%
(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 2023279
(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))