\frac{\left(x \cdot y\right) \cdot z}{\sqrt{z \cdot z - t \cdot a}}\begin{array}{l}
\mathbf{if}\;z \le -1.16524733009835821 \cdot 10^{113}:\\
\;\;\;\;-1 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \le 3.90238105065629941 \cdot 10^{82}:\\
\;\;\;\;\left(\frac{x \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right)}{\sqrt{\left|\sqrt[3]{z \cdot z - t \cdot a}\right|}} \cdot \frac{\sqrt[3]{1}}{\frac{\sqrt{\left|\sqrt[3]{z \cdot z - t \cdot a}\right|}}{y}}\right) \cdot \frac{z}{\sqrt{\sqrt[3]{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 r422201 = x;
double r422202 = y;
double r422203 = r422201 * r422202;
double r422204 = z;
double r422205 = r422203 * r422204;
double r422206 = r422204 * r422204;
double r422207 = t;
double r422208 = a;
double r422209 = r422207 * r422208;
double r422210 = r422206 - r422209;
double r422211 = sqrt(r422210);
double r422212 = r422205 / r422211;
return r422212;
}
double f(double x, double y, double z, double t, double a) {
double r422213 = z;
double r422214 = -1.1652473300983582e+113;
bool r422215 = r422213 <= r422214;
double r422216 = -1.0;
double r422217 = x;
double r422218 = y;
double r422219 = r422217 * r422218;
double r422220 = r422216 * r422219;
double r422221 = 3.9023810506562994e+82;
bool r422222 = r422213 <= r422221;
double r422223 = 1.0;
double r422224 = cbrt(r422223);
double r422225 = r422224 * r422224;
double r422226 = r422217 * r422225;
double r422227 = r422213 * r422213;
double r422228 = t;
double r422229 = a;
double r422230 = r422228 * r422229;
double r422231 = r422227 - r422230;
double r422232 = cbrt(r422231);
double r422233 = fabs(r422232);
double r422234 = sqrt(r422233);
double r422235 = r422226 / r422234;
double r422236 = r422234 / r422218;
double r422237 = r422224 / r422236;
double r422238 = r422235 * r422237;
double r422239 = sqrt(r422232);
double r422240 = r422213 / r422239;
double r422241 = r422238 * r422240;
double r422242 = r422222 ? r422241 : r422219;
double r422243 = r422215 ? r422220 : r422242;
return r422243;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 24.6 |
|---|---|
| Target | 8.0 |
| Herbie | 7.5 |
if z < -1.1652473300983582e+113Initial program 45.0
Taylor expanded around -inf 1.9
if -1.1652473300983582e+113 < z < 3.9023810506562994e+82Initial program 11.4
rmApplied add-cube-cbrt11.8
Applied sqrt-prod11.8
Applied times-frac11.1
Simplified11.6
rmApplied div-inv11.8
rmApplied *-un-lft-identity11.8
Applied add-sqr-sqrt11.9
Applied times-frac11.9
Applied add-cube-cbrt11.9
Applied times-frac11.7
Applied associate-*r*11.4
Simplified11.4
if 3.9023810506562994e+82 < z Initial program 40.6
Taylor expanded around inf 2.5
Final simplification7.5
herbie shell --seed 2020100 +o rules:numerics
(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)))))