\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -3.962990925915687 \cdot 10^{+91}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;z \le 3.471068194478418 \cdot 10^{+142}:\\
\;\;\;\;x \cdot \left(y \cdot \frac{z}{\sqrt{z \cdot z - a \cdot t}}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r14920612 = x;
double r14920613 = y;
double r14920614 = r14920612 * r14920613;
double r14920615 = z;
double r14920616 = r14920614 * r14920615;
double r14920617 = r14920615 * r14920615;
double r14920618 = t;
double r14920619 = a;
double r14920620 = r14920618 * r14920619;
double r14920621 = r14920617 - r14920620;
double r14920622 = sqrt(r14920621);
double r14920623 = r14920616 / r14920622;
return r14920623;
}
double f(double x, double y, double z, double t, double a) {
double r14920624 = z;
double r14920625 = -3.962990925915687e+91;
bool r14920626 = r14920624 <= r14920625;
double r14920627 = x;
double r14920628 = y;
double r14920629 = -r14920628;
double r14920630 = r14920627 * r14920629;
double r14920631 = 3.471068194478418e+142;
bool r14920632 = r14920624 <= r14920631;
double r14920633 = r14920624 * r14920624;
double r14920634 = a;
double r14920635 = t;
double r14920636 = r14920634 * r14920635;
double r14920637 = r14920633 - r14920636;
double r14920638 = sqrt(r14920637);
double r14920639 = r14920624 / r14920638;
double r14920640 = r14920628 * r14920639;
double r14920641 = r14920627 * r14920640;
double r14920642 = r14920627 * r14920628;
double r14920643 = r14920632 ? r14920641 : r14920642;
double r14920644 = r14920626 ? r14920630 : r14920643;
return r14920644;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 24.0 |
|---|---|
| Target | 8.1 |
| Herbie | 6.4 |
if z < -3.962990925915687e+91Initial program 42.0
Taylor expanded around -inf 2.7
Simplified2.7
if -3.962990925915687e+91 < z < 3.471068194478418e+142Initial program 10.8
rmApplied associate-/l*9.3
rmApplied clear-num9.7
rmApplied *-un-lft-identity9.7
Applied *-un-lft-identity9.7
Applied sqrt-prod9.7
Applied times-frac9.7
Applied times-frac9.9
Applied add-cube-cbrt9.9
Applied times-frac9.6
Simplified9.5
Simplified9.0
if 3.471068194478418e+142 < z Initial program 50.7
Taylor expanded around inf 1.5
Final simplification6.4
herbie shell --seed 2019164 +o rules:numerics
(FPCore (x y z t a)
:name "Statistics.Math.RootFinding:ridders from math-functions-0.1.5.2"
:herbie-target
(if (< z -3.1921305903852764e+46) (- (* y x)) (if (< z 5.976268120920894e+90) (/ (* x z) (/ (sqrt (- (* z z) (* a t))) y)) (* y x)))
(/ (* (* x y) z) (sqrt (- (* z z) (* t a)))))