
(FPCore (x y z) :precision binary64 (/ (+ x y) (- 1.0 (/ y z))))
double code(double x, double y, double z) {
return (x + y) / (1.0 - (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) / (1.0d0 - (y / z))
end function
public static double code(double x, double y, double z) {
return (x + y) / (1.0 - (y / z));
}
def code(x, y, z): return (x + y) / (1.0 - (y / z))
function code(x, y, z) return Float64(Float64(x + y) / Float64(1.0 - Float64(y / z))) end
function tmp = code(x, y, z) tmp = (x + y) / (1.0 - (y / z)); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] / N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y}{1 - \frac{y}{z}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (+ x y) (- 1.0 (/ y z))))
double code(double x, double y, double z) {
return (x + y) / (1.0 - (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) / (1.0d0 - (y / z))
end function
public static double code(double x, double y, double z) {
return (x + y) / (1.0 - (y / z));
}
def code(x, y, z): return (x + y) / (1.0 - (y / z))
function code(x, y, z) return Float64(Float64(x + y) / Float64(1.0 - Float64(y / z))) end
function tmp = code(x, y, z) tmp = (x + y) / (1.0 - (y / z)); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] / N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y}{1 - \frac{y}{z}}
\end{array}
(FPCore (x y z) :precision binary64 (let* ((t_0 (/ (+ x y) (- 1.0 (/ y z))))) (if (or (<= t_0 -1e-223) (not (<= t_0 0.0))) t_0 (* z (- -1.0 (/ x y))))))
double code(double x, double y, double z) {
double t_0 = (x + y) / (1.0 - (y / z));
double tmp;
if ((t_0 <= -1e-223) || !(t_0 <= 0.0)) {
tmp = t_0;
} else {
tmp = z * (-1.0 - (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 = (x + y) / (1.0d0 - (y / z))
if ((t_0 <= (-1d-223)) .or. (.not. (t_0 <= 0.0d0))) then
tmp = t_0
else
tmp = z * ((-1.0d0) - (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + y) / (1.0 - (y / z));
double tmp;
if ((t_0 <= -1e-223) || !(t_0 <= 0.0)) {
tmp = t_0;
} else {
tmp = z * (-1.0 - (x / y));
}
return tmp;
}
def code(x, y, z): t_0 = (x + y) / (1.0 - (y / z)) tmp = 0 if (t_0 <= -1e-223) or not (t_0 <= 0.0): tmp = t_0 else: tmp = z * (-1.0 - (x / y)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + y) / Float64(1.0 - Float64(y / z))) tmp = 0.0 if ((t_0 <= -1e-223) || !(t_0 <= 0.0)) tmp = t_0; else tmp = Float64(z * Float64(-1.0 - Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + y) / (1.0 - (y / z)); tmp = 0.0; if ((t_0 <= -1e-223) || ~((t_0 <= 0.0))) tmp = t_0; else tmp = z * (-1.0 - (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + y), $MachinePrecision] / N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$0, -1e-223], N[Not[LessEqual[t$95$0, 0.0]], $MachinePrecision]], t$95$0, N[(z * N[(-1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + y}{1 - \frac{y}{z}}\\
\mathbf{if}\;t\_0 \leq -1 \cdot 10^{-223} \lor \neg \left(t\_0 \leq 0\right):\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 x y) (-.f64 1 (/.f64 y z))) < -9.9999999999999997e-224 or 0.0 < (/.f64 (+.f64 x y) (-.f64 1 (/.f64 y z))) Initial program 99.8%
if -9.9999999999999997e-224 < (/.f64 (+.f64 x y) (-.f64 1 (/.f64 y z))) < 0.0Initial program 18.6%
Taylor expanded in y around inf 18.6%
neg-mul-118.6%
distribute-neg-frac18.6%
Simplified18.6%
distribute-frac-neg18.6%
distribute-frac-neg218.6%
associate-/r/99.9%
+-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in y around 0 87.7%
distribute-lft-out87.7%
distribute-rgt-in87.7%
associate-*r/87.7%
mul-1-neg87.7%
associate-/l*99.9%
+-commutative99.9%
distribute-rgt-neg-in99.9%
*-lft-identity99.9%
associate-*l/99.7%
distribute-lft-in99.8%
lft-mult-inverse99.9%
distribute-neg-in99.9%
metadata-eval99.9%
associate-*l/99.9%
associate-*r/99.9%
*-lft-identity99.9%
unsub-neg99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (<= z -5.4e+39) (+ x y) (if (<= z 9.2e+33) (* z (- -1.0 (/ x y))) (* (+ x y) (+ 1.0 (/ y z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.4e+39) {
tmp = x + y;
} else if (z <= 9.2e+33) {
tmp = z * (-1.0 - (x / y));
} else {
tmp = (x + y) * (1.0 + (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 <= (-5.4d+39)) then
tmp = x + y
else if (z <= 9.2d+33) then
tmp = z * ((-1.0d0) - (x / y))
else
tmp = (x + y) * (1.0d0 + (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.4e+39) {
tmp = x + y;
} else if (z <= 9.2e+33) {
tmp = z * (-1.0 - (x / y));
} else {
tmp = (x + y) * (1.0 + (y / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.4e+39: tmp = x + y elif z <= 9.2e+33: tmp = z * (-1.0 - (x / y)) else: tmp = (x + y) * (1.0 + (y / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.4e+39) tmp = Float64(x + y); elseif (z <= 9.2e+33) tmp = Float64(z * Float64(-1.0 - Float64(x / y))); else tmp = Float64(Float64(x + y) * Float64(1.0 + Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.4e+39) tmp = x + y; elseif (z <= 9.2e+33) tmp = z * (-1.0 - (x / y)); else tmp = (x + y) * (1.0 + (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.4e+39], N[(x + y), $MachinePrecision], If[LessEqual[z, 9.2e+33], N[(z * N[(-1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] * N[(1.0 + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \cdot 10^{+39}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+33}:\\
\;\;\;\;z \cdot \left(-1 - \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) \cdot \left(1 + \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -5.40000000000000007e39Initial program 100.0%
Taylor expanded in z around inf 84.9%
+-commutative84.9%
Simplified84.9%
if -5.40000000000000007e39 < z < 9.20000000000000042e33Initial program 82.7%
Taylor expanded in y around inf 61.3%
neg-mul-161.3%
distribute-neg-frac61.3%
Simplified61.3%
distribute-frac-neg61.3%
distribute-frac-neg261.3%
associate-/r/74.5%
+-commutative74.5%
Applied egg-rr74.5%
Taylor expanded in y around 0 72.6%
distribute-lft-out72.6%
distribute-rgt-in72.6%
associate-*r/72.6%
mul-1-neg72.6%
associate-/l*74.5%
+-commutative74.5%
distribute-rgt-neg-in74.5%
*-lft-identity74.5%
associate-*l/74.4%
distribute-lft-in74.4%
lft-mult-inverse74.4%
distribute-neg-in74.4%
metadata-eval74.4%
associate-*l/74.5%
associate-*r/74.5%
*-lft-identity74.5%
unsub-neg74.5%
Simplified74.5%
if 9.20000000000000042e33 < z Initial program 99.9%
Taylor expanded in z around inf 73.1%
associate-+r+73.1%
*-rgt-identity73.1%
*-commutative73.1%
associate-/l*79.5%
distribute-lft-in79.5%
+-commutative79.5%
Simplified79.5%
Final simplification77.9%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.15e+40) (not (<= z 4.2e+33))) (+ x y) (* z (- -1.0 (/ x y)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.15e+40) || !(z <= 4.2e+33)) {
tmp = x + y;
} else {
tmp = z * (-1.0 - (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.15d+40)) .or. (.not. (z <= 4.2d+33))) then
tmp = x + y
else
tmp = z * ((-1.0d0) - (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.15e+40) || !(z <= 4.2e+33)) {
tmp = x + y;
} else {
tmp = z * (-1.0 - (x / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.15e+40) or not (z <= 4.2e+33): tmp = x + y else: tmp = z * (-1.0 - (x / y)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.15e+40) || !(z <= 4.2e+33)) tmp = Float64(x + y); else tmp = Float64(z * Float64(-1.0 - Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.15e+40) || ~((z <= 4.2e+33))) tmp = x + y; else tmp = z * (-1.0 - (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.15e+40], N[Not[LessEqual[z, 4.2e+33]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(z * N[(-1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.15 \cdot 10^{+40} \lor \neg \left(z \leq 4.2 \cdot 10^{+33}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if z < -2.1500000000000001e40 or 4.2000000000000001e33 < z Initial program 99.9%
Taylor expanded in z around inf 82.2%
+-commutative82.2%
Simplified82.2%
if -2.1500000000000001e40 < z < 4.2000000000000001e33Initial program 82.7%
Taylor expanded in y around inf 61.3%
neg-mul-161.3%
distribute-neg-frac61.3%
Simplified61.3%
distribute-frac-neg61.3%
distribute-frac-neg261.3%
associate-/r/74.5%
+-commutative74.5%
Applied egg-rr74.5%
Taylor expanded in y around 0 72.6%
distribute-lft-out72.6%
distribute-rgt-in72.6%
associate-*r/72.6%
mul-1-neg72.6%
associate-/l*74.5%
+-commutative74.5%
distribute-rgt-neg-in74.5%
*-lft-identity74.5%
associate-*l/74.4%
distribute-lft-in74.4%
lft-mult-inverse74.4%
distribute-neg-in74.4%
metadata-eval74.4%
associate-*l/74.5%
associate-*r/74.5%
*-lft-identity74.5%
unsub-neg74.5%
Simplified74.5%
Final simplification77.9%
(FPCore (x y z) :precision binary64 (if (or (<= y -7.5e+17) (not (<= y 4.8e+95))) (- z) (+ x y)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -7.5e+17) || !(y <= 4.8e+95)) {
tmp = -z;
} else {
tmp = 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 ((y <= (-7.5d+17)) .or. (.not. (y <= 4.8d+95))) then
tmp = -z
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -7.5e+17) || !(y <= 4.8e+95)) {
tmp = -z;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -7.5e+17) or not (y <= 4.8e+95): tmp = -z else: tmp = x + y return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -7.5e+17) || !(y <= 4.8e+95)) tmp = Float64(-z); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -7.5e+17) || ~((y <= 4.8e+95))) tmp = -z; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -7.5e+17], N[Not[LessEqual[y, 4.8e+95]], $MachinePrecision]], (-z), N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+17} \lor \neg \left(y \leq 4.8 \cdot 10^{+95}\right):\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if y < -7.5e17 or 4.8000000000000001e95 < y Initial program 76.8%
Taylor expanded in y around inf 61.6%
mul-1-neg61.6%
Simplified61.6%
if -7.5e17 < y < 4.8000000000000001e95Initial program 99.3%
Taylor expanded in z around inf 70.1%
+-commutative70.1%
Simplified70.1%
Final simplification66.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -1.3e-43) (not (<= y 1.05e+83))) (- z) x))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.3e-43) || !(y <= 1.05e+83)) {
tmp = -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 ((y <= (-1.3d-43)) .or. (.not. (y <= 1.05d+83))) then
tmp = -z
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -1.3e-43) || !(y <= 1.05e+83)) {
tmp = -z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.3e-43) or not (y <= 1.05e+83): tmp = -z else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.3e-43) || !(y <= 1.05e+83)) tmp = Float64(-z); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.3e-43) || ~((y <= 1.05e+83))) tmp = -z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.3e-43], N[Not[LessEqual[y, 1.05e+83]], $MachinePrecision]], (-z), x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-43} \lor \neg \left(y \leq 1.05 \cdot 10^{+83}\right):\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.3e-43 or 1.05000000000000001e83 < y Initial program 78.7%
Taylor expanded in y around inf 57.3%
mul-1-neg57.3%
Simplified57.3%
if -1.3e-43 < y < 1.05000000000000001e83Initial program 99.9%
Taylor expanded in y around 0 59.9%
Final simplification58.7%
(FPCore (x y z) :precision binary64 (if (<= y -3.8e-33) y x))
double code(double x, double y, double z) {
double tmp;
if (y <= -3.8e-33) {
tmp = 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 (y <= (-3.8d-33)) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -3.8e-33) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -3.8e-33: tmp = y else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (y <= -3.8e-33) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -3.8e-33) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -3.8e-33], y, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{-33}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.79999999999999994e-33Initial program 81.8%
Taylor expanded in x around 0 61.2%
Taylor expanded in y around 0 18.5%
if -3.79999999999999994e-33 < y Initial program 93.4%
Taylor expanded in y around 0 46.6%
Final simplification39.2%
(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 90.3%
Taylor expanded in y around 0 36.2%
Final simplification36.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (/ (+ y x) (- y)) z)))
(if (< y -3.7429310762689856e+171)
t_0
(if (< y 3.5534662456086734e+168) (/ (+ x y) (- 1.0 (/ y z))) t_0))))
double code(double x, double y, double z) {
double t_0 = ((y + x) / -y) * z;
double tmp;
if (y < -3.7429310762689856e+171) {
tmp = t_0;
} else if (y < 3.5534662456086734e+168) {
tmp = (x + y) / (1.0 - (y / 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 = ((y + x) / -y) * z
if (y < (-3.7429310762689856d+171)) then
tmp = t_0
else if (y < 3.5534662456086734d+168) then
tmp = (x + y) / (1.0d0 - (y / z))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y + x) / -y) * z;
double tmp;
if (y < -3.7429310762689856e+171) {
tmp = t_0;
} else if (y < 3.5534662456086734e+168) {
tmp = (x + y) / (1.0 - (y / z));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y + x) / -y) * z tmp = 0 if y < -3.7429310762689856e+171: tmp = t_0 elif y < 3.5534662456086734e+168: tmp = (x + y) / (1.0 - (y / z)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y + x) / Float64(-y)) * z) tmp = 0.0 if (y < -3.7429310762689856e+171) tmp = t_0; elseif (y < 3.5534662456086734e+168) tmp = Float64(Float64(x + y) / Float64(1.0 - Float64(y / z))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y + x) / -y) * z; tmp = 0.0; if (y < -3.7429310762689856e+171) tmp = t_0; elseif (y < 3.5534662456086734e+168) tmp = (x + y) / (1.0 - (y / z)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y + x), $MachinePrecision] / (-y)), $MachinePrecision] * z), $MachinePrecision]}, If[Less[y, -3.7429310762689856e+171], t$95$0, If[Less[y, 3.5534662456086734e+168], N[(N[(x + y), $MachinePrecision] / N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y + x}{-y} \cdot z\\
\mathbf{if}\;y < -3.7429310762689856 \cdot 10^{+171}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y < 3.5534662456086734 \cdot 10^{+168}:\\
\;\;\;\;\frac{x + y}{1 - \frac{y}{z}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024055
(FPCore (x y z)
:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1, A"
:precision binary64
:alt
(if (< y -3.7429310762689856e+171) (* (/ (+ y x) (- y)) z) (if (< y 3.5534662456086734e+168) (/ (+ x y) (- 1.0 (/ y z))) (* (/ (+ y x) (- y)) z)))
(/ (+ x y) (- 1.0 (/ y z))))