
(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 17 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}
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x 4.0) y)) (t_1 (fabs (- t_0 (* z (/ x y))))))
(if (or (<= t_1 1e-210) (not (<= t_1 2e+301)))
(fabs (* (/ -1.0 y) (fma x z (- -4.0 x))))
(fabs (- t_0 (/ z (/ y x)))))))
double code(double x, double y, double z) {
double t_0 = (x + 4.0) / y;
double t_1 = fabs((t_0 - (z * (x / y))));
double tmp;
if ((t_1 <= 1e-210) || !(t_1 <= 2e+301)) {
tmp = fabs(((-1.0 / y) * fma(x, z, (-4.0 - x))));
} else {
tmp = fabs((t_0 - (z / (y / x))));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x + 4.0) / y) t_1 = abs(Float64(t_0 - Float64(z * Float64(x / y)))) tmp = 0.0 if ((t_1 <= 1e-210) || !(t_1 <= 2e+301)) tmp = abs(Float64(Float64(-1.0 / y) * fma(x, z, Float64(-4.0 - x)))); else tmp = abs(Float64(t_0 - Float64(z / Float64(y / x)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$1 = N[Abs[N[(t$95$0 - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[Or[LessEqual[t$95$1, 1e-210], N[Not[LessEqual[t$95$1, 2e+301]], $MachinePrecision]], N[Abs[N[(N[(-1.0 / y), $MachinePrecision] * N[(x * z + N[(-4.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(t$95$0 - N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + 4}{y}\\
t_1 := \left|t\_0 - z \cdot \frac{x}{y}\right|\\
\mathbf{if}\;t\_1 \leq 10^{-210} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+301}\right):\\
\;\;\;\;\left|\frac{-1}{y} \cdot \mathsf{fma}\left(x, z, -4 - x\right)\right|\\
\mathbf{else}:\\
\;\;\;\;\left|t\_0 - \frac{z}{\frac{y}{x}}\right|\\
\end{array}
\end{array}
if (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) < 1e-210 or 2.00000000000000011e301 < (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) Initial program 64.8%
Simplified100.0%
if 1e-210 < (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) < 2.00000000000000011e301Initial program 99.8%
*-commutative99.8%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x 4.0) y)))
(if (<= (fabs (- t_0 (* z (/ x y)))) INFINITY)
(fabs (- t_0 (/ z (/ y x))))
(fabs (* (/ -1.0 y) (* x z))))))
double code(double x, double y, double z) {
double t_0 = (x + 4.0) / y;
double tmp;
if (fabs((t_0 - (z * (x / y)))) <= ((double) INFINITY)) {
tmp = fabs((t_0 - (z / (y / x))));
} else {
tmp = fabs(((-1.0 / y) * (x * z)));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x + 4.0) / y;
double tmp;
if (Math.abs((t_0 - (z * (x / y)))) <= Double.POSITIVE_INFINITY) {
tmp = Math.abs((t_0 - (z / (y / x))));
} else {
tmp = Math.abs(((-1.0 / y) * (x * z)));
}
return tmp;
}
def code(x, y, z): t_0 = (x + 4.0) / y tmp = 0 if math.fabs((t_0 - (z * (x / y)))) <= math.inf: tmp = math.fabs((t_0 - (z / (y / x)))) else: tmp = math.fabs(((-1.0 / y) * (x * z))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + 4.0) / y) tmp = 0.0 if (abs(Float64(t_0 - Float64(z * Float64(x / y)))) <= Inf) tmp = abs(Float64(t_0 - Float64(z / Float64(y / x)))); else tmp = abs(Float64(Float64(-1.0 / y) * Float64(x * z))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + 4.0) / y; tmp = 0.0; if (abs((t_0 - (z * (x / y)))) <= Inf) tmp = abs((t_0 - (z / (y / x)))); else tmp = abs(((-1.0 / y) * (x * z))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[N[Abs[N[(t$95$0 - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], Infinity], N[Abs[N[(t$95$0 - N[(z / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(N[(-1.0 / y), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + 4}{y}\\
\mathbf{if}\;\left|t\_0 - z \cdot \frac{x}{y}\right| \leq \infty:\\
\;\;\;\;\left|t\_0 - \frac{z}{\frac{y}{x}}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{-1}{y} \cdot \left(x \cdot z\right)\right|\\
\end{array}
\end{array}
if (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) < +inf.0Initial program 97.5%
*-commutative97.5%
clear-num97.4%
un-div-inv97.5%
Applied egg-rr97.5%
if +inf.0 < (fabs.f64 (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z))) Initial program 0.0%
Simplified100.0%
Taylor expanded in z around inf 80.4%
Final simplification96.2%
(FPCore (x y z) :precision binary64 (if (<= y 5e+86) (fabs (* (/ -1.0 y) (fma x z (- -4.0 x)))) (fabs (fma x (/ z y) (/ (- -4.0 x) y)))))
double code(double x, double y, double z) {
double tmp;
if (y <= 5e+86) {
tmp = fabs(((-1.0 / y) * fma(x, z, (-4.0 - x))));
} else {
tmp = fabs(fma(x, (z / y), ((-4.0 - x) / y)));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (y <= 5e+86) tmp = abs(Float64(Float64(-1.0 / y) * fma(x, z, Float64(-4.0 - x)))); else tmp = abs(fma(x, Float64(z / y), Float64(Float64(-4.0 - x) / y))); end return tmp end
code[x_, y_, z_] := If[LessEqual[y, 5e+86], N[Abs[N[(N[(-1.0 / y), $MachinePrecision] * N[(x * z + N[(-4.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Abs[N[(x * N[(z / y), $MachinePrecision] + N[(N[(-4.0 - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5 \cdot 10^{+86}:\\
\;\;\;\;\left|\frac{-1}{y} \cdot \mathsf{fma}\left(x, z, -4 - x\right)\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\mathsf{fma}\left(x, \frac{z}{y}, \frac{-4 - x}{y}\right)\right|\\
\end{array}
\end{array}
if y < 4.9999999999999998e86Initial program 90.1%
Simplified96.1%
if 4.9999999999999998e86 < y Initial program 90.7%
fabs-sub90.7%
associate-*l/87.1%
associate-*r/99.9%
fmm-def99.9%
distribute-neg-frac99.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
metadata-eval99.9%
Simplified99.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (- (/ (+ x 4.0) y) (* z (/ x y))))) (if (<= t_0 INFINITY) (fabs t_0) (fabs (* (/ -1.0 y) (* x z))))))
double code(double x, double y, double z) {
double t_0 = ((x + 4.0) / y) - (z * (x / y));
double tmp;
if (t_0 <= ((double) INFINITY)) {
tmp = fabs(t_0);
} else {
tmp = fabs(((-1.0 / y) * (x * z)));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x + 4.0) / y) - (z * (x / y));
double tmp;
if (t_0 <= Double.POSITIVE_INFINITY) {
tmp = Math.abs(t_0);
} else {
tmp = Math.abs(((-1.0 / y) * (x * z)));
}
return tmp;
}
def code(x, y, z): t_0 = ((x + 4.0) / y) - (z * (x / y)) tmp = 0 if t_0 <= math.inf: tmp = math.fabs(t_0) else: tmp = math.fabs(((-1.0 / y) * (x * z))) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x + 4.0) / y) - Float64(z * Float64(x / y))) tmp = 0.0 if (t_0 <= Inf) tmp = abs(t_0); else tmp = abs(Float64(Float64(-1.0 / y) * Float64(x * z))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x + 4.0) / y) - (z * (x / y)); tmp = 0.0; if (t_0 <= Inf) tmp = abs(t_0); else tmp = abs(((-1.0 / y) * (x * z))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision] - N[(z * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, Infinity], N[Abs[t$95$0], $MachinePrecision], N[Abs[N[(N[(-1.0 / y), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + 4}{y} - z \cdot \frac{x}{y}\\
\mathbf{if}\;t\_0 \leq \infty:\\
\;\;\;\;\left|t\_0\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{-1}{y} \cdot \left(x \cdot z\right)\right|\\
\end{array}
\end{array}
if (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z)) < +inf.0Initial program 97.5%
if +inf.0 < (-.f64 (/.f64 (+.f64 x #s(literal 4 binary64)) y) (*.f64 (/.f64 x y) z)) Initial program 0.0%
Simplified100.0%
Taylor expanded in z around inf 80.4%
Final simplification96.2%
(FPCore (x y z)
:precision binary64
(if (<= x -17000000.0)
(/ x (/ y (+ -1.0 z)))
(if (<= x -9.8e-48)
(* x (/ z (- y)))
(if (<= x 3.4e+21) (/ (+ x 4.0) y) (* x (/ (- 1.0 z) y))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -17000000.0) {
tmp = x / (y / (-1.0 + z));
} else if (x <= -9.8e-48) {
tmp = x * (z / -y);
} else if (x <= 3.4e+21) {
tmp = (x + 4.0) / y;
} else {
tmp = x * ((1.0 - z) / y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-17000000.0d0)) then
tmp = x / (y / ((-1.0d0) + z))
else if (x <= (-9.8d-48)) then
tmp = x * (z / -y)
else if (x <= 3.4d+21) then
tmp = (x + 4.0d0) / y
else
tmp = x * ((1.0d0 - z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -17000000.0) {
tmp = x / (y / (-1.0 + z));
} else if (x <= -9.8e-48) {
tmp = x * (z / -y);
} else if (x <= 3.4e+21) {
tmp = (x + 4.0) / y;
} else {
tmp = x * ((1.0 - z) / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -17000000.0: tmp = x / (y / (-1.0 + z)) elif x <= -9.8e-48: tmp = x * (z / -y) elif x <= 3.4e+21: tmp = (x + 4.0) / y else: tmp = x * ((1.0 - z) / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -17000000.0) tmp = Float64(x / Float64(y / Float64(-1.0 + z))); elseif (x <= -9.8e-48) tmp = Float64(x * Float64(z / Float64(-y))); elseif (x <= 3.4e+21) tmp = Float64(Float64(x + 4.0) / y); else tmp = Float64(x * Float64(Float64(1.0 - z) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -17000000.0) tmp = x / (y / (-1.0 + z)); elseif (x <= -9.8e-48) tmp = x * (z / -y); elseif (x <= 3.4e+21) tmp = (x + 4.0) / y; else tmp = x * ((1.0 - z) / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -17000000.0], N[(x / N[(y / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.8e-48], N[(x * N[(z / (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e+21], N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(1.0 - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -17000000:\\
\;\;\;\;\frac{x}{\frac{y}{-1 + z}}\\
\mathbf{elif}\;x \leq -9.8 \cdot 10^{-48}:\\
\;\;\;\;x \cdot \frac{z}{-y}\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+21}:\\
\;\;\;\;\frac{x + 4}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1 - z}{y}\\
\end{array}
\end{array}
if x < -1.7e7Initial program 80.5%
fabs-sub80.5%
associate-*l/71.0%
associate-*r/86.5%
fmm-def93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.4%
fma-undefine49.4%
associate-*r/40.9%
associate-*l/46.4%
div-inv46.4%
sub-neg46.4%
metadata-eval46.4%
distribute-neg-in46.4%
+-commutative46.4%
cancel-sign-sub-inv46.4%
div-inv46.4%
associate-*l/40.9%
sub-div48.4%
Applied egg-rr48.4%
Taylor expanded in x around inf 48.4%
associate-/l*56.8%
sub-neg56.8%
metadata-eval56.8%
Simplified56.8%
clear-num56.8%
un-div-inv56.8%
Applied egg-rr56.8%
if -1.7e7 < x < -9.8000000000000005e-48Initial program 99.4%
fabs-sub99.4%
associate-*l/99.7%
associate-*r/99.9%
fmm-def99.9%
distribute-neg-frac99.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
metadata-eval99.9%
Simplified99.9%
fma-undefine99.9%
associate-*r/99.7%
associate-*l/99.4%
div-inv99.3%
sub-neg99.3%
metadata-eval99.3%
distribute-neg-in99.3%
+-commutative99.3%
cancel-sign-sub-inv99.3%
div-inv99.4%
fabs-sub99.4%
add-sqr-sqrt63.5%
fabs-sqr63.5%
add-sqr-sqrt64.0%
associate-*l/64.2%
sub-div64.2%
Applied egg-rr64.2%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
associate-*r/48.0%
distribute-rgt-neg-in48.0%
distribute-frac-neg248.0%
Simplified48.0%
if -9.8000000000000005e-48 < x < 3.4e21Initial program 95.6%
fabs-sub95.6%
associate-*l/99.8%
associate-*r/86.5%
fmm-def86.5%
distribute-neg-frac86.5%
+-commutative86.5%
distribute-neg-in86.5%
unsub-neg86.5%
metadata-eval86.5%
Simplified86.5%
fma-undefine86.5%
associate-*r/99.8%
associate-*l/95.6%
div-inv95.6%
sub-neg95.6%
metadata-eval95.6%
distribute-neg-in95.6%
+-commutative95.6%
cancel-sign-sub-inv95.6%
div-inv95.6%
fabs-sub95.6%
add-sqr-sqrt51.0%
fabs-sqr51.0%
add-sqr-sqrt52.0%
associate-*l/54.1%
sub-div54.1%
Applied egg-rr54.1%
Taylor expanded in z around 0 38.8%
if 3.4e21 < x Initial program 87.1%
fabs-sub87.1%
associate-*l/79.2%
associate-*r/87.1%
fmm-def93.4%
distribute-neg-frac93.4%
+-commutative93.4%
distribute-neg-in93.4%
unsub-neg93.4%
metadata-eval93.4%
Simplified93.4%
fma-undefine87.1%
associate-*r/79.2%
associate-*l/87.1%
div-inv86.9%
sub-neg86.9%
metadata-eval86.9%
distribute-neg-in86.9%
+-commutative86.9%
cancel-sign-sub-inv86.9%
div-inv87.1%
fabs-sub87.1%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.5%
sub-neg55.5%
distribute-rgt-neg-in55.5%
Applied egg-rr55.5%
Taylor expanded in x around -inf 63.8%
mul-1-neg63.8%
div-sub63.8%
associate-/l*60.1%
sub-neg60.1%
metadata-eval60.1%
distribute-rgt-in60.1%
neg-mul-160.1%
sub-neg60.1%
*-lft-identity60.1%
sub-neg60.1%
distribute-rgt-in60.1%
*-rgt-identity60.1%
remove-double-neg60.1%
*-commutative60.1%
mul-1-neg60.1%
associate-*r*60.1%
neg-mul-160.1%
distribute-rgt-neg-in60.1%
mul-1-neg60.1%
distribute-lft-in60.1%
neg-mul-160.1%
+-commutative60.1%
associate-*r*60.1%
Simplified63.8%
Final simplification48.5%
(FPCore (x y z)
:precision binary64
(if (<= x -19000000.0)
(* x (/ (+ -1.0 z) y))
(if (<= x -1e-47)
(* x (/ z (- y)))
(if (<= x 4.8e+23) (/ (+ x 4.0) y) (* x (/ (- 1.0 z) y))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -19000000.0) {
tmp = x * ((-1.0 + z) / y);
} else if (x <= -1e-47) {
tmp = x * (z / -y);
} else if (x <= 4.8e+23) {
tmp = (x + 4.0) / y;
} else {
tmp = x * ((1.0 - z) / y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-19000000.0d0)) then
tmp = x * (((-1.0d0) + z) / y)
else if (x <= (-1d-47)) then
tmp = x * (z / -y)
else if (x <= 4.8d+23) then
tmp = (x + 4.0d0) / y
else
tmp = x * ((1.0d0 - z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -19000000.0) {
tmp = x * ((-1.0 + z) / y);
} else if (x <= -1e-47) {
tmp = x * (z / -y);
} else if (x <= 4.8e+23) {
tmp = (x + 4.0) / y;
} else {
tmp = x * ((1.0 - z) / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -19000000.0: tmp = x * ((-1.0 + z) / y) elif x <= -1e-47: tmp = x * (z / -y) elif x <= 4.8e+23: tmp = (x + 4.0) / y else: tmp = x * ((1.0 - z) / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -19000000.0) tmp = Float64(x * Float64(Float64(-1.0 + z) / y)); elseif (x <= -1e-47) tmp = Float64(x * Float64(z / Float64(-y))); elseif (x <= 4.8e+23) tmp = Float64(Float64(x + 4.0) / y); else tmp = Float64(x * Float64(Float64(1.0 - z) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -19000000.0) tmp = x * ((-1.0 + z) / y); elseif (x <= -1e-47) tmp = x * (z / -y); elseif (x <= 4.8e+23) tmp = (x + 4.0) / y; else tmp = x * ((1.0 - z) / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -19000000.0], N[(x * N[(N[(-1.0 + z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1e-47], N[(x * N[(z / (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e+23], N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(1.0 - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -19000000:\\
\;\;\;\;x \cdot \frac{-1 + z}{y}\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \frac{z}{-y}\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+23}:\\
\;\;\;\;\frac{x + 4}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1 - z}{y}\\
\end{array}
\end{array}
if x < -1.9e7Initial program 80.5%
fabs-sub80.5%
associate-*l/71.0%
associate-*r/86.5%
fmm-def93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.4%
fma-undefine49.4%
associate-*r/40.9%
associate-*l/46.4%
div-inv46.4%
sub-neg46.4%
metadata-eval46.4%
distribute-neg-in46.4%
+-commutative46.4%
cancel-sign-sub-inv46.4%
div-inv46.4%
associate-*l/40.9%
sub-div48.4%
Applied egg-rr48.4%
Taylor expanded in x around inf 48.4%
associate-/l*56.8%
sub-neg56.8%
metadata-eval56.8%
Simplified56.8%
if -1.9e7 < x < -9.9999999999999997e-48Initial program 99.4%
fabs-sub99.4%
associate-*l/99.7%
associate-*r/99.9%
fmm-def99.9%
distribute-neg-frac99.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
metadata-eval99.9%
Simplified99.9%
fma-undefine99.9%
associate-*r/99.7%
associate-*l/99.4%
div-inv99.3%
sub-neg99.3%
metadata-eval99.3%
distribute-neg-in99.3%
+-commutative99.3%
cancel-sign-sub-inv99.3%
div-inv99.4%
fabs-sub99.4%
add-sqr-sqrt63.5%
fabs-sqr63.5%
add-sqr-sqrt64.0%
associate-*l/64.2%
sub-div64.2%
Applied egg-rr64.2%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
associate-*r/48.0%
distribute-rgt-neg-in48.0%
distribute-frac-neg248.0%
Simplified48.0%
if -9.9999999999999997e-48 < x < 4.8e23Initial program 95.6%
fabs-sub95.6%
associate-*l/99.8%
associate-*r/86.5%
fmm-def86.5%
distribute-neg-frac86.5%
+-commutative86.5%
distribute-neg-in86.5%
unsub-neg86.5%
metadata-eval86.5%
Simplified86.5%
fma-undefine86.5%
associate-*r/99.8%
associate-*l/95.6%
div-inv95.6%
sub-neg95.6%
metadata-eval95.6%
distribute-neg-in95.6%
+-commutative95.6%
cancel-sign-sub-inv95.6%
div-inv95.6%
fabs-sub95.6%
add-sqr-sqrt51.0%
fabs-sqr51.0%
add-sqr-sqrt52.0%
associate-*l/54.1%
sub-div54.1%
Applied egg-rr54.1%
Taylor expanded in z around 0 38.8%
if 4.8e23 < x Initial program 87.1%
fabs-sub87.1%
associate-*l/79.2%
associate-*r/87.1%
fmm-def93.4%
distribute-neg-frac93.4%
+-commutative93.4%
distribute-neg-in93.4%
unsub-neg93.4%
metadata-eval93.4%
Simplified93.4%
fma-undefine87.1%
associate-*r/79.2%
associate-*l/87.1%
div-inv86.9%
sub-neg86.9%
metadata-eval86.9%
distribute-neg-in86.9%
+-commutative86.9%
cancel-sign-sub-inv86.9%
div-inv87.1%
fabs-sub87.1%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.5%
sub-neg55.5%
distribute-rgt-neg-in55.5%
Applied egg-rr55.5%
Taylor expanded in x around -inf 63.8%
mul-1-neg63.8%
div-sub63.8%
associate-/l*60.1%
sub-neg60.1%
metadata-eval60.1%
distribute-rgt-in60.1%
neg-mul-160.1%
sub-neg60.1%
*-lft-identity60.1%
sub-neg60.1%
distribute-rgt-in60.1%
*-rgt-identity60.1%
remove-double-neg60.1%
*-commutative60.1%
mul-1-neg60.1%
associate-*r*60.1%
neg-mul-160.1%
distribute-rgt-neg-in60.1%
mul-1-neg60.1%
distribute-lft-in60.1%
neg-mul-160.1%
+-commutative60.1%
associate-*r*60.1%
Simplified63.8%
Final simplification48.5%
(FPCore (x y z) :precision binary64 (if (<= x -420000000.0) (/ x (/ y (+ -1.0 z))) (if (<= x 4.2) (/ (- 4.0 (* x z)) y) (* x (/ (- 1.0 z) y)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -420000000.0) {
tmp = x / (y / (-1.0 + z));
} else if (x <= 4.2) {
tmp = (4.0 - (x * z)) / y;
} else {
tmp = x * ((1.0 - z) / y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-420000000.0d0)) then
tmp = x / (y / ((-1.0d0) + z))
else if (x <= 4.2d0) then
tmp = (4.0d0 - (x * z)) / y
else
tmp = x * ((1.0d0 - z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -420000000.0) {
tmp = x / (y / (-1.0 + z));
} else if (x <= 4.2) {
tmp = (4.0 - (x * z)) / y;
} else {
tmp = x * ((1.0 - z) / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -420000000.0: tmp = x / (y / (-1.0 + z)) elif x <= 4.2: tmp = (4.0 - (x * z)) / y else: tmp = x * ((1.0 - z) / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -420000000.0) tmp = Float64(x / Float64(y / Float64(-1.0 + z))); elseif (x <= 4.2) tmp = Float64(Float64(4.0 - Float64(x * z)) / y); else tmp = Float64(x * Float64(Float64(1.0 - z) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -420000000.0) tmp = x / (y / (-1.0 + z)); elseif (x <= 4.2) tmp = (4.0 - (x * z)) / y; else tmp = x * ((1.0 - z) / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -420000000.0], N[(x / N[(y / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2], N[(N[(4.0 - N[(x * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(1.0 - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -420000000:\\
\;\;\;\;\frac{x}{\frac{y}{-1 + z}}\\
\mathbf{elif}\;x \leq 4.2:\\
\;\;\;\;\frac{4 - x \cdot z}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1 - z}{y}\\
\end{array}
\end{array}
if x < -4.2e8Initial program 80.5%
fabs-sub80.5%
associate-*l/71.0%
associate-*r/86.5%
fmm-def93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.4%
fma-undefine49.4%
associate-*r/40.9%
associate-*l/46.4%
div-inv46.4%
sub-neg46.4%
metadata-eval46.4%
distribute-neg-in46.4%
+-commutative46.4%
cancel-sign-sub-inv46.4%
div-inv46.4%
associate-*l/40.9%
sub-div48.4%
Applied egg-rr48.4%
Taylor expanded in x around inf 48.4%
associate-/l*56.8%
sub-neg56.8%
metadata-eval56.8%
Simplified56.8%
clear-num56.8%
un-div-inv56.8%
Applied egg-rr56.8%
if -4.2e8 < x < 4.20000000000000018Initial program 95.7%
fabs-sub95.7%
associate-*l/99.8%
associate-*r/87.1%
fmm-def87.1%
distribute-neg-frac87.1%
+-commutative87.1%
distribute-neg-in87.1%
unsub-neg87.1%
metadata-eval87.1%
Simplified87.1%
fma-undefine87.1%
associate-*r/99.8%
associate-*l/95.7%
div-inv95.7%
sub-neg95.7%
metadata-eval95.7%
distribute-neg-in95.7%
+-commutative95.7%
cancel-sign-sub-inv95.7%
div-inv95.7%
fabs-sub95.7%
add-sqr-sqrt51.0%
fabs-sqr51.0%
add-sqr-sqrt52.0%
associate-*l/54.0%
sub-div54.0%
Applied egg-rr54.0%
Taylor expanded in x around 0 53.0%
if 4.20000000000000018 < x Initial program 88.3%
fabs-sub88.3%
associate-*l/81.2%
associate-*r/88.3%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
fma-undefine88.3%
associate-*r/81.2%
associate-*l/88.3%
div-inv88.1%
sub-neg88.1%
metadata-eval88.1%
distribute-neg-in88.1%
+-commutative88.1%
cancel-sign-sub-inv88.1%
div-inv88.3%
fabs-sub88.3%
add-sqr-sqrt57.2%
fabs-sqr57.2%
add-sqr-sqrt57.9%
sub-neg57.9%
distribute-rgt-neg-in57.9%
Applied egg-rr57.9%
Taylor expanded in x around -inf 64.6%
mul-1-neg64.6%
div-sub64.6%
associate-/l*61.3%
sub-neg61.3%
metadata-eval61.3%
distribute-rgt-in61.3%
neg-mul-161.3%
sub-neg61.3%
*-lft-identity61.3%
sub-neg61.3%
distribute-rgt-in61.3%
*-rgt-identity61.3%
remove-double-neg61.3%
*-commutative61.3%
mul-1-neg61.3%
associate-*r*61.3%
neg-mul-161.3%
distribute-rgt-neg-in61.3%
mul-1-neg61.3%
distribute-lft-in61.3%
neg-mul-161.3%
+-commutative61.3%
associate-*r*61.3%
Simplified64.6%
Final simplification56.3%
(FPCore (x y z) :precision binary64 (if (<= x -4.0) (- (/ (- z) (/ y x)) (/ (+ x 4.0) y)) (/ (- (+ x 4.0) (* x z)) y)))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = (-z / (y / x)) - ((x + 4.0) / y);
} else {
tmp = ((x + 4.0) - (x * z)) / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.0d0)) then
tmp = (-z / (y / x)) - ((x + 4.0d0) / y)
else
tmp = ((x + 4.0d0) - (x * z)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = (-z / (y / x)) - ((x + 4.0) / y);
} else {
tmp = ((x + 4.0) - (x * z)) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.0: tmp = (-z / (y / x)) - ((x + 4.0) / y) else: tmp = ((x + 4.0) - (x * z)) / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.0) tmp = Float64(Float64(Float64(-z) / Float64(y / x)) - Float64(Float64(x + 4.0) / y)); else tmp = Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.0) tmp = (-z / (y / x)) - ((x + 4.0) / y); else tmp = ((x + 4.0) - (x * z)) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.0], N[(N[((-z) / N[(y / x), $MachinePrecision]), $MachinePrecision] - N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4:\\
\;\;\;\;\frac{-z}{\frac{y}{x}} - \frac{x + 4}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + 4\right) - x \cdot z}{y}\\
\end{array}
\end{array}
if x < -4Initial program 81.0%
fabs-sub81.0%
associate-*l/71.9%
associate-*r/86.9%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
add-sqr-sqrt53.4%
fabs-sqr53.4%
add-sqr-sqrt53.8%
fma-undefine48.0%
associate-*r/39.7%
associate-*l/45.1%
div-inv45.1%
sub-neg45.1%
metadata-eval45.1%
distribute-neg-in45.1%
+-commutative45.1%
cancel-sign-sub-inv45.1%
div-inv45.1%
associate-*l/39.7%
associate-*r/48.0%
Applied egg-rr48.0%
*-commutative48.0%
associate-/r/45.1%
frac-2neg45.1%
add-sqr-sqrt23.2%
sqrt-unprod48.3%
sqr-neg48.3%
sqrt-unprod33.4%
add-sqr-sqrt46.8%
Applied egg-rr46.8%
if -4 < x Initial program 93.6%
fabs-sub93.6%
associate-*l/94.7%
associate-*r/87.3%
fmm-def88.9%
distribute-neg-frac88.9%
+-commutative88.9%
distribute-neg-in88.9%
unsub-neg88.9%
metadata-eval88.9%
Simplified88.9%
fma-undefine87.3%
associate-*r/94.7%
associate-*l/93.6%
div-inv93.6%
sub-neg93.6%
metadata-eval93.6%
distribute-neg-in93.6%
+-commutative93.6%
cancel-sign-sub-inv93.6%
div-inv93.6%
fabs-sub93.6%
add-sqr-sqrt52.2%
fabs-sqr52.2%
add-sqr-sqrt53.1%
associate-*l/53.6%
sub-div55.7%
Applied egg-rr55.7%
Final simplification53.3%
(FPCore (x y z) :precision binary64 (if (<= x -380000000.0) (* x (/ (+ -1.0 z) y)) (if (<= x -1e-47) (* x (/ z (- y))) (/ (+ x 4.0) y))))
double code(double x, double y, double z) {
double tmp;
if (x <= -380000000.0) {
tmp = x * ((-1.0 + z) / y);
} else if (x <= -1e-47) {
tmp = x * (z / -y);
} else {
tmp = (x + 4.0) / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-380000000.0d0)) then
tmp = x * (((-1.0d0) + z) / y)
else if (x <= (-1d-47)) then
tmp = x * (z / -y)
else
tmp = (x + 4.0d0) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -380000000.0) {
tmp = x * ((-1.0 + z) / y);
} else if (x <= -1e-47) {
tmp = x * (z / -y);
} else {
tmp = (x + 4.0) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -380000000.0: tmp = x * ((-1.0 + z) / y) elif x <= -1e-47: tmp = x * (z / -y) else: tmp = (x + 4.0) / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -380000000.0) tmp = Float64(x * Float64(Float64(-1.0 + z) / y)); elseif (x <= -1e-47) tmp = Float64(x * Float64(z / Float64(-y))); else tmp = Float64(Float64(x + 4.0) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -380000000.0) tmp = x * ((-1.0 + z) / y); elseif (x <= -1e-47) tmp = x * (z / -y); else tmp = (x + 4.0) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -380000000.0], N[(x * N[(N[(-1.0 + z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1e-47], N[(x * N[(z / (-y)), $MachinePrecision]), $MachinePrecision], N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -380000000:\\
\;\;\;\;x \cdot \frac{-1 + z}{y}\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \frac{z}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + 4}{y}\\
\end{array}
\end{array}
if x < -3.8e8Initial program 80.5%
fabs-sub80.5%
associate-*l/71.0%
associate-*r/86.5%
fmm-def93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.4%
fma-undefine49.4%
associate-*r/40.9%
associate-*l/46.4%
div-inv46.4%
sub-neg46.4%
metadata-eval46.4%
distribute-neg-in46.4%
+-commutative46.4%
cancel-sign-sub-inv46.4%
div-inv46.4%
associate-*l/40.9%
sub-div48.4%
Applied egg-rr48.4%
Taylor expanded in x around inf 48.4%
associate-/l*56.8%
sub-neg56.8%
metadata-eval56.8%
Simplified56.8%
if -3.8e8 < x < -9.9999999999999997e-48Initial program 99.4%
fabs-sub99.4%
associate-*l/99.7%
associate-*r/99.9%
fmm-def99.9%
distribute-neg-frac99.9%
+-commutative99.9%
distribute-neg-in99.9%
unsub-neg99.9%
metadata-eval99.9%
Simplified99.9%
fma-undefine99.9%
associate-*r/99.7%
associate-*l/99.4%
div-inv99.3%
sub-neg99.3%
metadata-eval99.3%
distribute-neg-in99.3%
+-commutative99.3%
cancel-sign-sub-inv99.3%
div-inv99.4%
fabs-sub99.4%
add-sqr-sqrt63.5%
fabs-sqr63.5%
add-sqr-sqrt64.0%
associate-*l/64.2%
sub-div64.2%
Applied egg-rr64.2%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
associate-*r/48.0%
distribute-rgt-neg-in48.0%
distribute-frac-neg248.0%
Simplified48.0%
if -9.9999999999999997e-48 < x Initial program 93.3%
fabs-sub93.3%
associate-*l/94.4%
associate-*r/86.6%
fmm-def88.3%
distribute-neg-frac88.3%
+-commutative88.3%
distribute-neg-in88.3%
unsub-neg88.3%
metadata-eval88.3%
Simplified88.3%
fma-undefine86.6%
associate-*r/94.4%
associate-*l/93.3%
div-inv93.3%
sub-neg93.3%
metadata-eval93.3%
distribute-neg-in93.3%
+-commutative93.3%
cancel-sign-sub-inv93.3%
div-inv93.3%
fabs-sub93.3%
add-sqr-sqrt52.0%
fabs-sqr52.0%
add-sqr-sqrt52.9%
associate-*l/53.4%
sub-div55.7%
Applied egg-rr55.7%
Taylor expanded in z around 0 37.1%
Final simplification42.7%
(FPCore (x y z) :precision binary64 (if (<= x -4.0) (- (/ (- z) (/ y x)) (/ x y)) (/ (- (+ x 4.0) (* x z)) y)))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = (-z / (y / x)) - (x / y);
} else {
tmp = ((x + 4.0) - (x * z)) / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.0d0)) then
tmp = (-z / (y / x)) - (x / y)
else
tmp = ((x + 4.0d0) - (x * z)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = (-z / (y / x)) - (x / y);
} else {
tmp = ((x + 4.0) - (x * z)) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.0: tmp = (-z / (y / x)) - (x / y) else: tmp = ((x + 4.0) - (x * z)) / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.0) tmp = Float64(Float64(Float64(-z) / Float64(y / x)) - Float64(x / y)); else tmp = Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.0) tmp = (-z / (y / x)) - (x / y); else tmp = ((x + 4.0) - (x * z)) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.0], N[(N[((-z) / N[(y / x), $MachinePrecision]), $MachinePrecision] - N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4:\\
\;\;\;\;\frac{-z}{\frac{y}{x}} - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + 4\right) - x \cdot z}{y}\\
\end{array}
\end{array}
if x < -4Initial program 81.0%
fabs-sub81.0%
associate-*l/71.9%
associate-*r/86.9%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
add-sqr-sqrt53.4%
fabs-sqr53.4%
add-sqr-sqrt53.8%
fma-undefine48.0%
associate-*r/39.7%
associate-*l/45.1%
div-inv45.1%
sub-neg45.1%
metadata-eval45.1%
distribute-neg-in45.1%
+-commutative45.1%
cancel-sign-sub-inv45.1%
div-inv45.1%
associate-*l/39.7%
associate-*r/48.0%
Applied egg-rr48.0%
*-commutative48.0%
associate-/r/45.1%
frac-2neg45.1%
add-sqr-sqrt23.2%
sqrt-unprod48.3%
sqr-neg48.3%
sqrt-unprod33.4%
add-sqr-sqrt46.8%
Applied egg-rr46.8%
Taylor expanded in x around inf 46.8%
if -4 < x Initial program 93.6%
fabs-sub93.6%
associate-*l/94.7%
associate-*r/87.3%
fmm-def88.9%
distribute-neg-frac88.9%
+-commutative88.9%
distribute-neg-in88.9%
unsub-neg88.9%
metadata-eval88.9%
Simplified88.9%
fma-undefine87.3%
associate-*r/94.7%
associate-*l/93.6%
div-inv93.6%
sub-neg93.6%
metadata-eval93.6%
distribute-neg-in93.6%
+-commutative93.6%
cancel-sign-sub-inv93.6%
div-inv93.6%
fabs-sub93.6%
add-sqr-sqrt52.2%
fabs-sqr52.2%
add-sqr-sqrt53.1%
associate-*l/53.6%
sub-div55.7%
Applied egg-rr55.7%
Final simplification53.3%
(FPCore (x y z) :precision binary64 (if (<= x -31500000.0) (/ x (/ y (+ -1.0 z))) (/ (- (+ x 4.0) (* x z)) y)))
double code(double x, double y, double z) {
double tmp;
if (x <= -31500000.0) {
tmp = x / (y / (-1.0 + z));
} else {
tmp = ((x + 4.0) - (x * z)) / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-31500000.0d0)) then
tmp = x / (y / ((-1.0d0) + z))
else
tmp = ((x + 4.0d0) - (x * z)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -31500000.0) {
tmp = x / (y / (-1.0 + z));
} else {
tmp = ((x + 4.0) - (x * z)) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -31500000.0: tmp = x / (y / (-1.0 + z)) else: tmp = ((x + 4.0) - (x * z)) / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -31500000.0) tmp = Float64(x / Float64(y / Float64(-1.0 + z))); else tmp = Float64(Float64(Float64(x + 4.0) - Float64(x * z)) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -31500000.0) tmp = x / (y / (-1.0 + z)); else tmp = ((x + 4.0) - (x * z)) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -31500000.0], N[(x / N[(y / N[(-1.0 + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + 4.0), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -31500000:\\
\;\;\;\;\frac{x}{\frac{y}{-1 + z}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x + 4\right) - x \cdot z}{y}\\
\end{array}
\end{array}
if x < -3.15e7Initial program 80.5%
fabs-sub80.5%
associate-*l/71.0%
associate-*r/86.5%
fmm-def93.9%
distribute-neg-frac93.9%
+-commutative93.9%
distribute-neg-in93.9%
unsub-neg93.9%
metadata-eval93.9%
Simplified93.9%
add-sqr-sqrt54.9%
fabs-sqr54.9%
add-sqr-sqrt55.4%
fma-undefine49.4%
associate-*r/40.9%
associate-*l/46.4%
div-inv46.4%
sub-neg46.4%
metadata-eval46.4%
distribute-neg-in46.4%
+-commutative46.4%
cancel-sign-sub-inv46.4%
div-inv46.4%
associate-*l/40.9%
sub-div48.4%
Applied egg-rr48.4%
Taylor expanded in x around inf 48.4%
associate-/l*56.8%
sub-neg56.8%
metadata-eval56.8%
Simplified56.8%
clear-num56.8%
un-div-inv56.8%
Applied egg-rr56.8%
if -3.15e7 < x Initial program 93.7%
fabs-sub93.7%
associate-*l/94.7%
associate-*r/87.4%
fmm-def89.0%
distribute-neg-frac89.0%
+-commutative89.0%
distribute-neg-in89.0%
unsub-neg89.0%
metadata-eval89.0%
Simplified89.0%
fma-undefine87.4%
associate-*r/94.7%
associate-*l/93.7%
div-inv93.6%
sub-neg93.6%
metadata-eval93.6%
distribute-neg-in93.6%
+-commutative93.6%
cancel-sign-sub-inv93.6%
div-inv93.7%
fabs-sub93.7%
add-sqr-sqrt52.7%
fabs-sqr52.7%
add-sqr-sqrt53.6%
associate-*l/54.1%
sub-div56.2%
Applied egg-rr56.2%
Final simplification56.3%
(FPCore (x y z) :precision binary64 (if (<= x -1.55) (/ (- x) y) (if (<= x 4.0) (/ 4.0 y) (/ x y))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.55) {
tmp = -x / y;
} else if (x <= 4.0) {
tmp = 4.0 / y;
} else {
tmp = x / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.55d0)) then
tmp = -x / y
else if (x <= 4.0d0) then
tmp = 4.0d0 / y
else
tmp = x / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.55) {
tmp = -x / y;
} else if (x <= 4.0) {
tmp = 4.0 / y;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.55: tmp = -x / y elif x <= 4.0: tmp = 4.0 / y else: tmp = x / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.55) tmp = Float64(Float64(-x) / y); elseif (x <= 4.0) tmp = Float64(4.0 / y); else tmp = Float64(x / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.55) tmp = -x / y; elseif (x <= 4.0) tmp = 4.0 / y; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.55], N[((-x) / y), $MachinePrecision], If[LessEqual[x, 4.0], N[(4.0 / y), $MachinePrecision], N[(x / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.55:\\
\;\;\;\;\frac{-x}{y}\\
\mathbf{elif}\;x \leq 4:\\
\;\;\;\;\frac{4}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if x < -1.55000000000000004Initial program 81.0%
fabs-sub81.0%
associate-*l/71.9%
associate-*r/86.9%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
add-sqr-sqrt53.4%
fabs-sqr53.4%
add-sqr-sqrt53.8%
fma-undefine48.0%
associate-*r/39.7%
associate-*l/45.1%
div-inv45.1%
sub-neg45.1%
metadata-eval45.1%
distribute-neg-in45.1%
+-commutative45.1%
cancel-sign-sub-inv45.1%
div-inv45.1%
associate-*l/39.7%
sub-div47.0%
Applied egg-rr47.0%
Taylor expanded in x around inf 47.0%
associate-/l*55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in z around 0 35.1%
mul-1-neg35.1%
distribute-frac-neg35.1%
Simplified35.1%
if -1.55000000000000004 < x < 4Initial program 95.7%
fabs-sub95.7%
associate-*l/99.8%
associate-*r/86.9%
fmm-def86.9%
distribute-neg-frac86.9%
+-commutative86.9%
distribute-neg-in86.9%
unsub-neg86.9%
metadata-eval86.9%
Simplified86.9%
fma-undefine86.9%
associate-*r/99.8%
associate-*l/95.7%
div-inv95.7%
sub-neg95.7%
metadata-eval95.7%
distribute-neg-in95.7%
+-commutative95.7%
cancel-sign-sub-inv95.7%
div-inv95.7%
fabs-sub95.7%
add-sqr-sqrt50.2%
fabs-sqr50.2%
add-sqr-sqrt51.3%
associate-*l/53.3%
sub-div53.3%
Applied egg-rr53.3%
Taylor expanded in x around 0 36.0%
if 4 < x Initial program 88.3%
fabs-sub88.3%
associate-*l/81.2%
associate-*r/88.3%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
fma-undefine88.3%
associate-*r/81.2%
associate-*l/88.3%
div-inv88.1%
sub-neg88.1%
metadata-eval88.1%
distribute-neg-in88.1%
+-commutative88.1%
cancel-sign-sub-inv88.1%
div-inv88.3%
fabs-sub88.3%
add-sqr-sqrt57.2%
fabs-sqr57.2%
add-sqr-sqrt57.9%
associate-*l/54.3%
sub-div62.0%
Applied egg-rr62.0%
Taylor expanded in x around inf 61.3%
Taylor expanded in z around 0 34.5%
(FPCore (x y z) :precision binary64 (if (<= x -4.0) (/ (- -4.0 x) y) (/ (+ x 4.0) y)))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = (-4.0 - x) / y;
} else {
tmp = (x + 4.0) / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.0d0)) then
tmp = ((-4.0d0) - x) / y
else
tmp = (x + 4.0d0) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = (-4.0 - x) / y;
} else {
tmp = (x + 4.0) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.0: tmp = (-4.0 - x) / y else: tmp = (x + 4.0) / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.0) tmp = Float64(Float64(-4.0 - x) / y); else tmp = Float64(Float64(x + 4.0) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.0) tmp = (-4.0 - x) / y; else tmp = (x + 4.0) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.0], N[(N[(-4.0 - x), $MachinePrecision] / y), $MachinePrecision], N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4:\\
\;\;\;\;\frac{-4 - x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + 4}{y}\\
\end{array}
\end{array}
if x < -4Initial program 81.0%
fabs-sub81.0%
associate-*l/71.9%
associate-*r/86.9%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
add-sqr-sqrt53.4%
fabs-sqr53.4%
add-sqr-sqrt53.8%
fma-undefine48.0%
associate-*r/39.7%
associate-*l/45.1%
div-inv45.1%
sub-neg45.1%
metadata-eval45.1%
distribute-neg-in45.1%
+-commutative45.1%
cancel-sign-sub-inv45.1%
div-inv45.1%
associate-*l/39.7%
sub-div47.0%
Applied egg-rr47.0%
Taylor expanded in z around 0 35.1%
associate-*r/35.1%
distribute-lft-in35.1%
metadata-eval35.1%
neg-mul-135.1%
sub-neg35.1%
Simplified35.1%
if -4 < x Initial program 93.6%
fabs-sub93.6%
associate-*l/94.7%
associate-*r/87.3%
fmm-def88.9%
distribute-neg-frac88.9%
+-commutative88.9%
distribute-neg-in88.9%
unsub-neg88.9%
metadata-eval88.9%
Simplified88.9%
fma-undefine87.3%
associate-*r/94.7%
associate-*l/93.6%
div-inv93.6%
sub-neg93.6%
metadata-eval93.6%
distribute-neg-in93.6%
+-commutative93.6%
cancel-sign-sub-inv93.6%
div-inv93.6%
fabs-sub93.6%
add-sqr-sqrt52.2%
fabs-sqr52.2%
add-sqr-sqrt53.1%
associate-*l/53.6%
sub-div55.7%
Applied egg-rr55.7%
Taylor expanded in z around 0 36.0%
Final simplification35.8%
(FPCore (x y z) :precision binary64 (if (<= x -4.0) (/ (- x) y) (/ (+ x 4.0) y)))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = -x / y;
} else {
tmp = (x + 4.0) / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.0d0)) then
tmp = -x / y
else
tmp = (x + 4.0d0) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.0) {
tmp = -x / y;
} else {
tmp = (x + 4.0) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.0: tmp = -x / y else: tmp = (x + 4.0) / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.0) tmp = Float64(Float64(-x) / y); else tmp = Float64(Float64(x + 4.0) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.0) tmp = -x / y; else tmp = (x + 4.0) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.0], N[((-x) / y), $MachinePrecision], N[(N[(x + 4.0), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4:\\
\;\;\;\;\frac{-x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + 4}{y}\\
\end{array}
\end{array}
if x < -4Initial program 81.0%
fabs-sub81.0%
associate-*l/71.9%
associate-*r/86.9%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
add-sqr-sqrt53.4%
fabs-sqr53.4%
add-sqr-sqrt53.8%
fma-undefine48.0%
associate-*r/39.7%
associate-*l/45.1%
div-inv45.1%
sub-neg45.1%
metadata-eval45.1%
distribute-neg-in45.1%
+-commutative45.1%
cancel-sign-sub-inv45.1%
div-inv45.1%
associate-*l/39.7%
sub-div47.0%
Applied egg-rr47.0%
Taylor expanded in x around inf 47.0%
associate-/l*55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in z around 0 35.1%
mul-1-neg35.1%
distribute-frac-neg35.1%
Simplified35.1%
if -4 < x Initial program 93.6%
fabs-sub93.6%
associate-*l/94.7%
associate-*r/87.3%
fmm-def88.9%
distribute-neg-frac88.9%
+-commutative88.9%
distribute-neg-in88.9%
unsub-neg88.9%
metadata-eval88.9%
Simplified88.9%
fma-undefine87.3%
associate-*r/94.7%
associate-*l/93.6%
div-inv93.6%
sub-neg93.6%
metadata-eval93.6%
distribute-neg-in93.6%
+-commutative93.6%
cancel-sign-sub-inv93.6%
div-inv93.6%
fabs-sub93.6%
add-sqr-sqrt52.2%
fabs-sqr52.2%
add-sqr-sqrt53.1%
associate-*l/53.6%
sub-div55.7%
Applied egg-rr55.7%
Taylor expanded in z around 0 36.0%
Final simplification35.8%
(FPCore (x y z) :precision binary64 (if (<= x 4.0) (/ 4.0 y) (/ x y)))
double code(double x, double y, double z) {
double tmp;
if (x <= 4.0) {
tmp = 4.0 / y;
} else {
tmp = x / y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 4.0d0) then
tmp = 4.0d0 / y
else
tmp = x / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 4.0) {
tmp = 4.0 / y;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 4.0: tmp = 4.0 / y else: tmp = x / y return tmp
function code(x, y, z) tmp = 0.0 if (x <= 4.0) tmp = Float64(4.0 / y); else tmp = Float64(x / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 4.0) tmp = 4.0 / y; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 4.0], N[(4.0 / y), $MachinePrecision], N[(x / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4:\\
\;\;\;\;\frac{4}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if x < 4Initial program 90.7%
fabs-sub90.7%
associate-*l/90.4%
associate-*r/86.9%
fmm-def89.3%
distribute-neg-frac89.3%
+-commutative89.3%
distribute-neg-in89.3%
unsub-neg89.3%
metadata-eval89.3%
Simplified89.3%
fma-undefine86.9%
associate-*r/90.4%
associate-*l/90.7%
div-inv90.7%
sub-neg90.7%
metadata-eval90.7%
distribute-neg-in90.7%
+-commutative90.7%
cancel-sign-sub-inv90.7%
div-inv90.7%
fabs-sub90.7%
add-sqr-sqrt45.4%
fabs-sqr45.4%
add-sqr-sqrt46.3%
associate-*l/46.3%
sub-div48.3%
Applied egg-rr48.3%
Taylor expanded in x around 0 25.0%
if 4 < x Initial program 88.3%
fabs-sub88.3%
associate-*l/81.2%
associate-*r/88.3%
fmm-def94.1%
distribute-neg-frac94.1%
+-commutative94.1%
distribute-neg-in94.1%
unsub-neg94.1%
metadata-eval94.1%
Simplified94.1%
fma-undefine88.3%
associate-*r/81.2%
associate-*l/88.3%
div-inv88.1%
sub-neg88.1%
metadata-eval88.1%
distribute-neg-in88.1%
+-commutative88.1%
cancel-sign-sub-inv88.1%
div-inv88.3%
fabs-sub88.3%
add-sqr-sqrt57.2%
fabs-sqr57.2%
add-sqr-sqrt57.9%
associate-*l/54.3%
sub-div62.0%
Applied egg-rr62.0%
Taylor expanded in x around inf 61.3%
Taylor expanded in z around 0 34.5%
(FPCore (x y z) :precision binary64 (/ 4.0 y))
double code(double x, double y, double z) {
return 4.0 / y;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 4.0d0 / y
end function
public static double code(double x, double y, double z) {
return 4.0 / y;
}
def code(x, y, z): return 4.0 / y
function code(x, y, z) return Float64(4.0 / y) end
function tmp = code(x, y, z) tmp = 4.0 / y; end
code[x_, y_, z_] := N[(4.0 / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{4}{y}
\end{array}
Initial program 90.2%
fabs-sub90.2%
associate-*l/88.5%
associate-*r/87.2%
fmm-def90.3%
distribute-neg-frac90.3%
+-commutative90.3%
distribute-neg-in90.3%
unsub-neg90.3%
metadata-eval90.3%
Simplified90.3%
fma-undefine87.2%
associate-*r/88.5%
associate-*l/90.2%
div-inv90.2%
sub-neg90.2%
metadata-eval90.2%
distribute-neg-in90.2%
+-commutative90.2%
cancel-sign-sub-inv90.2%
div-inv90.2%
fabs-sub90.2%
add-sqr-sqrt47.8%
fabs-sqr47.8%
add-sqr-sqrt48.6%
associate-*l/48.0%
sub-div51.1%
Applied egg-rr51.1%
Taylor expanded in x around 0 20.6%
(FPCore (x y z) :precision binary64 (/ -4.0 y))
double code(double x, double y, double z) {
return -4.0 / y;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (-4.0d0) / y
end function
public static double code(double x, double y, double z) {
return -4.0 / y;
}
def code(x, y, z): return -4.0 / y
function code(x, y, z) return Float64(-4.0 / y) end
function tmp = code(x, y, z) tmp = -4.0 / y; end
code[x_, y_, z_] := N[(-4.0 / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{-4}{y}
\end{array}
Initial program 90.2%
fabs-sub90.2%
associate-*l/88.5%
associate-*r/87.2%
fmm-def90.3%
distribute-neg-frac90.3%
+-commutative90.3%
distribute-neg-in90.3%
unsub-neg90.3%
metadata-eval90.3%
Simplified90.3%
add-sqr-sqrt43.8%
fabs-sqr43.8%
add-sqr-sqrt44.7%
fma-undefine41.9%
associate-*r/41.8%
associate-*l/42.9%
div-inv42.8%
sub-neg42.8%
metadata-eval42.8%
distribute-neg-in42.8%
+-commutative42.8%
cancel-sign-sub-inv42.8%
div-inv42.9%
associate-*l/41.8%
sub-div44.5%
Applied egg-rr44.5%
Taylor expanded in x around 0 19.8%
herbie shell --seed 2024157
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))