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



Bits error versus a



Bits error versus b



Bits error versus angle
Results
Initial program 21.2
rmApplied add-cube-cbrt_binary6421.2
Applied associate-*l*_binary6421.2
Simplified21.2
rmApplied add-cube-cbrt_binary6421.2
Applied *-un-lft-identity_binary6421.2
Applied times-frac_binary6421.2
Applied cbrt-prod_binary6421.2
Final simplification21.2
herbie shell --seed 2021175
(FPCore (a b angle)
:name "ab-angle->ABCF A"
:precision binary64
(+ (pow (* a (sin (* (/ angle 180.0) PI))) 2.0) (pow (* b (cos (* (/ angle 180.0) PI))) 2.0)))