\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -5.667193347780096 \cdot 10^{+153}:\\
\;\;\;\;y \cdot \left(-x\right)\\
\mathbf{elif}\;z \le -1.0059935812111571 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(x \cdot \frac{z}{\sqrt{z \cdot z - t \cdot a}}\right)\\
\mathbf{elif}\;z \le 4.2013669449125285 \cdot 10^{-250}:\\
\;\;\;\;\frac{\frac{z \cdot \left(y \cdot x\right)}{\sqrt{\sqrt{z \cdot z - t \cdot a}}}}{\sqrt{\sqrt{z \cdot z - t \cdot a}}}\\
\mathbf{elif}\;z \le 9.659251240846705 \cdot 10^{+99}:\\
\;\;\;\;y \cdot \left(x \cdot \frac{z}{\sqrt{z \cdot z - t \cdot a}}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot x\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r13550676 = x;
double r13550677 = y;
double r13550678 = r13550676 * r13550677;
double r13550679 = z;
double r13550680 = r13550678 * r13550679;
double r13550681 = r13550679 * r13550679;
double r13550682 = t;
double r13550683 = a;
double r13550684 = r13550682 * r13550683;
double r13550685 = r13550681 - r13550684;
double r13550686 = sqrt(r13550685);
double r13550687 = r13550680 / r13550686;
return r13550687;
}
double f(double x, double y, double z, double t, double a) {
double r13550688 = z;
double r13550689 = -5.667193347780096e+153;
bool r13550690 = r13550688 <= r13550689;
double r13550691 = y;
double r13550692 = x;
double r13550693 = -r13550692;
double r13550694 = r13550691 * r13550693;
double r13550695 = -1.0059935812111571e-240;
bool r13550696 = r13550688 <= r13550695;
double r13550697 = r13550688 * r13550688;
double r13550698 = t;
double r13550699 = a;
double r13550700 = r13550698 * r13550699;
double r13550701 = r13550697 - r13550700;
double r13550702 = sqrt(r13550701);
double r13550703 = r13550688 / r13550702;
double r13550704 = r13550692 * r13550703;
double r13550705 = r13550691 * r13550704;
double r13550706 = 4.2013669449125285e-250;
bool r13550707 = r13550688 <= r13550706;
double r13550708 = r13550691 * r13550692;
double r13550709 = r13550688 * r13550708;
double r13550710 = sqrt(r13550702);
double r13550711 = r13550709 / r13550710;
double r13550712 = r13550711 / r13550710;
double r13550713 = 9.659251240846705e+99;
bool r13550714 = r13550688 <= r13550713;
double r13550715 = r13550714 ? r13550705 : r13550708;
double r13550716 = r13550707 ? r13550712 : r13550715;
double r13550717 = r13550696 ? r13550705 : r13550716;
double r13550718 = r13550690 ? r13550694 : r13550717;
return r13550718;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 24.8 |
|---|---|
| Target | 7.9 |
| Herbie | 6.1 |
if z < -5.667193347780096e+153Initial program 53.5
rmApplied *-un-lft-identity53.5
Applied sqrt-prod53.5
Applied times-frac53.5
Simplified53.5
rmApplied associate-*l*53.5
Taylor expanded around -inf 1.0
Simplified1.0
if -5.667193347780096e+153 < z < -1.0059935812111571e-240 or 4.2013669449125285e-250 < z < 9.659251240846705e+99Initial program 10.7
rmApplied *-un-lft-identity10.7
Applied sqrt-prod10.7
Applied times-frac8.2
Simplified8.2
rmApplied associate-*l*7.6
if -1.0059935812111571e-240 < z < 4.2013669449125285e-250Initial program 15.8
rmApplied add-sqr-sqrt15.8
Applied sqrt-prod15.9
Applied associate-/r*15.9
if 9.659251240846705e+99 < z Initial program 43.9
rmApplied *-un-lft-identity43.9
Applied sqrt-prod43.9
Applied times-frac42.1
Simplified42.1
rmApplied add-cube-cbrt42.4
Applied add-cube-cbrt42.2
Applied times-frac42.2
Simplified42.2
Taylor expanded around inf 2.4
Final simplification6.1
herbie shell --seed 2019168
(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)))))