
(FPCore (x y z) :precision binary64 (fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))
double code(double x, double y, double z) {
return fabs((((x + 4.0) / y) - ((x / 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 = abs((((x + 4.0d0) / y) - ((x / y) * z)))
end function
public static double code(double x, double y, double z) {
return Math.abs((((x + 4.0) / y) - ((x / y) * z)));
}
def code(x, y, z): return math.fabs((((x + 4.0) / y) - ((x / y) * z)))
function code(x, y, z) return abs(Float64(Float64(Float64(x + 4.0) / y) - Float64(Float64(x / y) * z))) end
function tmp = code(x, y, z) tmp = abs((((x + 4.0) / y) - ((x / y) * z))); end
code[x_, y_, z_] := N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))
double code(double x, double y, double z) {
return fabs((((x + 4.0) / y) - ((x / 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 = abs((((x + 4.0d0) / y) - ((x / y) * z)))
end function
public static double code(double x, double y, double z) {
return Math.abs((((x + 4.0) / y) - ((x / y) * z)));
}
def code(x, y, z): return math.fabs((((x + 4.0) / y) - ((x / y) * z)))
function code(x, y, z) return abs(Float64(Float64(Float64(x + 4.0) / y) - Float64(Float64(x / y) * z))) end
function tmp = code(x, y, z) tmp = abs((((x + 4.0) / y) - ((x / y) * z))); end
code[x_, y_, z_] := N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|
\end{array}
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= y_m 4.5e-77) (fabs (/ (- (+ x 4.0) (* x z)) y_m)) (fabs (fma x (/ z y_m) (/ (- -4.0 x) y_m)))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (y_m <= 4.5e-77) {
tmp = fabs((((x + 4.0) - (x * z)) / y_m));
} else {
tmp = fabs(fma(x, (z / y_m), ((-4.0 - x) / y_m)));
}
return tmp;
}
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (y_m <= 4.5e-77) tmp = abs(Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y_m)); else tmp = abs(fma(x, Float64(z / y_m), Float64(Float64(-4.0 - x) / y_m))); end return tmp end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[y$95$m, 4.5e-77], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(x * N[(z / y$95$m), $MachinePrecision] + N[(N[(-4.0 - x), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;y\_m \leq 4.5 \cdot 10^{-77}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\mathsf{fma}\left(x, \frac{z}{y\_m}, \frac{-4 - x}{y\_m}\right)\right|\\
\end{array}
\end{array}
if y < 4.5000000000000001e-77Initial program 90.5%
associate-*l/94.0%
sub-div98.2%
Applied egg-rr98.2%
if 4.5000000000000001e-77 < y Initial program 96.6%
fabs-sub96.6%
associate-*l/93.6%
associate-*r/99.8%
fma-neg99.8%
distribute-neg-frac99.8%
+-commutative99.8%
distribute-neg-in99.8%
unsub-neg99.8%
metadata-eval99.8%
Simplified99.8%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (fabs (/ x y_m))) (t_1 (fabs (* z (/ x y_m)))))
(if (<= x -1.65e+109)
t_0
(if (<= x -1.15e+18)
t_1
(if (<= x 2.7e-49)
(fabs (/ 4.0 y_m))
(if (or (<= x 3.4e+16) (not (<= x 1.72e+64))) t_1 t_0))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((x / y_m));
double t_1 = fabs((z * (x / y_m)));
double tmp;
if (x <= -1.65e+109) {
tmp = t_0;
} else if (x <= -1.15e+18) {
tmp = t_1;
} else if (x <= 2.7e-49) {
tmp = fabs((4.0 / y_m));
} else if ((x <= 3.4e+16) || !(x <= 1.72e+64)) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = abs((x / y_m))
t_1 = abs((z * (x / y_m)))
if (x <= (-1.65d+109)) then
tmp = t_0
else if (x <= (-1.15d+18)) then
tmp = t_1
else if (x <= 2.7d-49) then
tmp = abs((4.0d0 / y_m))
else if ((x <= 3.4d+16) .or. (.not. (x <= 1.72d+64))) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double t_0 = Math.abs((x / y_m));
double t_1 = Math.abs((z * (x / y_m)));
double tmp;
if (x <= -1.65e+109) {
tmp = t_0;
} else if (x <= -1.15e+18) {
tmp = t_1;
} else if (x <= 2.7e-49) {
tmp = Math.abs((4.0 / y_m));
} else if ((x <= 3.4e+16) || !(x <= 1.72e+64)) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((x / y_m)) t_1 = math.fabs((z * (x / y_m))) tmp = 0 if x <= -1.65e+109: tmp = t_0 elif x <= -1.15e+18: tmp = t_1 elif x <= 2.7e-49: tmp = math.fabs((4.0 / y_m)) elif (x <= 3.4e+16) or not (x <= 1.72e+64): tmp = t_1 else: tmp = t_0 return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(x / y_m)) t_1 = abs(Float64(z * Float64(x / y_m))) tmp = 0.0 if (x <= -1.65e+109) tmp = t_0; elseif (x <= -1.15e+18) tmp = t_1; elseif (x <= 2.7e-49) tmp = abs(Float64(4.0 / y_m)); elseif ((x <= 3.4e+16) || !(x <= 1.72e+64)) tmp = t_1; else tmp = t_0; end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) t_0 = abs((x / y_m)); t_1 = abs((z * (x / y_m))); tmp = 0.0; if (x <= -1.65e+109) tmp = t_0; elseif (x <= -1.15e+18) tmp = t_1; elseif (x <= 2.7e-49) tmp = abs((4.0 / y_m)); elseif ((x <= 3.4e+16) || ~((x <= 1.72e+64))) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision]
code[x_, y$95$m_, z_] := Block[{t$95$0 = N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Abs[N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -1.65e+109], t$95$0, If[LessEqual[x, -1.15e+18], t$95$1, If[LessEqual[x, 2.7e-49], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision], If[Or[LessEqual[x, 3.4e+16], N[Not[LessEqual[x, 1.72e+64]], $MachinePrecision]], t$95$1, t$95$0]]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|\frac{x}{y\_m}\right|\\
t_1 := \left|z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{+109}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-49}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+16} \lor \neg \left(x \leq 1.72 \cdot 10^{+64}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.6499999999999999e109 or 3.4e16 < x < 1.72e64Initial program 88.6%
Simplified95.5%
Taylor expanded in x around inf 95.8%
associate-*r/95.8%
*-commutative95.8%
associate-*r*95.8%
sub-neg95.8%
metadata-eval95.8%
distribute-lft-in95.8%
neg-mul-195.8%
metadata-eval95.8%
+-commutative95.8%
neg-mul-195.8%
associate-/l*100.0%
neg-mul-1100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in z around 0 80.9%
if -1.6499999999999999e109 < x < -1.15e18 or 2.7e-49 < x < 3.4e16 or 1.72e64 < x Initial program 92.9%
Simplified92.5%
Taylor expanded in z around inf 56.5%
associate-*r/56.5%
neg-mul-156.5%
distribute-rgt-neg-in56.5%
Simplified56.5%
*-commutative56.5%
associate-/l*69.6%
add-sqr-sqrt36.0%
sqrt-unprod48.5%
sqr-neg48.5%
sqrt-unprod33.4%
add-sqr-sqrt69.6%
*-commutative69.6%
Applied egg-rr69.6%
if -1.15e18 < x < 2.7e-49Initial program 93.8%
Simplified99.9%
Taylor expanded in x around 0 75.9%
Final simplification74.5%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (fabs (/ x y_m))) (t_1 (fabs (/ z (/ y_m x)))))
(if (<= x -1.35e+110)
t_0
(if (<= x -1.15e+18)
t_1
(if (<= x 5.2e-51)
(fabs (/ 4.0 y_m))
(if (<= x 18000000000000.0)
(fabs (* x (/ z y_m)))
(if (<= x 2.05e+68) t_0 t_1)))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((x / y_m));
double t_1 = fabs((z / (y_m / x)));
double tmp;
if (x <= -1.35e+110) {
tmp = t_0;
} else if (x <= -1.15e+18) {
tmp = t_1;
} else if (x <= 5.2e-51) {
tmp = fabs((4.0 / y_m));
} else if (x <= 18000000000000.0) {
tmp = fabs((x * (z / y_m)));
} else if (x <= 2.05e+68) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = abs((x / y_m))
t_1 = abs((z / (y_m / x)))
if (x <= (-1.35d+110)) then
tmp = t_0
else if (x <= (-1.15d+18)) then
tmp = t_1
else if (x <= 5.2d-51) then
tmp = abs((4.0d0 / y_m))
else if (x <= 18000000000000.0d0) then
tmp = abs((x * (z / y_m)))
else if (x <= 2.05d+68) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double t_0 = Math.abs((x / y_m));
double t_1 = Math.abs((z / (y_m / x)));
double tmp;
if (x <= -1.35e+110) {
tmp = t_0;
} else if (x <= -1.15e+18) {
tmp = t_1;
} else if (x <= 5.2e-51) {
tmp = Math.abs((4.0 / y_m));
} else if (x <= 18000000000000.0) {
tmp = Math.abs((x * (z / y_m)));
} else if (x <= 2.05e+68) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((x / y_m)) t_1 = math.fabs((z / (y_m / x))) tmp = 0 if x <= -1.35e+110: tmp = t_0 elif x <= -1.15e+18: tmp = t_1 elif x <= 5.2e-51: tmp = math.fabs((4.0 / y_m)) elif x <= 18000000000000.0: tmp = math.fabs((x * (z / y_m))) elif x <= 2.05e+68: tmp = t_0 else: tmp = t_1 return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(x / y_m)) t_1 = abs(Float64(z / Float64(y_m / x))) tmp = 0.0 if (x <= -1.35e+110) tmp = t_0; elseif (x <= -1.15e+18) tmp = t_1; elseif (x <= 5.2e-51) tmp = abs(Float64(4.0 / y_m)); elseif (x <= 18000000000000.0) tmp = abs(Float64(x * Float64(z / y_m))); elseif (x <= 2.05e+68) tmp = t_0; else tmp = t_1; end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) t_0 = abs((x / y_m)); t_1 = abs((z / (y_m / x))); tmp = 0.0; if (x <= -1.35e+110) tmp = t_0; elseif (x <= -1.15e+18) tmp = t_1; elseif (x <= 5.2e-51) tmp = abs((4.0 / y_m)); elseif (x <= 18000000000000.0) tmp = abs((x * (z / y_m))); elseif (x <= 2.05e+68) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision]
code[x_, y$95$m_, z_] := Block[{t$95$0 = N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Abs[N[(z / N[(y$95$m / x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -1.35e+110], t$95$0, If[LessEqual[x, -1.15e+18], t$95$1, If[LessEqual[x, 5.2e-51], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 18000000000000.0], N[Abs[N[(x * N[(z / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 2.05e+68], t$95$0, t$95$1]]]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|\frac{x}{y\_m}\right|\\
t_1 := \left|\frac{z}{\frac{y\_m}{x}}\right|\\
\mathbf{if}\;x \leq -1.35 \cdot 10^{+110}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-51}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\mathbf{elif}\;x \leq 18000000000000:\\
\;\;\;\;\left|x \cdot \frac{z}{y\_m}\right|\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{+68}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.35000000000000005e110 or 1.8e13 < x < 2.05e68Initial program 87.2%
Simplified95.7%
Taylor expanded in x around inf 95.9%
associate-*r/95.9%
*-commutative95.9%
associate-*r*95.9%
sub-neg95.9%
metadata-eval95.9%
distribute-lft-in95.9%
neg-mul-195.9%
metadata-eval95.9%
+-commutative95.9%
neg-mul-195.9%
associate-/l*99.8%
neg-mul-199.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 79.9%
if -1.35000000000000005e110 < x < -1.15e18 or 2.05e68 < x Initial program 92.7%
Simplified90.3%
Taylor expanded in z around inf 54.3%
associate-*r/54.3%
neg-mul-154.3%
distribute-rgt-neg-in54.3%
Simplified54.3%
distribute-rgt-neg-out54.3%
distribute-lft-neg-in54.3%
associate-*r/63.6%
add-sqr-sqrt16.5%
sqrt-unprod56.1%
sqr-neg56.1%
sqrt-unprod46.9%
add-sqr-sqrt63.6%
*-commutative63.6%
Applied egg-rr63.6%
associate-/r/70.5%
Applied egg-rr70.5%
if -1.15e18 < x < 5.2e-51Initial program 93.8%
Simplified99.9%
Taylor expanded in x around 0 75.9%
if 5.2e-51 < x < 1.8e13Initial program 98.2%
Simplified99.8%
Taylor expanded in z around inf 68.4%
associate-*r/68.4%
neg-mul-168.4%
distribute-rgt-neg-in68.4%
Simplified68.4%
distribute-rgt-neg-out68.4%
distribute-lft-neg-in68.4%
associate-*r/68.3%
add-sqr-sqrt0.0%
sqrt-unprod68.3%
sqr-neg68.3%
sqrt-unprod68.0%
add-sqr-sqrt68.3%
*-commutative68.3%
Applied egg-rr68.3%
Final simplification74.6%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (fabs (/ x y_m))) (t_1 (fabs (* z (/ x y_m)))))
(if (<= x -1.55e+109)
t_0
(if (<= x -1.15e+18)
t_1
(if (<= x 2.3e-49)
(fabs (/ 4.0 y_m))
(if (<= x 24000000000000.0)
(fabs (* x (/ z y_m)))
(if (<= x 1.6e+64) t_0 t_1)))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((x / y_m));
double t_1 = fabs((z * (x / y_m)));
double tmp;
if (x <= -1.55e+109) {
tmp = t_0;
} else if (x <= -1.15e+18) {
tmp = t_1;
} else if (x <= 2.3e-49) {
tmp = fabs((4.0 / y_m));
} else if (x <= 24000000000000.0) {
tmp = fabs((x * (z / y_m)));
} else if (x <= 1.6e+64) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = abs((x / y_m))
t_1 = abs((z * (x / y_m)))
if (x <= (-1.55d+109)) then
tmp = t_0
else if (x <= (-1.15d+18)) then
tmp = t_1
else if (x <= 2.3d-49) then
tmp = abs((4.0d0 / y_m))
else if (x <= 24000000000000.0d0) then
tmp = abs((x * (z / y_m)))
else if (x <= 1.6d+64) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double t_0 = Math.abs((x / y_m));
double t_1 = Math.abs((z * (x / y_m)));
double tmp;
if (x <= -1.55e+109) {
tmp = t_0;
} else if (x <= -1.15e+18) {
tmp = t_1;
} else if (x <= 2.3e-49) {
tmp = Math.abs((4.0 / y_m));
} else if (x <= 24000000000000.0) {
tmp = Math.abs((x * (z / y_m)));
} else if (x <= 1.6e+64) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((x / y_m)) t_1 = math.fabs((z * (x / y_m))) tmp = 0 if x <= -1.55e+109: tmp = t_0 elif x <= -1.15e+18: tmp = t_1 elif x <= 2.3e-49: tmp = math.fabs((4.0 / y_m)) elif x <= 24000000000000.0: tmp = math.fabs((x * (z / y_m))) elif x <= 1.6e+64: tmp = t_0 else: tmp = t_1 return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(x / y_m)) t_1 = abs(Float64(z * Float64(x / y_m))) tmp = 0.0 if (x <= -1.55e+109) tmp = t_0; elseif (x <= -1.15e+18) tmp = t_1; elseif (x <= 2.3e-49) tmp = abs(Float64(4.0 / y_m)); elseif (x <= 24000000000000.0) tmp = abs(Float64(x * Float64(z / y_m))); elseif (x <= 1.6e+64) tmp = t_0; else tmp = t_1; end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) t_0 = abs((x / y_m)); t_1 = abs((z * (x / y_m))); tmp = 0.0; if (x <= -1.55e+109) tmp = t_0; elseif (x <= -1.15e+18) tmp = t_1; elseif (x <= 2.3e-49) tmp = abs((4.0 / y_m)); elseif (x <= 24000000000000.0) tmp = abs((x * (z / y_m))); elseif (x <= 1.6e+64) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision]
code[x_, y$95$m_, z_] := Block[{t$95$0 = N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Abs[N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -1.55e+109], t$95$0, If[LessEqual[x, -1.15e+18], t$95$1, If[LessEqual[x, 2.3e-49], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 24000000000000.0], N[Abs[N[(x * N[(z / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 1.6e+64], t$95$0, t$95$1]]]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|\frac{x}{y\_m}\right|\\
t_1 := \left|z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+109}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-49}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\mathbf{elif}\;x \leq 24000000000000:\\
\;\;\;\;\left|x \cdot \frac{z}{y\_m}\right|\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+64}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.54999999999999996e109 or 2.4e13 < x < 1.60000000000000009e64Initial program 87.2%
Simplified95.7%
Taylor expanded in x around inf 95.9%
associate-*r/95.9%
*-commutative95.9%
associate-*r*95.9%
sub-neg95.9%
metadata-eval95.9%
distribute-lft-in95.9%
neg-mul-195.9%
metadata-eval95.9%
+-commutative95.9%
neg-mul-195.9%
associate-/l*99.8%
neg-mul-199.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 79.9%
if -1.54999999999999996e109 < x < -1.15e18 or 1.60000000000000009e64 < x Initial program 92.7%
Simplified90.3%
Taylor expanded in z around inf 54.3%
associate-*r/54.3%
neg-mul-154.3%
distribute-rgt-neg-in54.3%
Simplified54.3%
*-commutative54.3%
associate-/l*70.4%
add-sqr-sqrt37.1%
sqrt-unprod50.9%
sqr-neg50.9%
sqrt-unprod33.1%
add-sqr-sqrt70.4%
*-commutative70.4%
Applied egg-rr70.4%
if -1.15e18 < x < 2.2999999999999999e-49Initial program 93.8%
Simplified99.9%
Taylor expanded in x around 0 75.9%
if 2.2999999999999999e-49 < x < 2.4e13Initial program 98.2%
Simplified99.8%
Taylor expanded in z around inf 68.4%
associate-*r/68.4%
neg-mul-168.4%
distribute-rgt-neg-in68.4%
Simplified68.4%
distribute-rgt-neg-out68.4%
distribute-lft-neg-in68.4%
associate-*r/68.3%
add-sqr-sqrt0.0%
sqrt-unprod68.3%
sqr-neg68.3%
sqrt-unprod68.0%
add-sqr-sqrt68.3%
*-commutative68.3%
Applied egg-rr68.3%
Final simplification74.6%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= y_m 1.3e-10) (fabs (/ (- (+ x 4.0) (* x z)) y_m)) (fabs (- (/ (+ x 4.0) y_m) (/ x (/ y_m z))))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (y_m <= 1.3e-10) {
tmp = fabs((((x + 4.0) - (x * z)) / y_m));
} else {
tmp = fabs((((x + 4.0) / y_m) - (x / (y_m / z))));
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: tmp
if (y_m <= 1.3d-10) then
tmp = abs((((x + 4.0d0) - (x * z)) / y_m))
else
tmp = abs((((x + 4.0d0) / y_m) - (x / (y_m / z))))
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double tmp;
if (y_m <= 1.3e-10) {
tmp = Math.abs((((x + 4.0) - (x * z)) / y_m));
} else {
tmp = Math.abs((((x + 4.0) / y_m) - (x / (y_m / z))));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if y_m <= 1.3e-10: tmp = math.fabs((((x + 4.0) - (x * z)) / y_m)) else: tmp = math.fabs((((x + 4.0) / y_m) - (x / (y_m / z)))) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (y_m <= 1.3e-10) tmp = abs(Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y_m)); else tmp = abs(Float64(Float64(Float64(x + 4.0) / y_m) - Float64(x / Float64(y_m / z)))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (y_m <= 1.3e-10) tmp = abs((((x + 4.0) - (x * z)) / y_m)); else tmp = abs((((x + 4.0) / y_m) - (x / (y_m / z)))); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[y$95$m, 1.3e-10], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] / y$95$m), $MachinePrecision] - N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;y\_m \leq 1.3 \cdot 10^{-10}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x + 4}{y\_m} - \frac{x}{\frac{y\_m}{z}}\right|\\
\end{array}
\end{array}
if y < 1.29999999999999991e-10Initial program 91.1%
associate-*l/94.4%
sub-div98.3%
Applied egg-rr98.3%
if 1.29999999999999991e-10 < y Initial program 96.2%
associate-*l/92.6%
associate-*r/99.8%
clear-num99.1%
un-div-inv99.2%
Applied egg-rr99.2%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= z -5.3e+104) (fabs (/ (* x z) y_m)) (if (<= z 1.45e+34) (fabs (/ (- -4.0 x) y_m)) (fabs (* z (/ x y_m))))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (z <= -5.3e+104) {
tmp = fabs(((x * z) / y_m));
} else if (z <= 1.45e+34) {
tmp = fabs(((-4.0 - x) / y_m));
} else {
tmp = fabs((z * (x / y_m)));
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-5.3d+104)) then
tmp = abs(((x * z) / y_m))
else if (z <= 1.45d+34) then
tmp = abs((((-4.0d0) - x) / y_m))
else
tmp = abs((z * (x / y_m)))
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double tmp;
if (z <= -5.3e+104) {
tmp = Math.abs(((x * z) / y_m));
} else if (z <= 1.45e+34) {
tmp = Math.abs(((-4.0 - x) / y_m));
} else {
tmp = Math.abs((z * (x / y_m)));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if z <= -5.3e+104: tmp = math.fabs(((x * z) / y_m)) elif z <= 1.45e+34: tmp = math.fabs(((-4.0 - x) / y_m)) else: tmp = math.fabs((z * (x / y_m))) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (z <= -5.3e+104) tmp = abs(Float64(Float64(x * z) / y_m)); elseif (z <= 1.45e+34) tmp = abs(Float64(Float64(-4.0 - x) / y_m)); else tmp = abs(Float64(z * Float64(x / y_m))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (z <= -5.3e+104) tmp = abs(((x * z) / y_m)); elseif (z <= 1.45e+34) tmp = abs(((-4.0 - x) / y_m)); else tmp = abs((z * (x / y_m))); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[z, -5.3e+104], N[Abs[N[(N[(x * z), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[z, 1.45e+34], N[Abs[N[(N[(-4.0 - x), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.3 \cdot 10^{+104}:\\
\;\;\;\;\left|\frac{x \cdot z}{y\_m}\right|\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+34}:\\
\;\;\;\;\left|\frac{-4 - x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|z \cdot \frac{x}{y\_m}\right|\\
\end{array}
\end{array}
if z < -5.2999999999999999e104Initial program 86.7%
Simplified95.6%
Taylor expanded in z around inf 82.7%
associate-*r/82.7%
neg-mul-182.7%
distribute-rgt-neg-in82.7%
Simplified82.7%
if -5.2999999999999999e104 < z < 1.4500000000000001e34Initial program 95.7%
Simplified98.7%
Taylor expanded in z around 0 91.8%
+-commutative91.8%
rem-square-sqrt43.9%
fabs-sqr43.9%
rem-square-sqrt91.8%
fabs-neg91.8%
distribute-neg-frac91.8%
distribute-neg-in91.8%
metadata-eval91.8%
+-commutative91.8%
sub-neg91.8%
rem-square-sqrt47.3%
fabs-sqr47.3%
rem-square-sqrt91.8%
Simplified91.8%
if 1.4500000000000001e34 < z Initial program 87.6%
Simplified90.0%
Taylor expanded in z around inf 80.5%
associate-*r/80.5%
neg-mul-180.5%
distribute-rgt-neg-in80.5%
Simplified80.5%
*-commutative80.5%
associate-/l*86.2%
add-sqr-sqrt0.0%
sqrt-unprod52.5%
sqr-neg52.5%
sqrt-unprod85.9%
add-sqr-sqrt86.2%
*-commutative86.2%
Applied egg-rr86.2%
Final simplification89.2%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= z -3.7e+27) (fabs (/ x (/ y_m z))) (if (<= z 6.8e+38) (fabs (/ (- -4.0 x) y_m)) (fabs (* z (/ x y_m))))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (z <= -3.7e+27) {
tmp = fabs((x / (y_m / z)));
} else if (z <= 6.8e+38) {
tmp = fabs(((-4.0 - x) / y_m));
} else {
tmp = fabs((z * (x / y_m)));
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-3.7d+27)) then
tmp = abs((x / (y_m / z)))
else if (z <= 6.8d+38) then
tmp = abs((((-4.0d0) - x) / y_m))
else
tmp = abs((z * (x / y_m)))
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double tmp;
if (z <= -3.7e+27) {
tmp = Math.abs((x / (y_m / z)));
} else if (z <= 6.8e+38) {
tmp = Math.abs(((-4.0 - x) / y_m));
} else {
tmp = Math.abs((z * (x / y_m)));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if z <= -3.7e+27: tmp = math.fabs((x / (y_m / z))) elif z <= 6.8e+38: tmp = math.fabs(((-4.0 - x) / y_m)) else: tmp = math.fabs((z * (x / y_m))) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (z <= -3.7e+27) tmp = abs(Float64(x / Float64(y_m / z))); elseif (z <= 6.8e+38) tmp = abs(Float64(Float64(-4.0 - x) / y_m)); else tmp = abs(Float64(z * Float64(x / y_m))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (z <= -3.7e+27) tmp = abs((x / (y_m / z))); elseif (z <= 6.8e+38) tmp = abs(((-4.0 - x) / y_m)); else tmp = abs((z * (x / y_m))); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[z, -3.7e+27], N[Abs[N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[z, 6.8e+38], N[Abs[N[(N[(-4.0 - x), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+27}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}}\right|\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+38}:\\
\;\;\;\;\left|\frac{-4 - x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|z \cdot \frac{x}{y\_m}\right|\\
\end{array}
\end{array}
if z < -3.70000000000000002e27Initial program 89.8%
Simplified93.5%
Taylor expanded in z around inf 72.5%
mul-1-neg72.5%
associate-*r/73.2%
*-commutative73.2%
distribute-rgt-neg-in73.2%
Simplified73.2%
*-commutative73.2%
clear-num73.3%
un-div-inv74.4%
add-sqr-sqrt28.6%
sqrt-unprod62.1%
sqr-neg62.1%
sqrt-unprod45.5%
add-sqr-sqrt74.4%
Applied egg-rr74.4%
if -3.70000000000000002e27 < z < 6.79999999999999992e38Initial program 95.3%
Simplified99.8%
Taylor expanded in z around 0 95.4%
+-commutative95.4%
rem-square-sqrt45.2%
fabs-sqr45.2%
rem-square-sqrt95.4%
fabs-neg95.4%
distribute-neg-frac95.4%
distribute-neg-in95.4%
metadata-eval95.4%
+-commutative95.4%
sub-neg95.4%
rem-square-sqrt49.7%
fabs-sqr49.7%
rem-square-sqrt95.4%
Simplified95.4%
if 6.79999999999999992e38 < z Initial program 87.6%
Simplified90.0%
Taylor expanded in z around inf 80.5%
associate-*r/80.5%
neg-mul-180.5%
distribute-rgt-neg-in80.5%
Simplified80.5%
*-commutative80.5%
associate-/l*86.2%
add-sqr-sqrt0.0%
sqrt-unprod52.5%
sqr-neg52.5%
sqrt-unprod85.9%
add-sqr-sqrt86.2%
*-commutative86.2%
Applied egg-rr86.2%
Final simplification88.8%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x 2.7e+16) (fabs (/ (- (+ x 4.0) (* x z)) y_m)) (fabs (* (- 1.0 z) (/ x y_m)))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= 2.7e+16) {
tmp = fabs((((x + 4.0) - (x * z)) / y_m));
} else {
tmp = fabs(((1.0 - z) * (x / y_m)));
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 2.7d+16) then
tmp = abs((((x + 4.0d0) - (x * z)) / y_m))
else
tmp = abs(((1.0d0 - z) * (x / y_m)))
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double tmp;
if (x <= 2.7e+16) {
tmp = Math.abs((((x + 4.0) - (x * z)) / y_m));
} else {
tmp = Math.abs(((1.0 - z) * (x / y_m)));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= 2.7e+16: tmp = math.fabs((((x + 4.0) - (x * z)) / y_m)) else: tmp = math.fabs(((1.0 - z) * (x / y_m))) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= 2.7e+16) tmp = abs(Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y_m)); else tmp = abs(Float64(Float64(1.0 - z) * Float64(x / y_m))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (x <= 2.7e+16) tmp = abs((((x + 4.0) - (x * z)) / y_m)); else tmp = abs(((1.0 - z) * (x / y_m))); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, 2.7e+16], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(1.0 - z), $MachinePrecision] * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.7 \cdot 10^{+16}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\left(1 - z\right) \cdot \frac{x}{y\_m}\right|\\
\end{array}
\end{array}
if x < 2.7e16Initial program 92.9%
associate-*l/97.5%
sub-div99.0%
Applied egg-rr99.0%
if 2.7e16 < x Initial program 91.6%
Simplified88.7%
Taylor expanded in x around inf 88.9%
associate-*r/88.9%
*-commutative88.9%
associate-*r*88.9%
sub-neg88.9%
metadata-eval88.9%
distribute-lft-in88.9%
neg-mul-188.9%
metadata-eval88.9%
+-commutative88.9%
neg-mul-188.9%
associate-/l*99.9%
neg-mul-199.9%
unsub-neg99.9%
Simplified99.9%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (or (<= x -1.55) (not (<= x 4.0))) (fabs (/ x y_m)) (fabs (/ 4.0 y_m))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if ((x <= -1.55) || !(x <= 4.0)) {
tmp = fabs((x / y_m));
} else {
tmp = fabs((4.0 / y_m));
}
return tmp;
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.55d0)) .or. (.not. (x <= 4.0d0))) then
tmp = abs((x / y_m))
else
tmp = abs((4.0d0 / y_m))
end if
code = tmp
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double tmp;
if ((x <= -1.55) || !(x <= 4.0)) {
tmp = Math.abs((x / y_m));
} else {
tmp = Math.abs((4.0 / y_m));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if (x <= -1.55) or not (x <= 4.0): tmp = math.fabs((x / y_m)) else: tmp = math.fabs((4.0 / y_m)) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if ((x <= -1.55) || !(x <= 4.0)) tmp = abs(Float64(x / y_m)); else tmp = abs(Float64(4.0 / y_m)); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if ((x <= -1.55) || ~((x <= 4.0))) tmp = abs((x / y_m)); else tmp = abs((4.0 / y_m)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[Or[LessEqual[x, -1.55], N[Not[LessEqual[x, 4.0]], $MachinePrecision]], N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.55 \lor \neg \left(x \leq 4\right):\\
\;\;\;\;\left|\frac{x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\end{array}
\end{array}
if x < -1.55000000000000004 or 4 < x Initial program 91.0%
Simplified92.9%
Taylor expanded in x around inf 91.5%
associate-*r/91.5%
*-commutative91.5%
associate-*r*91.5%
sub-neg91.5%
metadata-eval91.5%
distribute-lft-in91.5%
neg-mul-191.5%
metadata-eval91.5%
+-commutative91.5%
neg-mul-191.5%
associate-/l*98.3%
neg-mul-198.3%
unsub-neg98.3%
Simplified98.3%
Taylor expanded in z around 0 60.2%
if -1.55000000000000004 < x < 4Initial program 94.0%
Simplified99.9%
Taylor expanded in x around 0 72.0%
Final simplification66.3%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (fabs (/ 4.0 y_m)))
y_m = fabs(y);
double code(double x, double y_m, double z) {
return fabs((4.0 / y_m));
}
y_m = abs(y)
real(8) function code(x, y_m, z)
real(8), intent (in) :: x
real(8), intent (in) :: y_m
real(8), intent (in) :: z
code = abs((4.0d0 / y_m))
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
return Math.abs((4.0 / y_m));
}
y_m = math.fabs(y) def code(x, y_m, z): return math.fabs((4.0 / y_m))
y_m = abs(y) function code(x, y_m, z) return abs(Float64(4.0 / y_m)) end
y_m = abs(y); function tmp = code(x, y_m, z) tmp = abs((4.0 / y_m)); end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
y_m = \left|y\right|
\\
\left|\frac{4}{y\_m}\right|
\end{array}
Initial program 92.6%
Simplified96.5%
Taylor expanded in x around 0 39.6%
herbie shell --seed 2024089
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))