x + \frac{y \cdot \left(z - t\right)}{a - t}\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{1} \cdot \left(\frac{\sqrt[3]{y}}{a - t} \cdot \left(z - t\right)\right) + 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) (((double) cbrt(y)) * ((double) cbrt(y)))) / 1.0)) * ((double) (((double) (((double) cbrt(y)) / ((double) (a - t)))) * ((double) (z - t)))))) + x));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 10.5 |
|---|---|
| Target | 1.4 |
| Herbie | 1.8 |
Initial program 10.5
Simplified3.0
rmApplied fma-udef3.0
rmApplied *-un-lft-identity3.0
Applied add-cube-cbrt3.4
Applied times-frac3.4
Applied associate-*l*1.8
Final simplification1.8
herbie shell --seed 2020121 +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))))