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




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 11.0 |
|---|---|
| Target | 1.2 |
| Herbie | 0.8 |
Initial program Error: 11.0 bits
SimplifiedError: 1.3 bits
rmApplied add-cube-cbrtError: 1.8 bits
Applied add-cube-cbrtError: 1.6 bits
Applied times-fracError: 1.6 bits
Applied associate-*r*Error: 0.5 bits
SimplifiedError: 0.6 bits
rmApplied add-cube-cbrtError: 0.8 bits
Applied associate-*l*Error: 0.8 bits
SimplifiedError: 0.8 bits
Final simplificationError: 0.8 bits
herbie shell --seed 2020200
(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))))