\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -1.034236276819987094281376862709570586245 \cdot 10^{154}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;z \le 1.884191544785360628407970936723469922143 \cdot 10^{77}:\\
\;\;\;\;x \cdot \left(y \cdot \frac{z}{\sqrt{z \cdot z - t \cdot a}}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r36587868 = x;
double r36587869 = y;
double r36587870 = r36587868 * r36587869;
double r36587871 = z;
double r36587872 = r36587870 * r36587871;
double r36587873 = r36587871 * r36587871;
double r36587874 = t;
double r36587875 = a;
double r36587876 = r36587874 * r36587875;
double r36587877 = r36587873 - r36587876;
double r36587878 = sqrt(r36587877);
double r36587879 = r36587872 / r36587878;
return r36587879;
}
double f(double x, double y, double z, double t, double a) {
double r36587880 = z;
double r36587881 = -1.0342362768199871e+154;
bool r36587882 = r36587880 <= r36587881;
double r36587883 = x;
double r36587884 = y;
double r36587885 = -r36587884;
double r36587886 = r36587883 * r36587885;
double r36587887 = 1.8841915447853606e+77;
bool r36587888 = r36587880 <= r36587887;
double r36587889 = r36587880 * r36587880;
double r36587890 = t;
double r36587891 = a;
double r36587892 = r36587890 * r36587891;
double r36587893 = r36587889 - r36587892;
double r36587894 = sqrt(r36587893);
double r36587895 = r36587880 / r36587894;
double r36587896 = r36587884 * r36587895;
double r36587897 = r36587883 * r36587896;
double r36587898 = r36587883 * r36587884;
double r36587899 = r36587888 ? r36587897 : r36587898;
double r36587900 = r36587882 ? r36587886 : r36587899;
return r36587900;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 24.7 |
|---|---|
| Target | 7.5 |
| Herbie | 6.3 |
if z < -1.0342362768199871e+154Initial program 54.4
rmApplied *-un-lft-identity54.4
Applied sqrt-prod54.4
Applied times-frac54.1
Simplified54.1
rmApplied associate-*l*54.1
Taylor expanded around -inf 1.2
Simplified1.2
if -1.0342362768199871e+154 < z < 1.8841915447853606e+77Initial program 11.0
rmApplied *-un-lft-identity11.0
Applied sqrt-prod11.0
Applied times-frac8.9
Simplified8.9
rmApplied associate-*l*8.8
if 1.8841915447853606e+77 < z Initial program 41.3
Taylor expanded around inf 2.9
Final simplification6.3
herbie shell --seed 2019173 +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)))))