\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -1.387037513954152204793629697523518119099 \cdot 10^{152}:\\
\;\;\;\;\frac{x \cdot y}{-1}\\
\mathbf{elif}\;z \le 2.81109844001032311849514459419925746028 \cdot 10^{123}:\\
\;\;\;\;x \cdot \frac{y}{\frac{\sqrt{z \cdot z - t \cdot a}}{z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r215835 = x;
double r215836 = y;
double r215837 = r215835 * r215836;
double r215838 = z;
double r215839 = r215837 * r215838;
double r215840 = r215838 * r215838;
double r215841 = t;
double r215842 = a;
double r215843 = r215841 * r215842;
double r215844 = r215840 - r215843;
double r215845 = sqrt(r215844);
double r215846 = r215839 / r215845;
return r215846;
}
double f(double x, double y, double z, double t, double a) {
double r215847 = z;
double r215848 = -1.3870375139541522e+152;
bool r215849 = r215847 <= r215848;
double r215850 = x;
double r215851 = y;
double r215852 = r215850 * r215851;
double r215853 = -1.0;
double r215854 = r215852 / r215853;
double r215855 = 2.811098440010323e+123;
bool r215856 = r215847 <= r215855;
double r215857 = r215847 * r215847;
double r215858 = t;
double r215859 = a;
double r215860 = r215858 * r215859;
double r215861 = r215857 - r215860;
double r215862 = sqrt(r215861);
double r215863 = r215862 / r215847;
double r215864 = r215851 / r215863;
double r215865 = r215850 * r215864;
double r215866 = r215856 ? r215865 : r215852;
double r215867 = r215849 ? r215854 : r215866;
return r215867;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 24.4 |
|---|---|
| Target | 7.5 |
| Herbie | 6.1 |
if z < -1.3870375139541522e+152Initial program 52.5
rmApplied associate-/l*52.1
rmApplied *-un-lft-identity52.1
Applied sqrt-prod52.1
Applied associate-/l*52.1
Taylor expanded around -inf 1.5
if -1.3870375139541522e+152 < z < 2.811098440010323e+123Initial program 10.7
rmApplied associate-/l*8.7
rmApplied *-un-lft-identity8.7
Applied *-un-lft-identity8.7
Applied sqrt-prod8.7
Applied times-frac8.7
Applied times-frac8.5
Simplified8.5
if 2.811098440010323e+123 < z Initial program 47.9
Taylor expanded around inf 1.7
Final simplification6.1
herbie shell --seed 2019325
(FPCore (x y z t a)
:name "Statistics.Math.RootFinding:ridders from math-functions-0.1.5.2"
:precision binary64
: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)))))