Initial program 20.3
\[{\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}
\]
Applied egg-rr24.5
\[\leadsto {\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \color{blue}{\left(\mathsf{expm1}\left(\mathsf{log1p}\left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)\right)\right)}\right)}^{2}
\]
Applied egg-rr20.3
\[\leadsto {\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \color{blue}{\left(\cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right) + 1\right) \cdot \cos 1 + \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right) + 1\right) \cdot \sin 1\right)}\right)}^{2}
\]
Simplified20.3
\[\leadsto {\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \color{blue}{\mathsf{fma}\left(\cos \left(\mathsf{fma}\left(0.005555555555555556, \pi \cdot angle, 1\right)\right), \cos 1, \sin \left(\mathsf{fma}\left(0.005555555555555556, \pi \cdot angle, 1\right)\right) \cdot \sin 1\right)}\right)}^{2}
\]
Proof
(fma.f64 (cos.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (fma.f64 1/180 (Rewrite<= *-commutative_binary64 (*.f64 angle (PI.f64))) 1)) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/180 (*.f64 angle (PI.f64))) 1))) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (Rewrite=> *-commutative_binary64 (*.f64 (*.f64 angle (PI.f64)) 1/180)) 1)) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (*.f64 (Rewrite=> *-commutative_binary64 (*.f64 (PI.f64) angle)) 1/180) 1)) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (PI.f64) (*.f64 angle 1/180))) 1)) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (*.f64 (PI.f64) angle) 1)) (sin.f64 1))): 17 points increase in error, 22 points decrease in error
(fma.f64 (cos.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (cos.f64 1) (*.f64 (sin.f64 (fma.f64 1/180 (Rewrite<= *-commutative_binary64 (*.f64 angle (PI.f64))) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (cos.f64 1) (*.f64 (sin.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/180 (*.f64 angle (PI.f64))) 1))) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (cos.f64 1) (*.f64 (sin.f64 (+.f64 (Rewrite=> *-commutative_binary64 (*.f64 (*.f64 angle (PI.f64)) 1/180)) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (cos.f64 1) (*.f64 (sin.f64 (+.f64 (*.f64 (Rewrite=> *-commutative_binary64 (*.f64 (PI.f64) angle)) 1/180) 1)) (sin.f64 1))): 0 points increase in error, 0 points decrease in error
(fma.f64 (cos.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (cos.f64 1) (*.f64 (sin.f64 (+.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (PI.f64) (*.f64 angle 1/180))) 1)) (sin.f64 1))): 18 points increase in error, 21 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 (cos.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (cos.f64 1)) (*.f64 (sin.f64 (+.f64 (*.f64 (PI.f64) (*.f64 angle 1/180)) 1)) (sin.f64 1)))): 21 points increase in error, 18 points decrease in error
Applied egg-rr20.3
\[\leadsto {\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \mathsf{fma}\left(\color{blue}{{\left(\sqrt[3]{\cos \left(\mathsf{fma}\left(0.005555555555555556, \pi \cdot angle, 1\right)\right)}\right)}^{3}}, \cos 1, \sin \left(\mathsf{fma}\left(0.005555555555555556, \pi \cdot angle, 1\right)\right) \cdot \sin 1\right)\right)}^{2}
\]
Final simplification20.3
\[\leadsto {\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \mathsf{fma}\left({\left(\sqrt[3]{\cos \left(\mathsf{fma}\left(0.005555555555555556, angle \cdot \pi, 1\right)\right)}\right)}^{3}, \cos 1, \sin \left(\mathsf{fma}\left(0.005555555555555556, angle \cdot \pi, 1\right)\right) \cdot \sin 1\right)\right)}^{2}
\]