x + \frac{y \cdot \left(z - t\right)}{a - t}\frac{\sqrt[3]{z - t}}{\frac{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}{\sqrt[3]{z - t}}} \cdot \frac{\sqrt[3]{z - t}}{\frac{\sqrt[3]{a - t}}{y}} + xdouble code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (a - t))))));
}
double code(double x, double y, double z, double t, double a) {
return ((double) (((double) (((double) (((double) cbrt(((double) (z - t)))) / ((double) (((double) (((double) cbrt(((double) (a - t)))) * ((double) cbrt(((double) (a - t)))))) / ((double) cbrt(((double) (z - t)))))))) * ((double) (((double) cbrt(((double) (z - t)))) / ((double) (((double) cbrt(((double) (a - t)))) / y)))))) + x));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 10.8 |
|---|---|
| Target | 1.2 |
| Herbie | 1.1 |
Initial program 10.8
Simplified3.1
rmApplied clear-num3.4
rmApplied fma-udef3.4
Simplified3.2
rmApplied *-un-lft-identity3.2
Applied add-cube-cbrt3.6
Applied times-frac3.6
Applied add-cube-cbrt3.6
Applied times-frac1.1
Simplified1.1
Final simplification1.1
herbie shell --seed 2020123 +o rules:numerics
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(+ x (/ y (/ (- a t) (- z t))))
(+ x (/ (* y (- z t)) (- a t))))