x \cdot \cos y + z \cdot \sin y
\sqrt[3]{{\left(\cos y\right)}^{2}} \cdot \left(\sqrt[3]{\cos y} \cdot x\right) + z \cdot \sin y(FPCore (x y z) :precision binary64 (+ (* x (cos y)) (* z (sin y))))
(FPCore (x y z) :precision binary64 (+ (* (cbrt (pow (cos y) 2.0)) (* (cbrt (cos y)) x)) (* z (sin y))))
double code(double x, double y, double z) {
return ((double) (((double) (x * ((double) cos(y)))) + ((double) (z * ((double) sin(y))))));
}
double code(double x, double y, double z) {
return ((double) (((double) (((double) cbrt(((double) pow(((double) cos(y)), 2.0)))) * ((double) (((double) cbrt(((double) cos(y)))) * x)))) + ((double) (z * ((double) sin(y))))));
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program Error: 0.1 bits
rmApplied add-cube-cbrtError: 0.4 bits
Applied associate-*r*Error: 0.4 bits
rmApplied cbrt-unprodError: 0.3 bits
SimplifiedError: 0.3 bits
rmApplied pow1Error: 0.3 bits
Applied pow1Error: 0.3 bits
Applied pow1Error: 0.3 bits
Applied pow-prod-downError: 0.3 bits
Applied pow-prod-downError: 0.3 bits
SimplifiedError: 0.3 bits
Final simplificationError: 0.3 bits
herbie shell --seed 2020204
(FPCore (x y z)
:name "Diagrams.ThreeD.Transform:aboutY from diagrams-lib-1.3.0.3"
:precision binary64
(+ (* x (cos y)) (* z (sin y))))