
(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 15 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 1.15e-46) (fabs (* (/ -1.0 y_m) (fma x z (- -4.0 x)))) (fabs (- (/ x (/ y_m z)) (/ (+ x 4.0) y_m)))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (y_m <= 1.15e-46) {
tmp = fabs(((-1.0 / y_m) * fma(x, z, (-4.0 - x))));
} else {
tmp = fabs(((x / (y_m / z)) - ((x + 4.0) / y_m)));
}
return tmp;
}
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (y_m <= 1.15e-46) tmp = abs(Float64(Float64(-1.0 / y_m) * fma(x, z, Float64(-4.0 - x)))); else tmp = abs(Float64(Float64(x / Float64(y_m / z)) - Float64(Float64(x + 4.0) / y_m))); end return tmp end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[y$95$m, 1.15e-46], N[Abs[N[(N[(-1.0 / y$95$m), $MachinePrecision] * N[(x * z + N[(-4.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision] - N[(N[(x + 4.0), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;y\_m \leq 1.15 \cdot 10^{-46}:\\
\;\;\;\;\left|\frac{-1}{y\_m} \cdot \mathsf{fma}\left(x, z, -4 - x\right)\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}} - \frac{x + 4}{y\_m}\right|\\
\end{array}
\end{array}
if y < 1.15e-46Initial program 90.8%
Simplified97.2%
if 1.15e-46 < y Initial program 95.4%
associate-*l/91.7%
associate-*r/99.8%
clear-num99.7%
un-div-inv99.9%
Applied egg-rr99.9%
Final simplification98.0%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(let* ((t_0 (/ (+ x 4.0) y_m)) (t_1 (fabs (- t_0 (* z (/ x y_m))))))
(if (<= t_1 5e+31)
(fabs (- (/ x (/ y_m z)) t_0))
(if (<= t_1 INFINITY) t_1 (/ x (/ y_m (+ -1.0 z)))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = (x + 4.0) / y_m;
double t_1 = fabs((t_0 - (z * (x / y_m))));
double tmp;
if (t_1 <= 5e+31) {
tmp = fabs(((x / (y_m / z)) - t_0));
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x / (y_m / (-1.0 + z));
}
return tmp;
}
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double t_0 = (x + 4.0) / y_m;
double t_1 = Math.abs((t_0 - (z * (x / y_m))));
double tmp;
if (t_1 <= 5e+31) {
tmp = Math.abs(((x / (y_m / z)) - t_0));
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x / (y_m / (-1.0 + z));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = (x + 4.0) / y_m t_1 = math.fabs((t_0 - (z * (x / y_m)))) tmp = 0 if t_1 <= 5e+31: tmp = math.fabs(((x / (y_m / z)) - t_0)) elif t_1 <= math.inf: tmp = t_1 else: tmp = x / (y_m / (-1.0 + z)) return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = Float64(Float64(x + 4.0) / y_m) t_1 = abs(Float64(t_0 - Float64(z * Float64(x / y_m)))) tmp = 0.0 if (t_1 <= 5e+31) tmp = abs(Float64(Float64(x / Float64(y_m / z)) - t_0)); elseif (t_1 <= Inf) tmp = t_1; else tmp = 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) t_0 = (x + 4.0) / y_m; t_1 = abs((t_0 - (z * (x / y_m)))); tmp = 0.0; if (t_1 <= 5e+31) tmp = abs(((x / (y_m / z)) - t_0)); elseif (t_1 <= Inf) tmp = t_1; else tmp = x / (y_m / (-1.0 + z)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision]
code[x_, y$95$m_, z_] := Block[{t$95$0 = N[(N[(x + 4.0), $MachinePrecision] / y$95$m), $MachinePrecision]}, Block[{t$95$1 = N[Abs[N[(t$95$0 - N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 5e+31], N[Abs[N[(N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$1, N[(x / N[(y$95$m / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \frac{x + 4}{y\_m}\\
t_1 := \left|t\_0 - z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+31}:\\
\;\;\;\;\left|\frac{x}{\frac{y\_m}{z}} - t\_0\right|\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y\_m}{-1 + z}}\\
\end{array}
\end{array}
if (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) < 5.00000000000000027e31Initial program 90.8%
associate-*l/99.9%
associate-*r/99.9%
clear-num99.9%
un-div-inv99.9%
Applied egg-rr99.9%
if 5.00000000000000027e31 < (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) < +inf.0Initial program 99.9%
if +inf.0 < (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) Initial program 0.0%
fabs-sub0.0%
associate-*l/36.4%
associate-*r/36.4%
fma-neg54.5%
distribute-neg-frac54.5%
+-commutative54.5%
distribute-neg-in54.5%
unsub-neg54.5%
metadata-eval54.5%
Simplified54.5%
add-sqr-sqrt36.4%
fabs-sqr36.4%
add-sqr-sqrt36.4%
fma-undefine18.2%
associate-*r/18.2%
associate-*l/0.0%
div-inv0.0%
sub-neg0.0%
metadata-eval0.0%
distribute-neg-in0.0%
+-commutative0.0%
cancel-sign-sub-inv0.0%
div-inv0.0%
associate-*l/18.2%
sub-div63.6%
Applied egg-rr63.6%
Taylor expanded in x around inf 63.6%
associate-/l*63.6%
sub-neg63.6%
metadata-eval63.6%
Simplified63.6%
clear-num63.6%
un-div-inv63.6%
Applied egg-rr63.6%
Final simplification98.4%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (let* ((t_0 (fabs (- (/ (+ x 4.0) y_m) (* z (/ x y_m)))))) (if (<= t_0 INFINITY) t_0 (/ x (/ y_m (+ -1.0 z))))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double t_0 = fabs((((x + 4.0) / y_m) - (z * (x / y_m))));
double tmp;
if (t_0 <= ((double) INFINITY)) {
tmp = t_0;
} else {
tmp = x / (y_m / (-1.0 + z));
}
return tmp;
}
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
double t_0 = Math.abs((((x + 4.0) / y_m) - (z * (x / y_m))));
double tmp;
if (t_0 <= Double.POSITIVE_INFINITY) {
tmp = t_0;
} else {
tmp = x / (y_m / (-1.0 + z));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): t_0 = math.fabs((((x + 4.0) / y_m) - (z * (x / y_m)))) tmp = 0 if t_0 <= math.inf: tmp = t_0 else: tmp = x / (y_m / (-1.0 + z)) return tmp
y_m = abs(y) function code(x, y_m, z) t_0 = abs(Float64(Float64(Float64(x + 4.0) / y_m) - Float64(z * Float64(x / y_m)))) tmp = 0.0 if (t_0 <= Inf) tmp = t_0; else tmp = 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) t_0 = abs((((x + 4.0) / y_m) - (z * (x / y_m)))); tmp = 0.0; if (t_0 <= Inf) tmp = t_0; else tmp = x / (y_m / (-1.0 + z)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision]
code[x_, y$95$m_, z_] := Block[{t$95$0 = N[Abs[N[(N[(N[(x + 4.0), $MachinePrecision] / y$95$m), $MachinePrecision] - N[(z * N[(x / y$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$0, Infinity], t$95$0, N[(x / N[(y$95$m / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
t_0 := \left|\frac{x + 4}{y\_m} - z \cdot \frac{x}{y\_m}\right|\\
\mathbf{if}\;t\_0 \leq \infty:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{y\_m}{-1 + z}}\\
\end{array}
\end{array}
if (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) < +inf.0Initial program 96.4%
if +inf.0 < (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) Initial program 0.0%
fabs-sub0.0%
associate-*l/36.4%
associate-*r/36.4%
fma-neg54.5%
distribute-neg-frac54.5%
+-commutative54.5%
distribute-neg-in54.5%
unsub-neg54.5%
metadata-eval54.5%
Simplified54.5%
add-sqr-sqrt36.4%
fabs-sqr36.4%
add-sqr-sqrt36.4%
fma-undefine18.2%
associate-*r/18.2%
associate-*l/0.0%
div-inv0.0%
sub-neg0.0%
metadata-eval0.0%
distribute-neg-in0.0%
+-commutative0.0%
cancel-sign-sub-inv0.0%
div-inv0.0%
associate-*l/18.2%
sub-div63.6%
Applied egg-rr63.6%
Taylor expanded in x around inf 63.6%
associate-/l*63.6%
sub-neg63.6%
metadata-eval63.6%
Simplified63.6%
clear-num63.6%
un-div-inv63.6%
Applied egg-rr63.6%
Final simplification95.0%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (or (<= x -7.5e-44) (not (<= x 2.75e-39))) (fabs (- (/ x y_m) (/ x (/ y_m z)))) (/ (- (+ x 4.0) (* x z)) y_m)))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if ((x <= -7.5e-44) || !(x <= 2.75e-39)) {
tmp = fabs(((x / y_m) - (x / (y_m / z))));
} else {
tmp = ((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 <= (-7.5d-44)) .or. (.not. (x <= 2.75d-39))) then
tmp = abs(((x / y_m) - (x / (y_m / z))))
else
tmp = ((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 <= -7.5e-44) || !(x <= 2.75e-39)) {
tmp = Math.abs(((x / y_m) - (x / (y_m / z))));
} else {
tmp = ((x + 4.0) - (x * z)) / y_m;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if (x <= -7.5e-44) or not (x <= 2.75e-39): tmp = math.fabs(((x / y_m) - (x / (y_m / z)))) else: tmp = ((x + 4.0) - (x * z)) / y_m return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if ((x <= -7.5e-44) || !(x <= 2.75e-39)) tmp = abs(Float64(Float64(x / y_m) - Float64(x / Float64(y_m / z)))); else tmp = 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 <= -7.5e-44) || ~((x <= 2.75e-39))) tmp = abs(((x / y_m) - (x / (y_m / z)))); else tmp = ((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[Or[LessEqual[x, -7.5e-44], N[Not[LessEqual[x, 2.75e-39]], $MachinePrecision]], N[Abs[N[(N[(x / y$95$m), $MachinePrecision] - N[(x / N[(y$95$m / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{-44} \lor \neg \left(x \leq 2.75 \cdot 10^{-39}\right):\\
\;\;\;\;\left|\frac{x}{y\_m} - \frac{x}{\frac{y\_m}{z}}\right|\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + 4\right) - x \cdot z}{y\_m}\\
\end{array}
\end{array}
if x < -7.50000000000000008e-44 or 2.75000000000000009e-39 < x Initial program 91.5%
associate-*l/86.1%
associate-*r/94.5%
clear-num94.5%
un-div-inv94.6%
Applied egg-rr94.6%
Taylor expanded in x around inf 89.2%
if -7.50000000000000008e-44 < x < 2.75000000000000009e-39Initial program 93.1%
fabs-sub93.1%
associate-*l/99.9%
associate-*r/89.4%
fma-neg89.4%
distribute-neg-frac89.4%
+-commutative89.4%
distribute-neg-in89.4%
unsub-neg89.4%
metadata-eval89.4%
Simplified89.4%
fma-undefine89.4%
associate-*r/99.9%
associate-*l/93.1%
div-inv93.1%
sub-neg93.1%
metadata-eval93.1%
distribute-neg-in93.1%
+-commutative93.1%
cancel-sign-sub-inv93.1%
div-inv93.1%
fabs-sub93.1%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt53.3%
associate-*l/58.1%
sub-div58.1%
Applied egg-rr58.1%
Final simplification74.2%
y_m = (fabs.f64 y)
(FPCore (x y_m z)
:precision binary64
(if (<= x -1.1e-43)
(/ x (/ y_m (+ -1.0 z)))
(if (<= x 1e+31)
(/ (- (+ x 4.0) (* x z)) y_m)
(- (/ x y_m) (/ z (/ y_m x))))))y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -1.1e-43) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 1e+31) {
tmp = ((x + 4.0) - (x * z)) / y_m;
} else {
tmp = (x / y_m) - (z / (y_m / x));
}
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.1d-43)) then
tmp = x / (y_m / ((-1.0d0) + z))
else if (x <= 1d+31) then
tmp = ((x + 4.0d0) - (x * z)) / y_m
else
tmp = (x / y_m) - (z / (y_m / x))
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.1e-43) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 1e+31) {
tmp = ((x + 4.0) - (x * z)) / y_m;
} else {
tmp = (x / y_m) - (z / (y_m / x));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -1.1e-43: tmp = x / (y_m / (-1.0 + z)) elif x <= 1e+31: tmp = ((x + 4.0) - (x * z)) / y_m else: tmp = (x / y_m) - (z / (y_m / x)) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -1.1e-43) tmp = Float64(x / Float64(y_m / Float64(-1.0 + z))); elseif (x <= 1e+31) tmp = Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y_m); else tmp = Float64(Float64(x / y_m) - Float64(z / Float64(y_m / x))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (x <= -1.1e-43) tmp = x / (y_m / (-1.0 + z)); elseif (x <= 1e+31) tmp = ((x + 4.0) - (x * z)) / y_m; else tmp = (x / y_m) - (z / (y_m / x)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, -1.1e-43], N[(x / N[(y$95$m / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+31], N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision], N[(N[(x / y$95$m), $MachinePrecision] - N[(z / N[(y$95$m / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{-43}:\\
\;\;\;\;\frac{x}{\frac{y\_m}{-1 + z}}\\
\mathbf{elif}\;x \leq 10^{+31}:\\
\;\;\;\;\frac{\left(x + 4\right) - x \cdot z}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y\_m} - \frac{z}{\frac{y\_m}{x}}\\
\end{array}
\end{array}
if x < -1.09999999999999999e-43Initial program 91.3%
fabs-sub91.3%
associate-*l/90.5%
associate-*r/96.9%
fma-neg98.3%
distribute-neg-frac98.3%
+-commutative98.3%
distribute-neg-in98.3%
unsub-neg98.3%
metadata-eval98.3%
Simplified98.3%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt52.4%
fma-undefine51.0%
associate-*r/48.4%
associate-*l/48.1%
div-inv48.1%
sub-neg48.1%
metadata-eval48.1%
distribute-neg-in48.1%
+-commutative48.1%
cancel-sign-sub-inv48.1%
div-inv48.1%
associate-*l/48.4%
sub-div51.2%
Applied egg-rr51.2%
Taylor expanded in x around inf 50.0%
associate-/l*52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
clear-num52.5%
un-div-inv52.6%
Applied egg-rr52.6%
if -1.09999999999999999e-43 < x < 9.9999999999999996e30Initial program 94.1%
fabs-sub94.1%
associate-*l/99.9%
associate-*r/90.9%
fma-neg90.9%
distribute-neg-frac90.9%
+-commutative90.9%
distribute-neg-in90.9%
unsub-neg90.9%
metadata-eval90.9%
Simplified90.9%
fma-undefine90.9%
associate-*r/99.9%
associate-*l/94.1%
div-inv94.1%
sub-neg94.1%
metadata-eval94.1%
distribute-neg-in94.1%
+-commutative94.1%
cancel-sign-sub-inv94.1%
div-inv94.1%
fabs-sub94.1%
add-sqr-sqrt51.3%
fabs-sqr51.3%
add-sqr-sqrt52.6%
associate-*l/56.7%
sub-div56.7%
Applied egg-rr56.7%
if 9.9999999999999996e30 < x Initial program 87.3%
fabs-sub87.3%
associate-*l/71.1%
associate-*r/87.4%
fma-neg89.8%
distribute-neg-frac89.8%
+-commutative89.8%
distribute-neg-in89.8%
unsub-neg89.8%
metadata-eval89.8%
Simplified89.8%
fma-undefine87.4%
associate-*r/71.1%
associate-*l/87.3%
div-inv87.1%
sub-neg87.1%
metadata-eval87.1%
distribute-neg-in87.1%
+-commutative87.1%
cancel-sign-sub-inv87.1%
div-inv87.3%
fabs-sub87.3%
add-sqr-sqrt57.1%
fabs-sqr57.1%
add-sqr-sqrt57.6%
associate-*l/48.4%
sub-div53.3%
Applied egg-rr53.3%
Taylor expanded in x around inf 53.4%
*-commutative53.4%
associate-/l*62.6%
sub-neg62.6%
+-commutative62.6%
distribute-rgt1-in57.6%
*-commutative57.6%
distribute-rgt-neg-out57.6%
unsub-neg57.6%
clear-num57.6%
associate-*l/57.7%
*-un-lft-identity57.7%
Applied egg-rr57.7%
Final simplification55.7%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -1.25e-43) (/ x (/ y_m (+ -1.0 z))) (if (<= x 4.7) (/ (- 4.0 (* x z)) y_m) (- (/ x y_m) (/ z (/ y_m x))))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -1.25e-43) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 4.7) {
tmp = (4.0 - (x * z)) / y_m;
} else {
tmp = (x / y_m) - (z / (y_m / x));
}
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.25d-43)) then
tmp = x / (y_m / ((-1.0d0) + z))
else if (x <= 4.7d0) then
tmp = (4.0d0 - (x * z)) / y_m
else
tmp = (x / y_m) - (z / (y_m / x))
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.25e-43) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 4.7) {
tmp = (4.0 - (x * z)) / y_m;
} else {
tmp = (x / y_m) - (z / (y_m / x));
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -1.25e-43: tmp = x / (y_m / (-1.0 + z)) elif x <= 4.7: tmp = (4.0 - (x * z)) / y_m else: tmp = (x / y_m) - (z / (y_m / x)) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -1.25e-43) tmp = Float64(x / Float64(y_m / Float64(-1.0 + z))); elseif (x <= 4.7) tmp = Float64(Float64(4.0 - Float64(x * z)) / y_m); else tmp = Float64(Float64(x / y_m) - Float64(z / Float64(y_m / x))); end return tmp end
y_m = abs(y); function tmp_2 = code(x, y_m, z) tmp = 0.0; if (x <= -1.25e-43) tmp = x / (y_m / (-1.0 + z)); elseif (x <= 4.7) tmp = (4.0 - (x * z)) / y_m; else tmp = (x / y_m) - (z / (y_m / x)); end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, -1.25e-43], N[(x / N[(y$95$m / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.7], N[(N[(4.0 - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision], N[(N[(x / y$95$m), $MachinePrecision] - N[(z / N[(y$95$m / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{-43}:\\
\;\;\;\;\frac{x}{\frac{y\_m}{-1 + z}}\\
\mathbf{elif}\;x \leq 4.7:\\
\;\;\;\;\frac{4 - x \cdot z}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y\_m} - \frac{z}{\frac{y\_m}{x}}\\
\end{array}
\end{array}
if x < -1.25000000000000005e-43Initial program 91.3%
fabs-sub91.3%
associate-*l/90.5%
associate-*r/96.9%
fma-neg98.3%
distribute-neg-frac98.3%
+-commutative98.3%
distribute-neg-in98.3%
unsub-neg98.3%
metadata-eval98.3%
Simplified98.3%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt52.4%
fma-undefine51.0%
associate-*r/48.4%
associate-*l/48.1%
div-inv48.1%
sub-neg48.1%
metadata-eval48.1%
distribute-neg-in48.1%
+-commutative48.1%
cancel-sign-sub-inv48.1%
div-inv48.1%
associate-*l/48.4%
sub-div51.2%
Applied egg-rr51.2%
Taylor expanded in x around inf 50.0%
associate-/l*52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
clear-num52.5%
un-div-inv52.6%
Applied egg-rr52.6%
if -1.25000000000000005e-43 < x < 4.70000000000000018Initial program 93.8%
fabs-sub93.8%
associate-*l/99.9%
associate-*r/90.5%
fma-neg90.5%
distribute-neg-frac90.5%
+-commutative90.5%
distribute-neg-in90.5%
unsub-neg90.5%
metadata-eval90.5%
Simplified90.5%
fma-undefine90.5%
associate-*r/99.9%
associate-*l/93.8%
div-inv93.8%
sub-neg93.8%
metadata-eval93.8%
distribute-neg-in93.8%
+-commutative93.8%
cancel-sign-sub-inv93.8%
div-inv93.8%
fabs-sub93.8%
add-sqr-sqrt51.7%
fabs-sqr51.7%
add-sqr-sqrt53.0%
associate-*l/57.3%
sub-div57.3%
Applied egg-rr57.3%
Taylor expanded in x around 0 56.7%
if 4.70000000000000018 < x Initial program 89.2%
fabs-sub89.2%
associate-*l/75.4%
associate-*r/89.2%
fma-neg91.3%
distribute-neg-frac91.3%
+-commutative91.3%
distribute-neg-in91.3%
unsub-neg91.3%
metadata-eval91.3%
Simplified91.3%
fma-undefine89.2%
associate-*r/75.4%
associate-*l/89.2%
div-inv89.1%
sub-neg89.1%
metadata-eval89.1%
distribute-neg-in89.1%
+-commutative89.1%
cancel-sign-sub-inv89.1%
div-inv89.2%
fabs-sub89.2%
add-sqr-sqrt55.0%
fabs-sqr55.0%
add-sqr-sqrt55.5%
associate-*l/47.6%
sub-div51.9%
Applied egg-rr51.9%
Taylor expanded in x around inf 51.9%
*-commutative51.9%
associate-/l*59.8%
sub-neg59.8%
+-commutative59.8%
distribute-rgt1-in55.5%
*-commutative55.5%
distribute-rgt-neg-out55.5%
unsub-neg55.5%
clear-num55.5%
associate-*l/55.6%
*-un-lft-identity55.6%
Applied egg-rr55.6%
Final simplification55.4%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -4.4e-44) (/ x (/ y_m (+ -1.0 z))) (if (<= x 3900.0) (/ (- 4.0 (* x z)) y_m) (* x (/ (- 1.0 z) y_m)))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -4.4e-44) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 3900.0) {
tmp = (4.0 - (x * z)) / y_m;
} else {
tmp = 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 (x <= (-4.4d-44)) then
tmp = x / (y_m / ((-1.0d0) + z))
else if (x <= 3900.0d0) then
tmp = (4.0d0 - (x * z)) / y_m
else
tmp = 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 (x <= -4.4e-44) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 3900.0) {
tmp = (4.0 - (x * z)) / y_m;
} else {
tmp = x * ((1.0 - z) / y_m);
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -4.4e-44: tmp = x / (y_m / (-1.0 + z)) elif x <= 3900.0: tmp = (4.0 - (x * z)) / y_m else: tmp = x * ((1.0 - z) / y_m) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -4.4e-44) tmp = Float64(x / Float64(y_m / Float64(-1.0 + z))); elseif (x <= 3900.0) tmp = Float64(Float64(4.0 - Float64(x * z)) / y_m); else tmp = 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 (x <= -4.4e-44) tmp = x / (y_m / (-1.0 + z)); elseif (x <= 3900.0) tmp = (4.0 - (x * z)) / y_m; else tmp = 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[x, -4.4e-44], N[(x / N[(y$95$m / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3900.0], N[(N[(4.0 - N[(x * z), $MachinePrecision]), $MachinePrecision] / y$95$m), $MachinePrecision], N[(x * N[(N[(1.0 - z), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.4 \cdot 10^{-44}:\\
\;\;\;\;\frac{x}{\frac{y\_m}{-1 + z}}\\
\mathbf{elif}\;x \leq 3900:\\
\;\;\;\;\frac{4 - x \cdot z}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1 - z}{y\_m}\\
\end{array}
\end{array}
if x < -4.40000000000000024e-44Initial program 91.3%
fabs-sub91.3%
associate-*l/90.5%
associate-*r/96.9%
fma-neg98.3%
distribute-neg-frac98.3%
+-commutative98.3%
distribute-neg-in98.3%
unsub-neg98.3%
metadata-eval98.3%
Simplified98.3%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt52.4%
fma-undefine51.0%
associate-*r/48.4%
associate-*l/48.1%
div-inv48.1%
sub-neg48.1%
metadata-eval48.1%
distribute-neg-in48.1%
+-commutative48.1%
cancel-sign-sub-inv48.1%
div-inv48.1%
associate-*l/48.4%
sub-div51.2%
Applied egg-rr51.2%
Taylor expanded in x around inf 50.0%
associate-/l*52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
clear-num52.5%
un-div-inv52.6%
Applied egg-rr52.6%
if -4.40000000000000024e-44 < x < 3900Initial program 93.8%
fabs-sub93.8%
associate-*l/99.9%
associate-*r/90.5%
fma-neg90.5%
distribute-neg-frac90.5%
+-commutative90.5%
distribute-neg-in90.5%
unsub-neg90.5%
metadata-eval90.5%
Simplified90.5%
fma-undefine90.5%
associate-*r/99.9%
associate-*l/93.8%
div-inv93.8%
sub-neg93.8%
metadata-eval93.8%
distribute-neg-in93.8%
+-commutative93.8%
cancel-sign-sub-inv93.8%
div-inv93.8%
fabs-sub93.8%
add-sqr-sqrt52.1%
fabs-sqr52.1%
add-sqr-sqrt53.3%
associate-*l/57.6%
sub-div57.6%
Applied egg-rr57.6%
Taylor expanded in x around 0 57.0%
if 3900 < x Initial program 89.0%
fabs-sub89.0%
associate-*l/74.9%
associate-*r/89.0%
fma-neg91.1%
distribute-neg-frac91.1%
+-commutative91.1%
distribute-neg-in91.1%
unsub-neg91.1%
metadata-eval91.1%
Simplified91.1%
fma-undefine89.0%
associate-*r/74.9%
associate-*l/89.0%
div-inv88.8%
sub-neg88.8%
metadata-eval88.8%
distribute-neg-in88.8%
+-commutative88.8%
cancel-sign-sub-inv88.8%
div-inv89.0%
fabs-sub89.0%
add-sqr-sqrt54.0%
fabs-sqr54.0%
add-sqr-sqrt54.6%
sub-neg54.6%
distribute-rgt-neg-in54.6%
Applied egg-rr54.6%
Taylor expanded in x around -inf 58.8%
mul-1-neg58.8%
div-sub58.8%
associate-/l*50.9%
sub-neg50.9%
metadata-eval50.9%
distribute-lft-in50.8%
*-commutative50.8%
neg-mul-150.8%
remove-double-neg50.8%
distribute-lft-neg-in50.8%
distribute-rgt-neg-in50.8%
mul-1-neg50.8%
*-rgt-identity50.8%
distribute-lft-in50.9%
neg-mul-150.9%
+-commutative50.9%
associate-*r*50.9%
associate-*r/50.9%
mul-1-neg50.9%
associate-/l*58.8%
distribute-lft-neg-in58.8%
Simplified58.8%
Final simplification56.1%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -3.9e-44) (/ x (/ y_m (+ -1.0 z))) (if (<= x 5.7e-62) (/ 4.0 y_m) (* x (/ (- 1.0 z) y_m)))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -3.9e-44) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 5.7e-62) {
tmp = 4.0 / y_m;
} else {
tmp = 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 (x <= (-3.9d-44)) then
tmp = x / (y_m / ((-1.0d0) + z))
else if (x <= 5.7d-62) then
tmp = 4.0d0 / y_m
else
tmp = 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 (x <= -3.9e-44) {
tmp = x / (y_m / (-1.0 + z));
} else if (x <= 5.7e-62) {
tmp = 4.0 / y_m;
} else {
tmp = x * ((1.0 - z) / y_m);
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -3.9e-44: tmp = x / (y_m / (-1.0 + z)) elif x <= 5.7e-62: tmp = 4.0 / y_m else: tmp = x * ((1.0 - z) / y_m) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -3.9e-44) tmp = Float64(x / Float64(y_m / Float64(-1.0 + z))); elseif (x <= 5.7e-62) tmp = Float64(4.0 / y_m); else tmp = 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 (x <= -3.9e-44) tmp = x / (y_m / (-1.0 + z)); elseif (x <= 5.7e-62) tmp = 4.0 / y_m; else tmp = 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[x, -3.9e-44], N[(x / N[(y$95$m / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.7e-62], N[(4.0 / y$95$m), $MachinePrecision], N[(x * N[(N[(1.0 - z), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.9 \cdot 10^{-44}:\\
\;\;\;\;\frac{x}{\frac{y\_m}{-1 + z}}\\
\mathbf{elif}\;x \leq 5.7 \cdot 10^{-62}:\\
\;\;\;\;\frac{4}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1 - z}{y\_m}\\
\end{array}
\end{array}
if x < -3.9000000000000002e-44Initial program 91.3%
fabs-sub91.3%
associate-*l/90.5%
associate-*r/96.9%
fma-neg98.3%
distribute-neg-frac98.3%
+-commutative98.3%
distribute-neg-in98.3%
unsub-neg98.3%
metadata-eval98.3%
Simplified98.3%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt52.4%
fma-undefine51.0%
associate-*r/48.4%
associate-*l/48.1%
div-inv48.1%
sub-neg48.1%
metadata-eval48.1%
distribute-neg-in48.1%
+-commutative48.1%
cancel-sign-sub-inv48.1%
div-inv48.1%
associate-*l/48.4%
sub-div51.2%
Applied egg-rr51.2%
Taylor expanded in x around inf 50.0%
associate-/l*52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
clear-num52.5%
un-div-inv52.6%
Applied egg-rr52.6%
if -3.9000000000000002e-44 < x < 5.69999999999999988e-62Initial program 94.2%
fabs-sub94.2%
associate-*l/99.9%
associate-*r/88.8%
fma-neg88.8%
distribute-neg-frac88.8%
+-commutative88.8%
distribute-neg-in88.8%
unsub-neg88.8%
metadata-eval88.8%
Simplified88.8%
fma-undefine88.8%
associate-*r/99.9%
associate-*l/94.2%
div-inv94.2%
sub-neg94.2%
metadata-eval94.2%
distribute-neg-in94.2%
+-commutative94.2%
cancel-sign-sub-inv94.2%
div-inv94.2%
fabs-sub94.2%
add-sqr-sqrt51.4%
fabs-sqr51.4%
add-sqr-sqrt52.8%
associate-*l/56.5%
sub-div56.5%
Applied egg-rr56.5%
Taylor expanded in x around 0 40.1%
if 5.69999999999999988e-62 < x Initial program 90.0%
fabs-sub90.0%
associate-*l/83.0%
associate-*r/92.5%
fma-neg93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
fma-undefine92.5%
associate-*r/83.0%
associate-*l/90.0%
div-inv89.9%
sub-neg89.9%
metadata-eval89.9%
distribute-neg-in89.9%
+-commutative89.9%
cancel-sign-sub-inv89.9%
div-inv90.0%
fabs-sub90.0%
add-sqr-sqrt54.5%
fabs-sqr54.5%
add-sqr-sqrt55.0%
sub-neg55.0%
distribute-rgt-neg-in55.0%
Applied egg-rr55.0%
Taylor expanded in x around -inf 57.2%
mul-1-neg57.2%
div-sub57.2%
associate-/l*51.9%
sub-neg51.9%
metadata-eval51.9%
distribute-lft-in51.8%
*-commutative51.8%
neg-mul-151.8%
remove-double-neg51.8%
distribute-lft-neg-in51.8%
distribute-rgt-neg-in51.8%
mul-1-neg51.8%
*-rgt-identity51.8%
distribute-lft-in51.9%
neg-mul-151.9%
+-commutative51.9%
associate-*r*51.9%
associate-*r/51.9%
mul-1-neg51.9%
associate-/l*57.2%
distribute-lft-neg-in57.2%
Simplified57.2%
Final simplification48.1%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -4.4e-44) (* x (/ (+ -1.0 z) y_m)) (if (<= x 1.35e-60) (/ 4.0 y_m) (* x (/ (- 1.0 z) y_m)))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -4.4e-44) {
tmp = x * ((-1.0 + z) / y_m);
} else if (x <= 1.35e-60) {
tmp = 4.0 / y_m;
} else {
tmp = 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 (x <= (-4.4d-44)) then
tmp = x * (((-1.0d0) + z) / y_m)
else if (x <= 1.35d-60) then
tmp = 4.0d0 / y_m
else
tmp = 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 (x <= -4.4e-44) {
tmp = x * ((-1.0 + z) / y_m);
} else if (x <= 1.35e-60) {
tmp = 4.0 / y_m;
} else {
tmp = x * ((1.0 - z) / y_m);
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -4.4e-44: tmp = x * ((-1.0 + z) / y_m) elif x <= 1.35e-60: tmp = 4.0 / y_m else: tmp = x * ((1.0 - z) / y_m) return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -4.4e-44) tmp = Float64(x * Float64(Float64(-1.0 + z) / y_m)); elseif (x <= 1.35e-60) tmp = Float64(4.0 / y_m); else tmp = 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 (x <= -4.4e-44) tmp = x * ((-1.0 + z) / y_m); elseif (x <= 1.35e-60) tmp = 4.0 / y_m; else tmp = 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[x, -4.4e-44], N[(x * N[(N[(-1.0 + z), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e-60], N[(4.0 / y$95$m), $MachinePrecision], N[(x * N[(N[(1.0 - z), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.4 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \frac{-1 + z}{y\_m}\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-60}:\\
\;\;\;\;\frac{4}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1 - z}{y\_m}\\
\end{array}
\end{array}
if x < -4.40000000000000024e-44Initial program 91.3%
fabs-sub91.3%
associate-*l/90.5%
associate-*r/96.9%
fma-neg98.3%
distribute-neg-frac98.3%
+-commutative98.3%
distribute-neg-in98.3%
unsub-neg98.3%
metadata-eval98.3%
Simplified98.3%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt52.4%
fma-undefine51.0%
associate-*r/48.4%
associate-*l/48.1%
div-inv48.1%
sub-neg48.1%
metadata-eval48.1%
distribute-neg-in48.1%
+-commutative48.1%
cancel-sign-sub-inv48.1%
div-inv48.1%
associate-*l/48.4%
sub-div51.2%
Applied egg-rr51.2%
Taylor expanded in x around inf 50.0%
associate-/l*52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
if -4.40000000000000024e-44 < x < 1.35e-60Initial program 94.2%
fabs-sub94.2%
associate-*l/99.9%
associate-*r/88.8%
fma-neg88.8%
distribute-neg-frac88.8%
+-commutative88.8%
distribute-neg-in88.8%
unsub-neg88.8%
metadata-eval88.8%
Simplified88.8%
fma-undefine88.8%
associate-*r/99.9%
associate-*l/94.2%
div-inv94.2%
sub-neg94.2%
metadata-eval94.2%
distribute-neg-in94.2%
+-commutative94.2%
cancel-sign-sub-inv94.2%
div-inv94.2%
fabs-sub94.2%
add-sqr-sqrt51.4%
fabs-sqr51.4%
add-sqr-sqrt52.8%
associate-*l/56.5%
sub-div56.5%
Applied egg-rr56.5%
Taylor expanded in x around 0 40.1%
if 1.35e-60 < x Initial program 90.0%
fabs-sub90.0%
associate-*l/83.0%
associate-*r/92.5%
fma-neg93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
fma-undefine92.5%
associate-*r/83.0%
associate-*l/90.0%
div-inv89.9%
sub-neg89.9%
metadata-eval89.9%
distribute-neg-in89.9%
+-commutative89.9%
cancel-sign-sub-inv89.9%
div-inv90.0%
fabs-sub90.0%
add-sqr-sqrt54.5%
fabs-sqr54.5%
add-sqr-sqrt55.0%
sub-neg55.0%
distribute-rgt-neg-in55.0%
Applied egg-rr55.0%
Taylor expanded in x around -inf 57.2%
mul-1-neg57.2%
div-sub57.2%
associate-/l*51.9%
sub-neg51.9%
metadata-eval51.9%
distribute-lft-in51.8%
*-commutative51.8%
neg-mul-151.8%
remove-double-neg51.8%
distribute-lft-neg-in51.8%
distribute-rgt-neg-in51.8%
mul-1-neg51.8%
*-rgt-identity51.8%
distribute-lft-in51.9%
neg-mul-151.9%
+-commutative51.9%
associate-*r*51.9%
associate-*r/51.9%
mul-1-neg51.9%
associate-/l*57.2%
distribute-lft-neg-in57.2%
Simplified57.2%
Final simplification48.1%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -10.2) (/ x (- y_m)) (if (<= x 4.0) (/ 4.0 y_m) (/ x y_m))))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -10.2) {
tmp = x / -y_m;
} else if (x <= 4.0) {
tmp = 4.0 / y_m;
} else {
tmp = 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 <= (-10.2d0)) then
tmp = x / -y_m
else if (x <= 4.0d0) then
tmp = 4.0d0 / y_m
else
tmp = 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 <= -10.2) {
tmp = x / -y_m;
} else if (x <= 4.0) {
tmp = 4.0 / y_m;
} else {
tmp = x / y_m;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -10.2: tmp = x / -y_m elif x <= 4.0: tmp = 4.0 / y_m else: tmp = x / y_m return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -10.2) tmp = Float64(x / Float64(-y_m)); elseif (x <= 4.0) tmp = Float64(4.0 / y_m); else tmp = 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 <= -10.2) tmp = x / -y_m; elseif (x <= 4.0) tmp = 4.0 / y_m; else tmp = x / y_m; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, -10.2], N[(x / (-y$95$m)), $MachinePrecision], If[LessEqual[x, 4.0], N[(4.0 / y$95$m), $MachinePrecision], N[(x / y$95$m), $MachinePrecision]]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -10.2:\\
\;\;\;\;\frac{x}{-y\_m}\\
\mathbf{elif}\;x \leq 4:\\
\;\;\;\;\frac{4}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y\_m}\\
\end{array}
\end{array}
if x < -10.199999999999999Initial program 90.2%
fabs-sub90.2%
associate-*l/89.1%
associate-*r/96.5%
fma-neg98.1%
distribute-neg-frac98.1%
+-commutative98.1%
distribute-neg-in98.1%
unsub-neg98.1%
metadata-eval98.1%
Simplified98.1%
add-sqr-sqrt49.8%
fabs-sqr49.8%
add-sqr-sqrt50.4%
fma-undefine48.8%
associate-*r/45.8%
associate-*l/45.6%
div-inv45.5%
sub-neg45.5%
metadata-eval45.5%
distribute-neg-in45.5%
+-commutative45.5%
cancel-sign-sub-inv45.5%
div-inv45.6%
associate-*l/45.8%
sub-div49.0%
Applied egg-rr49.0%
Taylor expanded in x around inf 49.0%
Taylor expanded in z around 0 32.2%
neg-mul-132.2%
Simplified32.2%
if -10.199999999999999 < x < 4Initial program 94.1%
fabs-sub94.1%
associate-*l/99.9%
associate-*r/91.0%
fma-neg91.0%
distribute-neg-frac91.0%
+-commutative91.0%
distribute-neg-in91.0%
unsub-neg91.0%
metadata-eval91.0%
Simplified91.0%
fma-undefine91.0%
associate-*r/99.9%
associate-*l/94.1%
div-inv94.1%
sub-neg94.1%
metadata-eval94.1%
distribute-neg-in94.1%
+-commutative94.1%
cancel-sign-sub-inv94.1%
div-inv94.1%
fabs-sub94.1%
add-sqr-sqrt50.6%
fabs-sqr50.6%
add-sqr-sqrt51.9%
associate-*l/55.9%
sub-div55.9%
Applied egg-rr55.9%
Taylor expanded in x around 0 34.0%
if 4 < x Initial program 89.2%
fabs-sub89.2%
associate-*l/75.4%
associate-*r/89.2%
fma-neg91.3%
distribute-neg-frac91.3%
+-commutative91.3%
distribute-neg-in91.3%
unsub-neg91.3%
metadata-eval91.3%
Simplified91.3%
fma-undefine89.2%
associate-*r/75.4%
associate-*l/89.2%
div-inv89.1%
sub-neg89.1%
metadata-eval89.1%
distribute-neg-in89.1%
+-commutative89.1%
cancel-sign-sub-inv89.1%
div-inv89.2%
fabs-sub89.2%
add-sqr-sqrt55.0%
fabs-sqr55.0%
add-sqr-sqrt55.5%
associate-*l/47.6%
sub-div51.9%
Applied egg-rr51.9%
Taylor expanded in z around 0 34.0%
Taylor expanded in x around inf 34.0%
Final simplification33.5%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -1.4e-43) (* x (/ (+ -1.0 z) y_m)) (/ (+ x 4.0) y_m)))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -1.4e-43) {
tmp = x * ((-1.0 + z) / y_m);
} else {
tmp = (x + 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.4d-43)) then
tmp = x * (((-1.0d0) + z) / y_m)
else
tmp = (x + 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.4e-43) {
tmp = x * ((-1.0 + z) / y_m);
} else {
tmp = (x + 4.0) / y_m;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -1.4e-43: tmp = x * ((-1.0 + z) / y_m) else: tmp = (x + 4.0) / y_m return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -1.4e-43) tmp = Float64(x * Float64(Float64(-1.0 + z) / y_m)); else tmp = Float64(Float64(x + 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.4e-43) tmp = x * ((-1.0 + z) / y_m); else tmp = (x + 4.0) / y_m; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, -1.4e-43], N[(x * N[(N[(-1.0 + z), $MachinePrecision] / y$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(x + 4.0), $MachinePrecision] / y$95$m), $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{-43}:\\
\;\;\;\;x \cdot \frac{-1 + z}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + 4}{y\_m}\\
\end{array}
\end{array}
if x < -1.3999999999999999e-43Initial program 91.3%
fabs-sub91.3%
associate-*l/90.5%
associate-*r/96.9%
fma-neg98.3%
distribute-neg-frac98.3%
+-commutative98.3%
distribute-neg-in98.3%
unsub-neg98.3%
metadata-eval98.3%
Simplified98.3%
add-sqr-sqrt51.9%
fabs-sqr51.9%
add-sqr-sqrt52.4%
fma-undefine51.0%
associate-*r/48.4%
associate-*l/48.1%
div-inv48.1%
sub-neg48.1%
metadata-eval48.1%
distribute-neg-in48.1%
+-commutative48.1%
cancel-sign-sub-inv48.1%
div-inv48.1%
associate-*l/48.4%
sub-div51.2%
Applied egg-rr51.2%
Taylor expanded in x around inf 50.0%
associate-/l*52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
if -1.3999999999999999e-43 < x Initial program 92.6%
fabs-sub92.6%
associate-*l/93.7%
associate-*r/90.2%
fma-neg90.7%
distribute-neg-frac90.7%
+-commutative90.7%
distribute-neg-in90.7%
unsub-neg90.7%
metadata-eval90.7%
Simplified90.7%
fma-undefine90.2%
associate-*r/93.7%
associate-*l/92.6%
div-inv92.6%
sub-neg92.6%
metadata-eval92.6%
distribute-neg-in92.6%
+-commutative92.6%
cancel-sign-sub-inv92.6%
div-inv92.6%
fabs-sub92.6%
add-sqr-sqrt52.5%
fabs-sqr52.5%
add-sqr-sqrt53.7%
associate-*l/54.9%
sub-div55.9%
Applied egg-rr55.9%
Taylor expanded in z around 0 35.5%
Final simplification40.2%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x -4.0) (/ x (- y_m)) (/ (+ x 4.0) y_m)))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= -4.0) {
tmp = x / -y_m;
} else {
tmp = (x + 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 <= (-4.0d0)) then
tmp = x / -y_m
else
tmp = (x + 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 <= -4.0) {
tmp = x / -y_m;
} else {
tmp = (x + 4.0) / y_m;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= -4.0: tmp = x / -y_m else: tmp = (x + 4.0) / y_m return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= -4.0) tmp = Float64(x / Float64(-y_m)); else tmp = Float64(Float64(x + 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 <= -4.0) tmp = x / -y_m; else tmp = (x + 4.0) / y_m; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, -4.0], N[(x / (-y$95$m)), $MachinePrecision], N[(N[(x + 4.0), $MachinePrecision] / y$95$m), $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4:\\
\;\;\;\;\frac{x}{-y\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + 4}{y\_m}\\
\end{array}
\end{array}
if x < -4Initial program 90.2%
fabs-sub90.2%
associate-*l/89.1%
associate-*r/96.5%
fma-neg98.1%
distribute-neg-frac98.1%
+-commutative98.1%
distribute-neg-in98.1%
unsub-neg98.1%
metadata-eval98.1%
Simplified98.1%
add-sqr-sqrt49.8%
fabs-sqr49.8%
add-sqr-sqrt50.4%
fma-undefine48.8%
associate-*r/45.8%
associate-*l/45.6%
div-inv45.5%
sub-neg45.5%
metadata-eval45.5%
distribute-neg-in45.5%
+-commutative45.5%
cancel-sign-sub-inv45.5%
div-inv45.6%
associate-*l/45.8%
sub-div49.0%
Applied egg-rr49.0%
Taylor expanded in x around inf 49.0%
Taylor expanded in z around 0 32.2%
neg-mul-132.2%
Simplified32.2%
if -4 < x Initial program 92.9%
fabs-sub92.9%
associate-*l/94.0%
associate-*r/90.6%
fma-neg91.1%
distribute-neg-frac91.1%
+-commutative91.1%
distribute-neg-in91.1%
unsub-neg91.1%
metadata-eval91.1%
Simplified91.1%
fma-undefine90.6%
associate-*r/94.0%
associate-*l/92.9%
div-inv92.9%
sub-neg92.9%
metadata-eval92.9%
distribute-neg-in92.9%
+-commutative92.9%
cancel-sign-sub-inv92.9%
div-inv92.9%
fabs-sub92.9%
add-sqr-sqrt51.6%
fabs-sqr51.6%
add-sqr-sqrt52.7%
associate-*l/53.9%
sub-div54.9%
Applied egg-rr54.9%
Taylor expanded in z around 0 34.5%
Final simplification33.9%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (if (<= x 4.0) (/ 4.0 y_m) (/ x y_m)))
y_m = fabs(y);
double code(double x, double y_m, double z) {
double tmp;
if (x <= 4.0) {
tmp = 4.0 / y_m;
} else {
tmp = 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 <= 4.0d0) then
tmp = 4.0d0 / y_m
else
tmp = 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 <= 4.0) {
tmp = 4.0 / y_m;
} else {
tmp = x / y_m;
}
return tmp;
}
y_m = math.fabs(y) def code(x, y_m, z): tmp = 0 if x <= 4.0: tmp = 4.0 / y_m else: tmp = x / y_m return tmp
y_m = abs(y) function code(x, y_m, z) tmp = 0.0 if (x <= 4.0) tmp = Float64(4.0 / y_m); else tmp = 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 <= 4.0) tmp = 4.0 / y_m; else tmp = x / y_m; end tmp_2 = tmp; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := If[LessEqual[x, 4.0], N[(4.0 / y$95$m), $MachinePrecision], N[(x / y$95$m), $MachinePrecision]]
\begin{array}{l}
y_m = \left|y\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4:\\
\;\;\;\;\frac{4}{y\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y\_m}\\
\end{array}
\end{array}
if x < 4Initial program 93.0%
fabs-sub93.0%
associate-*l/96.7%
associate-*r/92.7%
fma-neg93.1%
distribute-neg-frac93.1%
+-commutative93.1%
distribute-neg-in93.1%
unsub-neg93.1%
metadata-eval93.1%
Simplified93.1%
fma-undefine92.7%
associate-*r/96.7%
associate-*l/93.0%
div-inv92.9%
sub-neg92.9%
metadata-eval92.9%
distribute-neg-in92.9%
+-commutative92.9%
cancel-sign-sub-inv92.9%
div-inv93.0%
fabs-sub93.0%
add-sqr-sqrt48.8%
fabs-sqr48.8%
add-sqr-sqrt49.9%
associate-*l/52.4%
sub-div52.4%
Applied egg-rr52.4%
Taylor expanded in x around 0 24.9%
if 4 < x Initial program 89.2%
fabs-sub89.2%
associate-*l/75.4%
associate-*r/89.2%
fma-neg91.3%
distribute-neg-frac91.3%
+-commutative91.3%
distribute-neg-in91.3%
unsub-neg91.3%
metadata-eval91.3%
Simplified91.3%
fma-undefine89.2%
associate-*r/75.4%
associate-*l/89.2%
div-inv89.1%
sub-neg89.1%
metadata-eval89.1%
distribute-neg-in89.1%
+-commutative89.1%
cancel-sign-sub-inv89.1%
div-inv89.2%
fabs-sub89.2%
add-sqr-sqrt55.0%
fabs-sqr55.0%
add-sqr-sqrt55.5%
associate-*l/47.6%
sub-div51.9%
Applied egg-rr51.9%
Taylor expanded in z around 0 34.0%
Taylor expanded in x around inf 34.0%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (/ 4.0 y_m))
y_m = fabs(y);
double code(double x, double y_m, double z) {
return 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 = 4.0d0 / y_m
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
return 4.0 / y_m;
}
y_m = math.fabs(y) def code(x, y_m, z): return 4.0 / y_m
y_m = abs(y) function code(x, y_m, z) return Float64(4.0 / y_m) end
y_m = abs(y); function tmp = code(x, y_m, z) tmp = 4.0 / y_m; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := N[(4.0 / y$95$m), $MachinePrecision]
\begin{array}{l}
y_m = \left|y\right|
\\
\frac{4}{y\_m}
\end{array}
Initial program 92.3%
fabs-sub92.3%
associate-*l/92.8%
associate-*r/92.0%
fma-neg92.8%
distribute-neg-frac92.8%
+-commutative92.8%
distribute-neg-in92.8%
unsub-neg92.8%
metadata-eval92.8%
Simplified92.8%
fma-undefine92.0%
associate-*r/92.8%
associate-*l/92.3%
div-inv92.2%
sub-neg92.2%
metadata-eval92.2%
distribute-neg-in92.2%
+-commutative92.2%
cancel-sign-sub-inv92.2%
div-inv92.3%
fabs-sub92.3%
add-sqr-sqrt49.9%
fabs-sqr49.9%
add-sqr-sqrt51.0%
associate-*l/51.5%
sub-div52.3%
Applied egg-rr52.3%
Taylor expanded in x around 0 21.0%
y_m = (fabs.f64 y) (FPCore (x y_m z) :precision binary64 (/ -4.0 y_m))
y_m = fabs(y);
double code(double x, double y_m, double z) {
return -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 = (-4.0d0) / y_m
end function
y_m = Math.abs(y);
public static double code(double x, double y_m, double z) {
return -4.0 / y_m;
}
y_m = math.fabs(y) def code(x, y_m, z): return -4.0 / y_m
y_m = abs(y) function code(x, y_m, z) return Float64(-4.0 / y_m) end
y_m = abs(y); function tmp = code(x, y_m, z) tmp = -4.0 / y_m; end
y_m = N[Abs[y], $MachinePrecision] code[x_, y$95$m_, z_] := N[(-4.0 / y$95$m), $MachinePrecision]
\begin{array}{l}
y_m = \left|y\right|
\\
\frac{-4}{y\_m}
\end{array}
Initial program 92.3%
fabs-sub92.3%
associate-*l/92.8%
associate-*r/92.0%
fma-neg92.8%
distribute-neg-frac92.8%
+-commutative92.8%
distribute-neg-in92.8%
unsub-neg92.8%
metadata-eval92.8%
Simplified92.8%
add-sqr-sqrt42.9%
fabs-sqr42.9%
add-sqr-sqrt43.9%
fma-undefine43.1%
associate-*r/42.7%
associate-*l/42.8%
div-inv42.8%
sub-neg42.8%
metadata-eval42.8%
distribute-neg-in42.8%
+-commutative42.8%
cancel-sign-sub-inv42.8%
div-inv42.8%
associate-*l/42.7%
sub-div44.6%
Applied egg-rr44.6%
Taylor expanded in x around 0 20.3%
herbie shell --seed 2024123
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))