
(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 2e-25) (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 <= 2e-25) {
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 <= 2d-25) 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 <= 2e-25) {
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 <= 2e-25: 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 <= 2e-25) 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 <= 2e-25) 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, 2e-25], 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 2 \cdot 10^{-25}:\\
\;\;\;\;\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 < 2.00000000000000008e-25Initial program 89.9%
associate-*l/89.5%
sub-div96.8%
Applied egg-rr96.8%
if 2.00000000000000008e-25 < y Initial program 93.9%
associate-*l/93.7%
associate-*r/99.8%
clear-num99.7%
un-div-inv99.7%
Applied egg-rr99.7%
Final simplification97.7%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (fabs (* z (/ x y_m)))))
(if (<= x -4.6e-36)
t_0
(if (<= x 1.85e-78)
(fabs (/ 4.0 y_m))
(if (or (<= x 1.1e+17) (not (<= x 3.05e+128))) t_0 (fabs (/ x y_m)))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((z * (x / y_m)));
double tmp;
if (x <= -4.6e-36) {
tmp = t_0;
} else if (x <= 1.85e-78) {
tmp = fabs((4.0 / y_m));
} else if ((x <= 1.1e+17) || !(x <= 3.05e+128)) {
tmp = t_0;
} else {
tmp = fabs((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) :: t_0
real(8) :: tmp
t_0 = abs((z * (x / y_m)))
if (x <= (-4.6d-36)) then
tmp = t_0
else if (x <= 1.85d-78) then
tmp = abs((4.0d0 / y_m))
else if ((x <= 1.1d+17) .or. (.not. (x <= 3.05d+128))) then
tmp = t_0
else
tmp = abs((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 t_0 = Math.abs((z * (x / y_m)));
double tmp;
if (x <= -4.6e-36) {
tmp = t_0;
} else if (x <= 1.85e-78) {
tmp = Math.abs((4.0 / y_m));
} else if ((x <= 1.1e+17) || !(x <= 3.05e+128)) {
tmp = t_0;
} else {
tmp = Math.abs((x / y_m));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((z * (x / y_m))) tmp = 0 if x <= -4.6e-36: tmp = t_0 elif x <= 1.85e-78: tmp = math.fabs((4.0 / y_m)) elif (x <= 1.1e+17) or not (x <= 3.05e+128): tmp = t_0 else: tmp = math.fabs((x / y_m)) return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(z * Float64(x / y_m))) tmp = 0.0 if (x <= -4.6e-36) tmp = t_0; elseif (x <= 1.85e-78) tmp = abs(Float64(4.0 / y_m)); elseif ((x <= 1.1e+17) || !(x <= 3.05e+128)) tmp = t_0; else tmp = abs(Float64(x / y_m)); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) t_0 = abs((z * (x / y_m))); tmp = 0.0; if (x <= -4.6e-36) tmp = t_0; elseif (x <= 1.85e-78) tmp = abs((4.0 / y_m)); elseif ((x <= 1.1e+17) || ~((x <= 3.05e+128))) tmp = t_0; else tmp = abs((x / y_m)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision]
code[x_, y$95$m_, z_] := Block[{t$95$0 = N[Abs[N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -4.6e-36], t$95$0, If[LessEqual[x, 1.85e-78], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision], If[Or[LessEqual[x, 1.1e+17], N[Not[LessEqual[x, 3.05e+128]], $MachinePrecision]], t$95$0, N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;x \leq -4.6 \cdot 10^{-36}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-78}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+17} \lor \neg \left(x \leq 3.05 \cdot 10^{+128}\right):\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x}{y\_m}\right|\\
\end{array}
\end{array}
if x < -4.59999999999999993e-36 or 1.85000000000000003e-78 < x < 1.1e17 or 3.0500000000000001e128 < x Initial program 86.4%
Simplified91.7%
Taylor expanded in z around inf 56.5%
associate-*r/56.5%
neg-mul-156.5%
distribute-lft-neg-in56.5%
*-commutative56.5%
associate-*r/70.9%
Simplified70.9%
clear-num70.8%
un-div-inv69.2%
add-sqr-sqrt38.2%
sqrt-unprod64.3%
sqr-neg64.3%
sqrt-unprod30.9%
add-sqr-sqrt69.2%
Applied egg-rr69.2%
associate-/r/64.4%
associate-*l/56.5%
associate-*r/70.9%
Simplified70.9%
if -4.59999999999999993e-36 < x < 1.85000000000000003e-78Initial program 95.1%
Simplified99.9%
Taylor expanded in x around 0 80.3%
if 1.1e17 < x < 3.0500000000000001e128Initial program 95.4%
Simplified95.7%
Taylor expanded in x around inf 95.9%
mul-1-neg95.9%
associate-/l*99.7%
distribute-rgt-neg-in99.7%
neg-sub099.7%
div099.7%
div-sub99.7%
associate-+l-99.7%
neg-sub099.7%
+-commutative99.7%
unsub-neg99.7%
Simplified99.7%
Taylor expanded in z around 0 65.2%
Final simplification74.6%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (fabs (* z (/ x y_m)))))
(if (<= x -7.5e-37)
t_0
(if (<= x 2e-78)
(fabs (/ 4.0 y_m))
(if (<= x 3e+20)
(fabs (* x (/ z y_m)))
(if (<= x 1.02e+129) (fabs (/ x y_m)) t_0))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((z * (x / y_m)));
double tmp;
if (x <= -7.5e-37) {
tmp = t_0;
} else if (x <= 2e-78) {
tmp = fabs((4.0 / y_m));
} else if (x <= 3e+20) {
tmp = fabs((x * (z / y_m)));
} else if (x <= 1.02e+129) {
tmp = fabs((x / y_m));
} 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) :: tmp
t_0 = abs((z * (x / y_m)))
if (x <= (-7.5d-37)) then
tmp = t_0
else if (x <= 2d-78) then
tmp = abs((4.0d0 / y_m))
else if (x <= 3d+20) then
tmp = abs((x * (z / y_m)))
else if (x <= 1.02d+129) then
tmp = abs((x / y_m))
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((z * (x / y_m)));
double tmp;
if (x <= -7.5e-37) {
tmp = t_0;
} else if (x <= 2e-78) {
tmp = Math.abs((4.0 / y_m));
} else if (x <= 3e+20) {
tmp = Math.abs((x * (z / y_m)));
} else if (x <= 1.02e+129) {
tmp = Math.abs((x / y_m));
} else {
tmp = t_0;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((z * (x / y_m))) tmp = 0 if x <= -7.5e-37: tmp = t_0 elif x <= 2e-78: tmp = math.fabs((4.0 / y_m)) elif x <= 3e+20: tmp = math.fabs((x * (z / y_m))) elif x <= 1.02e+129: tmp = math.fabs((x / y_m)) else: tmp = t_0 return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(z * Float64(x / y_m))) tmp = 0.0 if (x <= -7.5e-37) tmp = t_0; elseif (x <= 2e-78) tmp = abs(Float64(4.0 / y_m)); elseif (x <= 3e+20) tmp = abs(Float64(x * Float64(z / y_m))); elseif (x <= 1.02e+129) tmp = abs(Float64(x / y_m)); else tmp = t_0; end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) t_0 = abs((z * (x / y_m))); tmp = 0.0; if (x <= -7.5e-37) tmp = t_0; elseif (x <= 2e-78) tmp = abs((4.0 / y_m)); elseif (x <= 3e+20) tmp = abs((x * (z / y_m))); elseif (x <= 1.02e+129) tmp = abs((x / y_m)); 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[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -7.5e-37], t$95$0, If[LessEqual[x, 2e-78], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 3e+20], N[Abs[N[(x * N[(z / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 1.02e+129], N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;x \leq -7.5 \cdot 10^{-37}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-78}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+20}:\\
\;\;\;\;\left|x \cdot \frac{z}{y\_m}\right|\\
\mathbf{elif}\;x \leq 1.02 \cdot 10^{+129}:\\
\;\;\;\;\left|\frac{x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -7.5000000000000004e-37 or 1.01999999999999996e129 < x Initial program 85.0%
Simplified91.3%
Taylor expanded in z around inf 55.9%
associate-*r/55.9%
neg-mul-155.9%
distribute-lft-neg-in55.9%
*-commutative55.9%
associate-*r/72.7%
Simplified72.7%
clear-num72.7%
un-div-inv70.8%
add-sqr-sqrt44.6%
sqrt-unprod65.1%
sqr-neg65.1%
sqrt-unprod26.1%
add-sqr-sqrt70.8%
Applied egg-rr70.8%
associate-/r/64.2%
associate-*l/55.9%
associate-*r/72.7%
Simplified72.7%
if -7.5000000000000004e-37 < x < 2e-78Initial program 95.1%
Simplified99.9%
Taylor expanded in x around 0 80.3%
if 2e-78 < x < 3e20Initial program 94.3%
Simplified94.5%
Taylor expanded in z around inf 60.1%
associate-*r/60.1%
neg-mul-160.1%
distribute-lft-neg-in60.1%
*-commutative60.1%
associate-*r/59.9%
Simplified59.9%
clear-num59.9%
un-div-inv59.9%
add-sqr-sqrt0.0%
sqrt-unprod59.9%
sqr-neg59.9%
sqrt-unprod59.6%
add-sqr-sqrt59.9%
Applied egg-rr59.9%
associate-/r/65.4%
Applied egg-rr65.4%
if 3e20 < x < 1.01999999999999996e129Initial program 95.4%
Simplified95.7%
Taylor expanded in x around inf 95.9%
mul-1-neg95.9%
associate-/l*99.7%
distribute-rgt-neg-in99.7%
neg-sub099.7%
div099.7%
div-sub99.7%
associate-+l-99.7%
neg-sub099.7%
+-commutative99.7%
unsub-neg99.7%
Simplified99.7%
Taylor expanded in z around 0 65.2%
Final simplification75.0%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (fabs (* z (/ x y_m)))))
(if (<= x -5.5e-36)
t_0
(if (<= x 1.85e-78)
(fabs (/ 4.0 y_m))
(if (<= x 1.4e+19)
(fabs (/ x (/ y_m z)))
(if (<= x 4.2e+128) (fabs (/ x y_m)) t_0))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((z * (x / y_m)));
double tmp;
if (x <= -5.5e-36) {
tmp = t_0;
} else if (x <= 1.85e-78) {
tmp = fabs((4.0 / y_m));
} else if (x <= 1.4e+19) {
tmp = fabs((x / (y_m / z)));
} else if (x <= 4.2e+128) {
tmp = fabs((x / y_m));
} 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) :: tmp
t_0 = abs((z * (x / y_m)))
if (x <= (-5.5d-36)) then
tmp = t_0
else if (x <= 1.85d-78) then
tmp = abs((4.0d0 / y_m))
else if (x <= 1.4d+19) then
tmp = abs((x / (y_m / z)))
else if (x <= 4.2d+128) then
tmp = abs((x / y_m))
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((z * (x / y_m)));
double tmp;
if (x <= -5.5e-36) {
tmp = t_0;
} else if (x <= 1.85e-78) {
tmp = Math.abs((4.0 / y_m));
} else if (x <= 1.4e+19) {
tmp = Math.abs((x / (y_m / z)));
} else if (x <= 4.2e+128) {
tmp = Math.abs((x / y_m));
} else {
tmp = t_0;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((z * (x / y_m))) tmp = 0 if x <= -5.5e-36: tmp = t_0 elif x <= 1.85e-78: tmp = math.fabs((4.0 / y_m)) elif x <= 1.4e+19: tmp = math.fabs((x / (y_m / z))) elif x <= 4.2e+128: tmp = math.fabs((x / y_m)) else: tmp = t_0 return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(z * Float64(x / y_m))) tmp = 0.0 if (x <= -5.5e-36) tmp = t_0; elseif (x <= 1.85e-78) tmp = abs(Float64(4.0 / y_m)); elseif (x <= 1.4e+19) tmp = abs(Float64(x / Float64(y_m / z))); elseif (x <= 4.2e+128) tmp = abs(Float64(x / y_m)); else tmp = t_0; end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) t_0 = abs((z * (x / y_m))); tmp = 0.0; if (x <= -5.5e-36) tmp = t_0; elseif (x <= 1.85e-78) tmp = abs((4.0 / y_m)); elseif (x <= 1.4e+19) tmp = abs((x / (y_m / z))); elseif (x <= 4.2e+128) tmp = abs((x / y_m)); 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[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[x, -5.5e-36], t$95$0, If[LessEqual[x, 1.85e-78], N[Abs[N[(4.0 / y$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 1.4e+19], N[Abs[N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 4.2e+128], N[Abs[N[(x / y$95$m), $MachinePrecision]], $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;x \leq -5.5 \cdot 10^{-36}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-78}:\\
\;\;\;\;\left|\frac{4}{y\_m}\right|\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+19}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}}\right|\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+128}:\\
\;\;\;\;\left|\frac{x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.49999999999999984e-36 or 4.1999999999999999e128 < x Initial program 85.0%
Simplified91.3%
Taylor expanded in z around inf 55.9%
associate-*r/55.9%
neg-mul-155.9%
distribute-lft-neg-in55.9%
*-commutative55.9%
associate-*r/72.7%
Simplified72.7%
clear-num72.7%
un-div-inv70.8%
add-sqr-sqrt44.6%
sqrt-unprod65.1%
sqr-neg65.1%
sqrt-unprod26.1%
add-sqr-sqrt70.8%
Applied egg-rr70.8%
associate-/r/64.2%
associate-*l/55.9%
associate-*r/72.7%
Simplified72.7%
if -5.49999999999999984e-36 < x < 1.85000000000000003e-78Initial program 95.1%
Simplified99.9%
Taylor expanded in x around 0 80.3%
if 1.85000000000000003e-78 < x < 1.4e19Initial program 94.3%
Simplified94.5%
Taylor expanded in z around inf 60.1%
associate-*r/60.1%
neg-mul-160.1%
distribute-lft-neg-in60.1%
*-commutative60.1%
associate-*r/59.9%
Simplified59.9%
clear-num59.9%
un-div-inv59.9%
add-sqr-sqrt0.0%
sqrt-unprod59.9%
sqr-neg59.9%
sqrt-unprod59.6%
add-sqr-sqrt59.9%
Applied egg-rr59.9%
associate-/r/65.4%
Applied egg-rr65.4%
*-commutative65.4%
clear-num65.3%
un-div-inv65.4%
Applied egg-rr65.4%
if 1.4e19 < x < 4.1999999999999999e128Initial program 95.4%
Simplified95.7%
Taylor expanded in x around inf 95.9%
mul-1-neg95.9%
associate-/l*99.7%
distribute-rgt-neg-in99.7%
neg-sub099.7%
div099.7%
div-sub99.7%
associate-+l-99.7%
neg-sub099.7%
+-commutative99.7%
unsub-neg99.7%
Simplified99.7%
Taylor expanded in z around 0 65.2%
Final simplification75.0%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(if (<= z -1e+27)
(fabs (/ x (/ y_m z)))
(if (<= z 5.5e-7)
(fabs (/ (- -4.0 x) y_m))
(fabs (* x (/ (- 1.0 z) y_m))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (z <= -1e+27) {
tmp = fabs((x / (y_m / z)));
} else if (z <= 5.5e-7) {
tmp = fabs(((-4.0 - x) / y_m));
} else {
tmp = fabs((x * ((1.0 - z) / 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 <= (-1d+27)) then
tmp = abs((x / (y_m / z)))
else if (z <= 5.5d-7) then
tmp = abs((((-4.0d0) - x) / y_m))
else
tmp = abs((x * ((1.0d0 - z) / 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 <= -1e+27) {
tmp = Math.abs((x / (y_m / z)));
} else if (z <= 5.5e-7) {
tmp = Math.abs(((-4.0 - x) / y_m));
} else {
tmp = Math.abs((x * ((1.0 - z) / y_m)));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if z <= -1e+27: tmp = math.fabs((x / (y_m / z))) elif z <= 5.5e-7: tmp = math.fabs(((-4.0 - x) / y_m)) else: tmp = math.fabs((x * ((1.0 - z) / y_m))) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (z <= -1e+27) tmp = abs(Float64(x / Float64(y_m / z))); elseif (z <= 5.5e-7) tmp = abs(Float64(Float64(-4.0 - x) / y_m)); else tmp = abs(Float64(x * Float64(Float64(1.0 - z) / y_m))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (z <= -1e+27) tmp = abs((x / (y_m / z))); elseif (z <= 5.5e-7) tmp = abs(((-4.0 - x) / y_m)); else tmp = abs((x * ((1.0 - z) / y_m))); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[z, -1e+27], N[Abs[N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[z, 5.5e-7], N[Abs[N[(N[(-4.0 - x), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(x * N[(N[(1.0 - z), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+27}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}}\right|\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-7}:\\
\;\;\;\;\left|\frac{-4 - x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|x \cdot \frac{1 - z}{y\_m}\right|\\
\end{array}
\end{array}
if z < -1e27Initial program 95.6%
Simplified95.3%
Taylor expanded in z around inf 73.9%
associate-*r/73.9%
neg-mul-173.9%
distribute-lft-neg-in73.9%
*-commutative73.9%
associate-*r/75.1%
Simplified75.1%
clear-num75.1%
un-div-inv75.1%
add-sqr-sqrt42.4%
sqrt-unprod63.0%
sqr-neg63.0%
sqrt-unprod32.6%
add-sqr-sqrt75.1%
Applied egg-rr75.1%
associate-/r/75.7%
Applied egg-rr75.7%
*-commutative75.7%
clear-num75.7%
un-div-inv75.8%
Applied egg-rr75.8%
if -1e27 < z < 5.5000000000000003e-7Initial program 94.5%
fabs-sub94.5%
associate-*l/96.9%
associate-*r/96.9%
fmm-def100.0%
distribute-neg-frac100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
associate-*r/100.0%
distribute-lft-in100.0%
metadata-eval100.0%
neg-mul-1100.0%
sub-neg100.0%
Simplified100.0%
if 5.5000000000000003e-7 < z Initial program 79.8%
Simplified87.9%
Taylor expanded in x around inf 68.8%
mul-1-neg68.8%
associate-/l*76.4%
distribute-rgt-neg-in76.4%
neg-sub076.4%
div076.4%
div-sub76.4%
associate-+l-76.4%
neg-sub076.4%
+-commutative76.4%
unsub-neg76.4%
Simplified76.4%
Final simplification88.0%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(if (<= z -1.6e+25)
(fabs (/ x (/ y_m z)))
(if (<= z 5.5e-7)
(fabs (/ (- -4.0 x) y_m))
(fabs (/ x (/ y_m (- 1.0 z)))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (z <= -1.6e+25) {
tmp = fabs((x / (y_m / z)));
} else if (z <= 5.5e-7) {
tmp = fabs(((-4.0 - x) / y_m));
} else {
tmp = fabs((x / (y_m / (1.0 - 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 (z <= (-1.6d+25)) then
tmp = abs((x / (y_m / z)))
else if (z <= 5.5d-7) then
tmp = abs((((-4.0d0) - x) / y_m))
else
tmp = abs((x / (y_m / (1.0d0 - 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 (z <= -1.6e+25) {
tmp = Math.abs((x / (y_m / z)));
} else if (z <= 5.5e-7) {
tmp = Math.abs(((-4.0 - x) / y_m));
} else {
tmp = Math.abs((x / (y_m / (1.0 - z))));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if z <= -1.6e+25: tmp = math.fabs((x / (y_m / z))) elif z <= 5.5e-7: tmp = math.fabs(((-4.0 - x) / y_m)) else: tmp = math.fabs((x / (y_m / (1.0 - z)))) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (z <= -1.6e+25) tmp = abs(Float64(x / Float64(y_m / z))); elseif (z <= 5.5e-7) tmp = abs(Float64(Float64(-4.0 - x) / y_m)); else tmp = abs(Float64(x / Float64(y_m / Float64(1.0 - z)))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (z <= -1.6e+25) tmp = abs((x / (y_m / z))); elseif (z <= 5.5e-7) tmp = abs(((-4.0 - x) / y_m)); else tmp = abs((x / (y_m / (1.0 - z)))); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[z, -1.6e+25], N[Abs[N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[z, 5.5e-7], N[Abs[N[(N[(-4.0 - x), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision], N[Abs[N[(x / N[(y$95$m / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+25}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}}\right|\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-7}:\\
\;\;\;\;\left|\frac{-4 - x}{y\_m}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{1 - z}}\right|\\
\end{array}
\end{array}
if z < -1.6e25Initial program 95.6%
Simplified95.3%
Taylor expanded in z around inf 73.9%
associate-*r/73.9%
neg-mul-173.9%
distribute-lft-neg-in73.9%
*-commutative73.9%
associate-*r/75.1%
Simplified75.1%
clear-num75.1%
un-div-inv75.1%
add-sqr-sqrt42.4%
sqrt-unprod63.0%
sqr-neg63.0%
sqrt-unprod32.6%
add-sqr-sqrt75.1%
Applied egg-rr75.1%
associate-/r/75.7%
Applied egg-rr75.7%
*-commutative75.7%
clear-num75.7%
un-div-inv75.8%
Applied egg-rr75.8%
if -1.6e25 < z < 5.5000000000000003e-7Initial program 94.5%
fabs-sub94.5%
associate-*l/96.9%
associate-*r/96.9%
fmm-def100.0%
distribute-neg-frac100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
associate-*r/100.0%
distribute-lft-in100.0%
metadata-eval100.0%
neg-mul-1100.0%
sub-neg100.0%
Simplified100.0%
if 5.5000000000000003e-7 < z Initial program 79.8%
Simplified87.9%
Taylor expanded in x around inf 68.8%
mul-1-neg68.8%
associate-/l*76.4%
distribute-rgt-neg-in76.4%
neg-sub076.4%
div076.4%
div-sub76.4%
associate-+l-76.4%
neg-sub076.4%
+-commutative76.4%
unsub-neg76.4%
Simplified76.4%
clear-num76.4%
un-div-inv76.4%
Applied egg-rr76.4%
Final simplification88.0%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (or (<= z -1.45e+24) (not (<= z 1.25e+31))) (fabs (/ x (/ y_m z))) (fabs (/ (- -4.0 x) y_m))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if ((z <= -1.45e+24) || !(z <= 1.25e+31)) {
tmp = fabs((x / (y_m / z)));
} else {
tmp = fabs(((-4.0 - 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 <= (-1.45d+24)) .or. (.not. (z <= 1.25d+31))) then
tmp = abs((x / (y_m / z)))
else
tmp = abs((((-4.0d0) - 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 <= -1.45e+24) || !(z <= 1.25e+31)) {
tmp = Math.abs((x / (y_m / z)));
} else {
tmp = Math.abs(((-4.0 - x) / y_m));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if (z <= -1.45e+24) or not (z <= 1.25e+31): tmp = math.fabs((x / (y_m / z))) else: tmp = math.fabs(((-4.0 - x) / y_m)) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if ((z <= -1.45e+24) || !(z <= 1.25e+31)) tmp = abs(Float64(x / Float64(y_m / z))); else tmp = abs(Float64(Float64(-4.0 - x) / y_m)); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if ((z <= -1.45e+24) || ~((z <= 1.25e+31))) tmp = abs((x / (y_m / z))); else tmp = abs(((-4.0 - x) / y_m)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[Or[LessEqual[z, -1.45e+24], N[Not[LessEqual[z, 1.25e+31]], $MachinePrecision]], N[Abs[N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(-4.0 - x), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+24} \lor \neg \left(z \leq 1.25 \cdot 10^{+31}\right):\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{-4 - x}{y\_m}\right|\\
\end{array}
\end{array}
if z < -1.4499999999999999e24 or 1.25000000000000007e31 < z Initial program 88.5%
Simplified91.0%
Taylor expanded in z around inf 71.3%
associate-*r/71.3%
neg-mul-171.3%
distribute-lft-neg-in71.3%
*-commutative71.3%
associate-*r/75.0%
Simplified75.0%
clear-num75.0%
un-div-inv75.0%
add-sqr-sqrt41.6%
sqrt-unprod63.9%
sqr-neg63.9%
sqrt-unprod33.3%
add-sqr-sqrt75.0%
Applied egg-rr75.0%
associate-/r/76.3%
Applied egg-rr76.3%
*-commutative76.3%
clear-num76.3%
un-div-inv76.4%
Applied egg-rr76.4%
if -1.4499999999999999e24 < z < 1.25000000000000007e31Initial program 93.4%
fabs-sub93.4%
associate-*l/95.5%
associate-*r/95.6%
fmm-def99.9%
distribute-neg-frac99.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 97.7%
associate-*r/97.7%
distribute-lft-in97.7%
metadata-eval97.7%
neg-mul-197.7%
sub-neg97.7%
Simplified97.7%
Final simplification87.7%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -6.2e+115) (fabs (/ x (/ y_m (- 1.0 z)))) (fabs (/ (- (+ x 4.0) (* x z)) y_m))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -6.2e+115) {
tmp = fabs((x / (y_m / (1.0 - z))));
} else {
tmp = fabs((((x + 4.0) - (x * z)) / 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 <= (-6.2d+115)) then
tmp = abs((x / (y_m / (1.0d0 - z))))
else
tmp = abs((((x + 4.0d0) - (x * z)) / 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 <= -6.2e+115) {
tmp = Math.abs((x / (y_m / (1.0 - z))));
} else {
tmp = Math.abs((((x + 4.0) - (x * z)) / y_m));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -6.2e+115: tmp = math.fabs((x / (y_m / (1.0 - z)))) else: tmp = math.fabs((((x + 4.0) - (x * z)) / y_m)) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -6.2e+115) tmp = abs(Float64(x / Float64(y_m / Float64(1.0 - z)))); else tmp = abs(Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y_m)); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (x <= -6.2e+115) tmp = abs((x / (y_m / (1.0 - z)))); else tmp = abs((((x + 4.0) - (x * z)) / y_m)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, -6.2e+115], N[Abs[N[(x / N[(y$95$m / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{+115}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{1 - z}}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y\_m}\right|\\
\end{array}
\end{array}
if x < -6.2000000000000001e115Initial program 74.2%
Simplified80.9%
Taylor expanded in x around inf 81.0%
mul-1-neg81.0%
associate-/l*99.7%
distribute-rgt-neg-in99.7%
neg-sub099.7%
div099.7%
div-sub99.7%
associate-+l-99.7%
neg-sub099.7%
+-commutative99.7%
unsub-neg99.7%
Simplified99.7%
clear-num99.7%
un-div-inv99.9%
Applied egg-rr99.9%
if -6.2000000000000001e115 < x Initial program 93.8%
associate-*l/95.0%
sub-div98.2%
Applied egg-rr98.2%
Final simplification98.4%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (or (<= x -10.5) (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 <= -10.5) || !(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 <= (-10.5d0)) .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 <= -10.5) || !(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 <= -10.5) 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 <= -10.5) || !(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 <= -10.5) || ~((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, -10.5], 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 -10.5 \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 < -10.5 or 4 < x Initial program 86.6%
Simplified91.2%
Taylor expanded in x around inf 89.4%
mul-1-neg89.4%
associate-/l*97.8%
distribute-rgt-neg-in97.8%
neg-sub097.8%
div097.8%
div-sub97.8%
associate-+l-97.8%
neg-sub097.8%
+-commutative97.8%
unsub-neg97.8%
Simplified97.8%
Taylor expanded in z around 0 59.2%
if -10.5 < x < 4Initial program 95.1%
Simplified99.8%
Taylor expanded in x around 0 73.4%
Final simplification66.7%
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 91.1%
Simplified95.7%
Taylor expanded in x around 0 41.2%
Final simplification41.2%
herbie shell --seed 2024112
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))