x + \frac{y \cdot \left(z - t\right)}{z - a}\frac{\sqrt[3]{z - t}}{\frac{\sqrt[3]{z - a} \cdot \sqrt[3]{z - a}}{\sqrt[3]{z - t}}} \cdot \frac{\sqrt[3]{z - t}}{\frac{\sqrt[3]{z - a}}{y}} + xdouble code(double x, double y, double z, double t, double a) {
return ((double) (x + ((double) (((double) (y * ((double) (z - t)))) / ((double) (z - a))))));
}
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) (z - a)))) * ((double) cbrt(((double) (z - a)))))) / ((double) cbrt(((double) (z - t)))))))) * ((double) (((double) cbrt(((double) (z - t)))) / ((double) (((double) cbrt(((double) (z - a)))) / 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.6 |
|---|---|
| Target | 1.2 |
| Herbie | 1.0 |
Initial program 10.6
Simplified2.8
rmApplied clear-num3.0
rmApplied fma-udef3.0
Simplified2.8
rmApplied *-un-lft-identity2.8
Applied add-cube-cbrt3.3
Applied times-frac3.3
Applied add-cube-cbrt3.2
Applied times-frac0.9
Simplified1.0
Final simplification1.0
herbie shell --seed 2020113 +o rules:numerics
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))