\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -8.7346014416205993 \cdot 10^{-172}:\\
\;\;\;\;x + y \cdot \left(\left(\sqrt[3]{1 - \frac{z - t}{a - t}} \cdot \sqrt[3]{1 - \frac{z - t}{a - t}}\right) \cdot \sqrt[3]{1 - \frac{z - t}{a - t}}\right)\\
\mathbf{elif}\;a \le 2.88187501444834143 \cdot 10^{-168}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - \frac{\frac{z - t}{a - t}}{\frac{1}{y}}\right)\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r654407 = x;
double r654408 = y;
double r654409 = r654407 + r654408;
double r654410 = z;
double r654411 = t;
double r654412 = r654410 - r654411;
double r654413 = r654412 * r654408;
double r654414 = a;
double r654415 = r654414 - r654411;
double r654416 = r654413 / r654415;
double r654417 = r654409 - r654416;
return r654417;
}
double f(double x, double y, double z, double t, double a) {
double r654418 = a;
double r654419 = -8.734601441620599e-172;
bool r654420 = r654418 <= r654419;
double r654421 = x;
double r654422 = y;
double r654423 = 1.0;
double r654424 = z;
double r654425 = t;
double r654426 = r654424 - r654425;
double r654427 = r654418 - r654425;
double r654428 = r654426 / r654427;
double r654429 = r654423 - r654428;
double r654430 = cbrt(r654429);
double r654431 = r654430 * r654430;
double r654432 = r654431 * r654430;
double r654433 = r654422 * r654432;
double r654434 = r654421 + r654433;
double r654435 = 2.8818750144483414e-168;
bool r654436 = r654418 <= r654435;
double r654437 = r654424 / r654425;
double r654438 = r654422 * r654437;
double r654439 = r654421 + r654438;
double r654440 = r654423 / r654422;
double r654441 = r654428 / r654440;
double r654442 = r654422 - r654441;
double r654443 = r654421 + r654442;
double r654444 = r654436 ? r654439 : r654443;
double r654445 = r654420 ? r654434 : r654444;
return r654445;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.6 |
|---|---|
| Target | 8.2 |
| Herbie | 6.8 |
if a < -8.734601441620599e-172Initial program 15.6
rmApplied associate-/l*10.1
rmApplied associate--l+8.1
rmApplied associate-/r/6.5
Applied *-un-lft-identity6.5
Applied distribute-rgt-out--6.5
rmApplied add-cube-cbrt6.6
if -8.734601441620599e-172 < a < 2.8818750144483414e-168Initial program 21.9
rmApplied associate-/l*20.3
rmApplied associate--l+14.2
rmApplied associate-/r/12.6
Applied *-un-lft-identity12.6
Applied distribute-rgt-out--12.6
Taylor expanded around inf 7.7
if 2.8818750144483414e-168 < a Initial program 14.8
rmApplied associate-/l*9.4
rmApplied associate--l+7.4
rmApplied div-inv7.8
Applied associate-/r*6.4
Final simplification6.8
herbie shell --seed 2020062
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-07) (- (+ y x) (* (* (- z t) (/ 1 (- 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 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))