\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\left(\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(2 \cdot \left(b \cdot b - a \cdot a\right)\right)\right) \cdot \sqrt[3]{{\left(\sqrt[3]{{\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{3}}\right)}^{3}}(FPCore (a b angle) :precision binary64 (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0)))) (cos (* PI (/ angle 180.0)))))
(FPCore (a b angle) :precision binary64 (* (* (sin (* 0.005555555555555556 (* angle PI))) (* 2.0 (- (* b b) (* a a)))) (cbrt (pow (cbrt (pow (cos (* 0.005555555555555556 (* angle PI))) 3.0)) 3.0))))
double code(double a, double b, double angle) {
return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(((double) M_PI) * (angle / 180.0))) * cos(((double) M_PI) * (angle / 180.0));
}
double code(double a, double b, double angle) {
return (sin(0.005555555555555556 * (angle * ((double) M_PI))) * (2.0 * ((b * b) - (a * a)))) * cbrt(pow(cbrt(pow(cos(0.005555555555555556 * (angle * ((double) M_PI))), 3.0)), 3.0));
}



Bits error versus a



Bits error versus b



Bits error versus angle
Results
Initial program 31.1
rmApplied add-cbrt-cube_binary6431.1
Simplified31.1
rmApplied add-cbrt-cube_binary6431.1
Simplified31.1
Taylor expanded around 0 31.2
Simplified31.2
Taylor expanded around inf 31.1
Final simplification31.1
herbie shell --seed 2021106
(FPCore (a b angle)
:name "ab-angle->ABCF B"
:precision binary64
(* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0)))) (cos (* PI (/ angle 180.0)))))