
(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 6 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}
NOTE: y should be positive before calling this function (FPCore (x y z) :precision binary64 (if (<= y 200.0) (fabs (/ (- (+ x 4.0) (* x z)) y)) (fabs (- (/ (+ x 4.0) y) (* x (/ z y))))))
y = abs(y);
double code(double x, double y, double z) {
double tmp;
if (y <= 200.0) {
tmp = fabs((((x + 4.0) - (x * z)) / y));
} else {
tmp = fabs((((x + 4.0) / y) - (x * (z / y))));
}
return tmp;
}
NOTE: y should be positive before calling this function
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 <= 200.0d0) then
tmp = abs((((x + 4.0d0) - (x * z)) / y))
else
tmp = abs((((x + 4.0d0) / y) - (x * (z / y))))
end if
code = tmp
end function
y = Math.abs(y);
public static double code(double x, double y, double z) {
double tmp;
if (y <= 200.0) {
tmp = Math.abs((((x + 4.0) - (x * z)) / y));
} else {
tmp = Math.abs((((x + 4.0) / y) - (x * (z / y))));
}
return tmp;
}
y = abs(y) def code(x, y, z): tmp = 0 if y <= 200.0: tmp = math.fabs((((x + 4.0) - (x * z)) / y)) else: tmp = math.fabs((((x + 4.0) / y) - (x * (z / y)))) return tmp
y = abs(y) function code(x, y, z) tmp = 0.0 if (y <= 200.0) tmp = abs(Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y)); else tmp = abs(Float64(Float64(Float64(x + 4.0) / y) - Float64(x * Float64(z / y)))); end return tmp end
y = abs(y) function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 200.0) tmp = abs((((x + 4.0) - (x * z)) / y)); else tmp = abs((((x + 4.0) / y) - (x * (z / y)))); end tmp_2 = tmp; end
NOTE: y should be positive before calling this function code[x_, y_, z_] := If[LessEqual[y, 200.0], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision] - N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y = |y|\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 200:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x + 4}{y} - x \cdot \frac{z}{y}\right|\\
\end{array}
\end{array}
if y < 200Initial program 92.0%
associate-*l/92.7%
associate-*r/92.3%
Simplified92.3%
Taylor expanded in y around 0 95.9%
+-commutative95.9%
Simplified95.9%
if 200 < y Initial program 92.6%
associate-*l/92.9%
associate-*r/99.9%
Simplified99.9%
Final simplification96.9%
NOTE: y should be positive before calling this function
(FPCore (x y z)
:precision binary64
(let* ((t_0 (fabs (/ x y))) (t_1 (fabs (* z (/ x y)))))
(if (<= x -2.3e+169)
t_0
(if (<= x -1.7e-55)
t_1
(if (<= x 4.05e-50)
(fabs (/ 4.0 y))
(if (or (<= x 6.1e+221) (not (<= x 2.1e+301))) t_1 t_0))))))y = abs(y);
double code(double x, double y, double z) {
double t_0 = fabs((x / y));
double t_1 = fabs((z * (x / y)));
double tmp;
if (x <= -2.3e+169) {
tmp = t_0;
} else if (x <= -1.7e-55) {
tmp = t_1;
} else if (x <= 4.05e-50) {
tmp = fabs((4.0 / y));
} else if ((x <= 6.1e+221) || !(x <= 2.1e+301)) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
NOTE: y should be positive before calling this function
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) :: t_1
real(8) :: tmp
t_0 = abs((x / y))
t_1 = abs((z * (x / y)))
if (x <= (-2.3d+169)) then
tmp = t_0
else if (x <= (-1.7d-55)) then
tmp = t_1
else if (x <= 4.05d-50) then
tmp = abs((4.0d0 / y))
else if ((x <= 6.1d+221) .or. (.not. (x <= 2.1d+301))) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
y = Math.abs(y);
public static double code(double x, double y, double z) {
double t_0 = Math.abs((x / y));
double t_1 = Math.abs((z * (x / y)));
double tmp;
if (x <= -2.3e+169) {
tmp = t_0;
} else if (x <= -1.7e-55) {
tmp = t_1;
} else if (x <= 4.05e-50) {
tmp = Math.abs((4.0 / y));
} else if ((x <= 6.1e+221) || !(x <= 2.1e+301)) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
y = abs(y) def code(x, y, z): t_0 = math.fabs((x / y)) t_1 = math.fabs((z * (x / y))) tmp = 0 if x <= -2.3e+169: tmp = t_0 elif x <= -1.7e-55: tmp = t_1 elif x <= 4.05e-50: tmp = math.fabs((4.0 / y)) elif (x <= 6.1e+221) or not (x <= 2.1e+301): tmp = t_1 else: tmp = t_0 return tmp
y = abs(y) function code(x, y, z) t_0 = abs(Float64(x / y)) t_1 = abs(Float64(z * Float64(x / y))) tmp = 0.0 if (x <= -2.3e+169) tmp = t_0; elseif (x <= -1.7e-55) tmp = t_1; elseif (x <= 4.05e-50) tmp = abs(Float64(4.0 / y)); elseif ((x <= 6.1e+221) || !(x <= 2.1e+301)) tmp = t_1; else tmp = t_0; end return tmp end
y = abs(y) function tmp_2 = code(x, y, z) t_0 = abs((x / y)); t_1 = abs((z * (x / y))); tmp = 0.0; if (x <= -2.3e+169) tmp = t_0; elseif (x <= -1.7e-55) tmp = t_1; elseif (x <= 4.05e-50) tmp = abs((4.0 / y)); elseif ((x <= 6.1e+221) || ~((x <= 2.1e+301))) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
NOTE: y should be positive before calling this function
code[x_, y_, z_] := Block[{t$95$0 = N[Abs[N[(x / y), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Abs[N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -2.3e+169], t$95$0, If[LessEqual[x, -1.7e-55], t$95$1, If[LessEqual[x, 4.05e-50], N[Abs[N[(4.0 / y), $MachinePrecision]], $MachinePrecision], If[Or[LessEqual[x, 6.1e+221], N[Not[LessEqual[x, 2.1e+301]], $MachinePrecision]], t$95$1, t$95$0]]]]]]
\begin{array}{l}
y = |y|\\
\\
\begin{array}{l}
t_0 := \left|\frac{x}{y}\right|\\
t_1 := \left|z \cdot \frac{x}{y}\right|\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{+169}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-55}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.05 \cdot 10^{-50}:\\
\;\;\;\;\left|\frac{4}{y}\right|\\
\mathbf{elif}\;x \leq 6.1 \cdot 10^{+221} \lor \neg \left(x \leq 2.1 \cdot 10^{+301}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -2.2999999999999999e169 or 6.0999999999999998e221 < x < 2.0999999999999999e301Initial program 89.0%
associate-*l/85.4%
associate-*r/95.6%
Simplified95.6%
Taylor expanded in z around 0 75.7%
associate-*r/75.7%
metadata-eval75.7%
Simplified75.7%
Taylor expanded in x around inf 75.7%
if -2.2999999999999999e169 < x < -1.69999999999999986e-55 or 4.0499999999999999e-50 < x < 6.0999999999999998e221 or 2.0999999999999999e301 < x Initial program 92.8%
associate-*l/89.6%
associate-*r/95.5%
Simplified95.5%
Taylor expanded in z around inf 58.0%
associate-*r/58.0%
associate-*r*58.0%
neg-mul-158.0%
*-commutative58.0%
associate-*r/68.9%
distribute-frac-neg68.9%
Simplified68.9%
add-sqr-sqrt34.4%
sqrt-unprod57.6%
sqr-neg57.6%
sqrt-unprod34.3%
add-sqr-sqrt68.9%
associate-*r/58.0%
*-commutative58.0%
associate-/l*63.9%
Applied egg-rr63.9%
associate-/r/68.9%
Applied egg-rr68.9%
if -1.69999999999999986e-55 < x < 4.0499999999999999e-50Initial program 93.0%
associate-*l/99.9%
associate-*r/92.3%
Simplified92.3%
Taylor expanded in x around 0 81.5%
Final simplification74.9%
NOTE: y should be positive before calling this function (FPCore (x y z) :precision binary64 (if (<= x -5e+16) (fabs (- (/ x y) (* x (/ z y)))) (fabs (/ (- (+ x 4.0) (* x z)) y))))
y = abs(y);
double code(double x, double y, double z) {
double tmp;
if (x <= -5e+16) {
tmp = fabs(((x / y) - (x * (z / y))));
} else {
tmp = fabs((((x + 4.0) - (x * z)) / y));
}
return tmp;
}
NOTE: y should be positive before calling this function
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 <= (-5d+16)) then
tmp = abs(((x / y) - (x * (z / y))))
else
tmp = abs((((x + 4.0d0) - (x * z)) / y))
end if
code = tmp
end function
y = Math.abs(y);
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5e+16) {
tmp = Math.abs(((x / y) - (x * (z / y))));
} else {
tmp = Math.abs((((x + 4.0) - (x * z)) / y));
}
return tmp;
}
y = abs(y) def code(x, y, z): tmp = 0 if x <= -5e+16: tmp = math.fabs(((x / y) - (x * (z / y)))) else: tmp = math.fabs((((x + 4.0) - (x * z)) / y)) return tmp
y = abs(y) function code(x, y, z) tmp = 0.0 if (x <= -5e+16) tmp = abs(Float64(Float64(x / y) - Float64(x * Float64(z / y)))); else tmp = abs(Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y)); end return tmp end
y = abs(y) function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5e+16) tmp = abs(((x / y) - (x * (z / y)))); else tmp = abs((((x + 4.0) - (x * z)) / y)); end tmp_2 = tmp; end
NOTE: y should be positive before calling this function code[x_, y_, z_] := If[LessEqual[x, -5e+16], N[Abs[N[(N[(x / y), $MachinePrecision] - N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y = |y|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5 \cdot 10^{+16}:\\
\;\;\;\;\left|\frac{x}{y} - x \cdot \frac{z}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y}\right|\\
\end{array}
\end{array}
if x < -5e16Initial program 93.9%
associate-*l/85.6%
associate-*r/96.9%
Simplified96.9%
Taylor expanded in x around inf 96.9%
if -5e16 < x Initial program 91.6%
associate-*l/95.3%
associate-*r/93.4%
Simplified93.4%
Taylor expanded in y around 0 97.4%
+-commutative97.4%
Simplified97.4%
Final simplification97.2%
NOTE: y should be positive before calling this function (FPCore (x y z) :precision binary64 (if (<= z -7.8e+37) (fabs (* z (/ x y))) (if (<= z 95000000.0) (fabs (/ (- -4.0 x) y)) (fabs (* x (/ z y))))))
y = abs(y);
double code(double x, double y, double z) {
double tmp;
if (z <= -7.8e+37) {
tmp = fabs((z * (x / y)));
} else if (z <= 95000000.0) {
tmp = fabs(((-4.0 - x) / y));
} else {
tmp = fabs((x * (z / y)));
}
return tmp;
}
NOTE: y should be positive before calling this function
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 <= (-7.8d+37)) then
tmp = abs((z * (x / y)))
else if (z <= 95000000.0d0) then
tmp = abs((((-4.0d0) - x) / y))
else
tmp = abs((x * (z / y)))
end if
code = tmp
end function
y = Math.abs(y);
public static double code(double x, double y, double z) {
double tmp;
if (z <= -7.8e+37) {
tmp = Math.abs((z * (x / y)));
} else if (z <= 95000000.0) {
tmp = Math.abs(((-4.0 - x) / y));
} else {
tmp = Math.abs((x * (z / y)));
}
return tmp;
}
y = abs(y) def code(x, y, z): tmp = 0 if z <= -7.8e+37: tmp = math.fabs((z * (x / y))) elif z <= 95000000.0: tmp = math.fabs(((-4.0 - x) / y)) else: tmp = math.fabs((x * (z / y))) return tmp
y = abs(y) function code(x, y, z) tmp = 0.0 if (z <= -7.8e+37) tmp = abs(Float64(z * Float64(x / y))); elseif (z <= 95000000.0) tmp = abs(Float64(Float64(-4.0 - x) / y)); else tmp = abs(Float64(x * Float64(z / y))); end return tmp end
y = abs(y) function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -7.8e+37) tmp = abs((z * (x / y))); elseif (z <= 95000000.0) tmp = abs(((-4.0 - x) / y)); else tmp = abs((x * (z / y))); end tmp_2 = tmp; end
NOTE: y should be positive before calling this function code[x_, y_, z_] := If[LessEqual[z, -7.8e+37], N[Abs[N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[z, 95000000.0], N[Abs[N[(N[(-4.0 - x), $MachinePrecision] / y), $MachinePrecision]], $MachinePrecision], N[Abs[N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
y = |y|\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{+37}:\\
\;\;\;\;\left|z \cdot \frac{x}{y}\right|\\
\mathbf{elif}\;z \leq 95000000:\\
\;\;\;\;\left|\frac{-4 - x}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|x \cdot \frac{z}{y}\right|\\
\end{array}
\end{array}
if z < -7.7999999999999997e37Initial program 93.2%
associate-*l/88.6%
associate-*r/92.0%
Simplified92.0%
Taylor expanded in z around inf 75.9%
associate-*r/75.9%
associate-*r*75.9%
neg-mul-175.9%
*-commutative75.9%
associate-*r/80.9%
distribute-frac-neg80.9%
Simplified80.9%
add-sqr-sqrt38.0%
sqrt-unprod69.3%
sqr-neg69.3%
sqrt-unprod43.3%
add-sqr-sqrt80.9%
associate-*r/75.9%
*-commutative75.9%
associate-/l*79.2%
Applied egg-rr79.2%
associate-/r/80.9%
Applied egg-rr80.9%
if -7.7999999999999997e37 < z < 9.5e7Initial program 95.0%
Simplified99.3%
Taylor expanded in z around 0 97.3%
+-commutative97.3%
associate-*r/97.3%
+-commutative97.3%
distribute-lft-in97.3%
metadata-eval97.3%
neg-mul-197.3%
sub-neg97.3%
Simplified97.3%
if 9.5e7 < z Initial program 84.4%
associate-*l/79.3%
associate-*r/84.3%
Simplified84.3%
Taylor expanded in z around inf 75.4%
associate-*r/75.4%
associate-*r*75.4%
neg-mul-175.4%
*-commutative75.4%
associate-*r/81.9%
distribute-frac-neg81.9%
Simplified81.9%
add-sqr-sqrt41.0%
sqrt-unprod71.9%
sqr-neg71.9%
sqrt-unprod41.2%
add-sqr-sqrt81.9%
associate-*r/75.4%
*-commutative75.4%
associate-/l*84.4%
Applied egg-rr84.4%
div-inv84.4%
clear-num84.4%
*-commutative84.4%
Applied egg-rr84.4%
Final simplification90.6%
NOTE: y should be positive before calling this function (FPCore (x y z) :precision binary64 (if (or (<= x -1.55) (not (<= x 4.0))) (fabs (/ x y)) (fabs (/ 4.0 y))))
y = abs(y);
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.55) || !(x <= 4.0)) {
tmp = fabs((x / y));
} else {
tmp = fabs((4.0 / y));
}
return tmp;
}
NOTE: y should be positive before calling this function
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.55d0)) .or. (.not. (x <= 4.0d0))) then
tmp = abs((x / y))
else
tmp = abs((4.0d0 / y))
end if
code = tmp
end function
y = Math.abs(y);
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.55) || !(x <= 4.0)) {
tmp = Math.abs((x / y));
} else {
tmp = Math.abs((4.0 / y));
}
return tmp;
}
y = abs(y) def code(x, y, z): tmp = 0 if (x <= -1.55) or not (x <= 4.0): tmp = math.fabs((x / y)) else: tmp = math.fabs((4.0 / y)) return tmp
y = abs(y) function code(x, y, z) tmp = 0.0 if ((x <= -1.55) || !(x <= 4.0)) tmp = abs(Float64(x / y)); else tmp = abs(Float64(4.0 / y)); end return tmp end
y = abs(y) function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.55) || ~((x <= 4.0))) tmp = abs((x / y)); else tmp = abs((4.0 / y)); end tmp_2 = tmp; end
NOTE: y should be positive before calling this function code[x_, y_, z_] := If[Or[LessEqual[x, -1.55], N[Not[LessEqual[x, 4.0]], $MachinePrecision]], N[Abs[N[(x / y), $MachinePrecision]], $MachinePrecision], N[Abs[N[(4.0 / y), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y = |y|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.55 \lor \neg \left(x \leq 4\right):\\
\;\;\;\;\left|\frac{x}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{4}{y}\right|\\
\end{array}
\end{array}
if x < -1.55000000000000004 or 4 < x Initial program 90.6%
associate-*l/86.9%
associate-*r/95.6%
Simplified95.6%
Taylor expanded in z around 0 58.5%
associate-*r/58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in x around inf 58.1%
if -1.55000000000000004 < x < 4Initial program 94.1%
associate-*l/99.9%
associate-*r/92.7%
Simplified92.7%
Taylor expanded in x around 0 73.1%
Final simplification64.9%
NOTE: y should be positive before calling this function (FPCore (x y z) :precision binary64 (fabs (/ 4.0 y)))
y = abs(y);
double code(double x, double y, double z) {
return fabs((4.0 / y));
}
NOTE: y should be positive before calling this function
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = abs((4.0d0 / y))
end function
y = Math.abs(y);
public static double code(double x, double y, double z) {
return Math.abs((4.0 / y));
}
y = abs(y) def code(x, y, z): return math.fabs((4.0 / y))
y = abs(y) function code(x, y, z) return abs(Float64(4.0 / y)) end
y = abs(y) function tmp = code(x, y, z) tmp = abs((4.0 / y)); end
NOTE: y should be positive before calling this function code[x_, y_, z_] := N[Abs[N[(4.0 / y), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
y = |y|\\
\\
\left|\frac{4}{y}\right|
\end{array}
Initial program 92.2%
associate-*l/92.8%
associate-*r/94.3%
Simplified94.3%
Taylor expanded in x around 0 35.8%
Final simplification35.8%
herbie shell --seed 2023301
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))