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




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 11.6 |
|---|---|
| Target | 2.3 |
| Herbie | 1.2 |
Initial program 11.6
Simplified2.2
rmApplied add-cube-cbrt3.3
Applied add-cube-cbrt3.0
Applied times-frac3.0
Applied associate-*r*1.1
Simplified1.2
Final simplification1.2
herbie shell --seed 2020184
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:herbie-target
(/ x (/ (- t z) (- y z)))
(/ (* x (- y z)) (- t z)))