\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(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(\sqrt[3]{\cos \left(\pi \cdot \frac{angle}{180}\right)} \cdot \left(\sqrt[3]{\sqrt[3]{\cos \left(\pi \cdot \frac{angle}{180}\right)} \cdot \left(\sqrt[3]{\cos \left(\pi \cdot \frac{angle}{180}\right)} \cdot \sqrt[3]{\cos \left(\pi \cdot \frac{angle}{180}\right)}\right)} \cdot \sqrt[3]{\sqrt[3]{\cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)} \cdot \left(\sqrt[3]{\cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)} \cdot \sqrt[3]{\cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)}\right)}\right)\right)(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
(*
(* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0))))
(*
(cbrt (cos (* PI (/ angle 180.0))))
(*
(cbrt
(*
(cbrt (cos (* PI (/ angle 180.0))))
(*
(cbrt (cos (* PI (/ angle 180.0))))
(cbrt (cos (* PI (/ angle 180.0)))))))
(cbrt
(*
(cbrt (cos (* 0.005555555555555556 (* PI angle))))
(*
(cbrt (cos (* 0.005555555555555556 (* PI angle))))
(cbrt (cos (* 0.005555555555555556 (* PI angle)))))))))))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 ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(((double) M_PI) * (angle / 180.0))) * (cbrt(cos(((double) M_PI) * (angle / 180.0))) * (cbrt(cbrt(cos(((double) M_PI) * (angle / 180.0))) * (cbrt(cos(((double) M_PI) * (angle / 180.0))) * cbrt(cos(((double) M_PI) * (angle / 180.0))))) * cbrt(cbrt(cos(0.005555555555555556 * (((double) M_PI) * angle))) * (cbrt(cos(0.005555555555555556 * (((double) M_PI) * angle))) * cbrt(cos(0.005555555555555556 * (((double) M_PI) * angle)))))));
}



Bits error versus a



Bits error versus b



Bits error versus angle
Results
Initial program 31.3
rmApplied add-cube-cbrt_binary64_45431.3
Taylor expanded around inf 31.2
rmApplied add-cube-cbrt_binary64_45431.2
rmApplied add-cube-cbrt_binary64_45431.2
Final simplification31.2
herbie shell --seed 2021044
(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)))))