\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -1.8913959868564195 \cdot 10^{+154}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;z \le 1.1848486164183457 \cdot 10^{+114}:\\
\;\;\;\;\left(x \cdot \left(y \cdot \left(\frac{\sqrt[3]{z}}{\sqrt[3]{\sqrt{z \cdot z - t \cdot a}}} \cdot \frac{\sqrt[3]{z}}{\sqrt[3]{\sqrt{z \cdot z - t \cdot a}}}\right)\right)\right) \cdot \frac{\sqrt[3]{z}}{\sqrt[3]{\sqrt{z \cdot z - t \cdot a}}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r15198488 = x;
double r15198489 = y;
double r15198490 = r15198488 * r15198489;
double r15198491 = z;
double r15198492 = r15198490 * r15198491;
double r15198493 = r15198491 * r15198491;
double r15198494 = t;
double r15198495 = a;
double r15198496 = r15198494 * r15198495;
double r15198497 = r15198493 - r15198496;
double r15198498 = sqrt(r15198497);
double r15198499 = r15198492 / r15198498;
return r15198499;
}
double f(double x, double y, double z, double t, double a) {
double r15198500 = z;
double r15198501 = -1.8913959868564195e+154;
bool r15198502 = r15198500 <= r15198501;
double r15198503 = x;
double r15198504 = y;
double r15198505 = -r15198504;
double r15198506 = r15198503 * r15198505;
double r15198507 = 1.1848486164183457e+114;
bool r15198508 = r15198500 <= r15198507;
double r15198509 = cbrt(r15198500);
double r15198510 = r15198500 * r15198500;
double r15198511 = t;
double r15198512 = a;
double r15198513 = r15198511 * r15198512;
double r15198514 = r15198510 - r15198513;
double r15198515 = sqrt(r15198514);
double r15198516 = cbrt(r15198515);
double r15198517 = r15198509 / r15198516;
double r15198518 = r15198517 * r15198517;
double r15198519 = r15198504 * r15198518;
double r15198520 = r15198503 * r15198519;
double r15198521 = r15198520 * r15198517;
double r15198522 = r15198503 * r15198504;
double r15198523 = r15198508 ? r15198521 : r15198522;
double r15198524 = r15198502 ? r15198506 : r15198523;
return r15198524;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 23.8 |
|---|---|
| Target | 7.6 |
| Herbie | 5.4 |
if z < -1.8913959868564195e+154Initial program 53.3
rmApplied *-un-lft-identity53.3
Applied sqrt-prod53.3
Applied times-frac53.4
Simplified53.4
Taylor expanded around -inf 1.3
Simplified1.3
if -1.8913959868564195e+154 < z < 1.1848486164183457e+114Initial program 10.2
rmApplied *-un-lft-identity10.2
Applied sqrt-prod10.2
Applied times-frac8.2
Simplified8.2
rmApplied add-cube-cbrt8.9
Applied add-cube-cbrt8.5
Applied times-frac8.5
Applied associate-*r*7.9
Simplified7.5
if 1.1848486164183457e+114 < z Initial program 45.5
rmApplied *-un-lft-identity45.5
Applied sqrt-prod45.5
Applied times-frac44.0
Simplified44.0
rmApplied associate-*l*44.0
Taylor expanded around inf 1.6
Final simplification5.4
herbie shell --seed 2019163 +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)))))