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




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.3 |
| Herbie | 2.4 |
Initial program 10.5
rmApplied add-cube-cbrt10.9
Applied times-frac2.4
Final simplification2.4
herbie shell --seed 2020079
(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))))