\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -4.796512439373366453310456845924400229459 \cdot 10^{73}:\\
\;\;\;\;\left(x \cdot y\right) \cdot -1\\
\mathbf{elif}\;z \le 4.946971173738666090803109555665692031855 \cdot 10^{105}:\\
\;\;\;\;x \cdot \left(\left(y \cdot z\right) \cdot \frac{1}{\sqrt{z \cdot z - t \cdot a}}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot 1\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r160117 = x;
double r160118 = y;
double r160119 = r160117 * r160118;
double r160120 = z;
double r160121 = r160119 * r160120;
double r160122 = r160120 * r160120;
double r160123 = t;
double r160124 = a;
double r160125 = r160123 * r160124;
double r160126 = r160122 - r160125;
double r160127 = sqrt(r160126);
double r160128 = r160121 / r160127;
return r160128;
}
double f(double x, double y, double z, double t, double a) {
double r160129 = z;
double r160130 = -4.7965124393733665e+73;
bool r160131 = r160129 <= r160130;
double r160132 = x;
double r160133 = y;
double r160134 = r160132 * r160133;
double r160135 = -1.0;
double r160136 = r160134 * r160135;
double r160137 = 4.946971173738666e+105;
bool r160138 = r160129 <= r160137;
double r160139 = r160133 * r160129;
double r160140 = 1.0;
double r160141 = r160129 * r160129;
double r160142 = t;
double r160143 = a;
double r160144 = r160142 * r160143;
double r160145 = r160141 - r160144;
double r160146 = sqrt(r160145);
double r160147 = r160140 / r160146;
double r160148 = r160139 * r160147;
double r160149 = r160132 * r160148;
double r160150 = r160134 * r160140;
double r160151 = r160138 ? r160149 : r160150;
double r160152 = r160131 ? r160136 : r160151;
return r160152;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 25.0 |
|---|---|
| Target | 7.7 |
| Herbie | 6.7 |
if z < -4.7965124393733665e+73Initial program 40.1
rmApplied *-un-lft-identity40.1
Applied times-frac37.2
Simplified37.2
Taylor expanded around -inf 2.8
if -4.7965124393733665e+73 < z < 4.946971173738666e+105Initial program 10.7
rmApplied *-un-lft-identity10.7
Applied times-frac9.6
Simplified9.6
rmApplied associate-*l*9.3
rmApplied div-inv9.4
Applied associate-*r*10.1
if 4.946971173738666e+105 < z Initial program 44.5
rmApplied *-un-lft-identity44.5
Applied times-frac41.9
Simplified41.9
Taylor expanded around inf 2.4
Final simplification6.7
herbie shell --seed 2019294
(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.1921305903852764e46) (- (* y x)) (if (< z 5.9762681209208942e90) (/ (* x z) (/ (sqrt (- (* z z) (* a t))) y)) (* y x)))
(/ (* (* x y) z) (sqrt (- (* z z) (* t a)))))