\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)
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
t_1 := \sqrt[3]{\cos t_0}\\
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t_0\right) \cdot \sqrt[3]{{\left(t_1 \cdot \left(t_1 \cdot \sqrt[3]{\cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)}\right)\right)}^{3}}
\end{array}
(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
(let* ((t_0 (* PI (/ angle 180.0))) (t_1 (cbrt (cos t_0))))
(*
(* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin t_0))
(cbrt
(pow
(* t_1 (* t_1 (cbrt (cos (* 0.005555555555555556 (* PI angle))))))
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) {
double t_0 = ((double) M_PI) * (angle / 180.0);
double t_1 = cbrt(cos(t_0));
return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(t_0)) * cbrt(pow((t_1 * (t_1 * cbrt(cos(0.005555555555555556 * (((double) M_PI) * angle))))), 3.0));
}



Bits error versus a



Bits error versus b



Bits error versus angle
Results
Initial program 30.4
Applied add-cbrt-cube_binary6430.4
Simplified30.4
Applied add-cube-cbrt_binary6430.4
Taylor expanded in angle around inf 30.5
Final simplification30.5
herbie shell --seed 2021313
(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)))))