\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \le -1.571841906786876071087337949480536432104 \cdot 10^{-148}:\\
\;\;\;\;\left(x + y\right) - \frac{\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \left(\frac{\sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \sqrt[3]{\sqrt[3]{a - t}}}\right)\\
\mathbf{elif}\;\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \le 9.31037786176094308455139582732343508036 \cdot 10^{-136}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \left(\frac{\sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \sqrt[3]{\sqrt[3]{a - t}}}\right)\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r41651430 = x;
double r41651431 = y;
double r41651432 = r41651430 + r41651431;
double r41651433 = z;
double r41651434 = t;
double r41651435 = r41651433 - r41651434;
double r41651436 = r41651435 * r41651431;
double r41651437 = a;
double r41651438 = r41651437 - r41651434;
double r41651439 = r41651436 / r41651438;
double r41651440 = r41651432 - r41651439;
return r41651440;
}
double f(double x, double y, double z, double t, double a) {
double r41651441 = x;
double r41651442 = y;
double r41651443 = r41651441 + r41651442;
double r41651444 = z;
double r41651445 = t;
double r41651446 = r41651444 - r41651445;
double r41651447 = r41651446 * r41651442;
double r41651448 = a;
double r41651449 = r41651448 - r41651445;
double r41651450 = r41651447 / r41651449;
double r41651451 = r41651443 - r41651450;
double r41651452 = -1.571841906786876e-148;
bool r41651453 = r41651451 <= r41651452;
double r41651454 = cbrt(r41651446);
double r41651455 = r41651454 * r41651454;
double r41651456 = cbrt(r41651449);
double r41651457 = r41651455 / r41651456;
double r41651458 = r41651454 / r41651456;
double r41651459 = r41651456 * r41651456;
double r41651460 = cbrt(r41651459);
double r41651461 = cbrt(r41651456);
double r41651462 = r41651460 * r41651461;
double r41651463 = r41651442 / r41651462;
double r41651464 = r41651458 * r41651463;
double r41651465 = r41651457 * r41651464;
double r41651466 = r41651443 - r41651465;
double r41651467 = 9.310377861760943e-136;
bool r41651468 = r41651451 <= r41651467;
double r41651469 = r41651444 * r41651442;
double r41651470 = r41651469 / r41651445;
double r41651471 = r41651470 + r41651441;
double r41651472 = r41651468 ? r41651471 : r41651466;
double r41651473 = r41651453 ? r41651466 : r41651472;
return r41651473;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.7 |
|---|---|
| Target | 8.6 |
| Herbie | 8.8 |
if (- (+ x y) (/ (* (- z t) y) (- a t))) < -1.571841906786876e-148 or 9.310377861760943e-136 < (- (+ x y) (/ (* (- z t) y) (- a t))) Initial program 13.4
rmApplied add-cube-cbrt13.6
Applied times-frac7.8
rmApplied add-cube-cbrt7.9
Applied times-frac7.9
Applied associate-*l*7.1
rmApplied add-cube-cbrt7.1
Applied cbrt-prod7.1
if -1.571841906786876e-148 < (- (+ x y) (/ (* (- z t) y) (- a t))) < 9.310377861760943e-136Initial program 39.2
Taylor expanded around inf 20.4
Final simplification8.8
herbie shell --seed 2019174
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-07) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))