Initial program 13.4
\[x + \left(\tan \left(y + z\right) - \tan a\right)
\]
Simplified13.4
\[\leadsto \color{blue}{x - \left(\tan a - \tan \left(y + z\right)\right)}
\]
Proof
(-.f64 x (-.f64 (tan.f64 a) (tan.f64 (+.f64 y z)))): 0 points increase in error, 0 points decrease in error
(Rewrite=> associate--r-_binary64 (+.f64 (-.f64 x (tan.f64 a)) (tan.f64 (+.f64 y z)))): 22 points increase in error, 6 points decrease in error
(+.f64 (Rewrite<= unsub-neg_binary64 (+.f64 x (neg.f64 (tan.f64 a)))) (tan.f64 (+.f64 y z))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-+r+_binary64 (+.f64 x (+.f64 (neg.f64 (tan.f64 a)) (tan.f64 (+.f64 y z))))): 6 points increase in error, 22 points decrease in error
(+.f64 x (Rewrite<= +-commutative_binary64 (+.f64 (tan.f64 (+.f64 y z)) (neg.f64 (tan.f64 a))))): 0 points increase in error, 0 points decrease in error
(+.f64 x (Rewrite<= sub-neg_binary64 (-.f64 (tan.f64 (+.f64 y z)) (tan.f64 a)))): 0 points increase in error, 0 points decrease in error
Applied egg-rr13.4
\[\leadsto \color{blue}{\left(x - \tan a\right) + \tan \left(y + z\right)}
\]
Applied egg-rr0.3
\[\leadsto \left(x - \tan a\right) + \color{blue}{\frac{1}{\frac{1 - \tan y \cdot \tan z}{\tan y + \tan z}}}
\]
Applied egg-rr0.2
\[\leadsto \color{blue}{x - \left(\tan a - \frac{\tan y + \tan z}{\mathsf{fma}\left(\tan y, -\tan z, 1\right)}\right)}
\]
Final simplification0.2
\[\leadsto x + \left(\frac{\tan y + \tan z}{\mathsf{fma}\left(\tan y, -\tan z, 1\right)} - \tan a\right)
\]