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




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 11.7 |
|---|---|
| Target | 2.0 |
| Herbie | 1.0 |
Initial program 11.7
rmApplied *-un-lft-identity11.7
Applied times-frac2.1
Simplified2.1
rmApplied add-cube-cbrt3.1
Applied add-cube-cbrt2.8
Applied times-frac2.8
Applied associate-*r*1.0
Final simplification1.0
herbie shell --seed 2020078 +o rules:numerics
(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)))