Initial program 0.3
\[\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}
\]
Simplified0.3
\[\leadsto \color{blue}{\frac{1 - \tan x \cdot \tan x}{\mathsf{fma}\left(\tan x, \tan x, 1\right)}}
\]
Proof
(/.f64 (-.f64 1 (*.f64 (tan.f64 x) (tan.f64 x))) (fma.f64 (tan.f64 x) (tan.f64 x) 1)): 0 points increase in error, 0 points decrease in error
(/.f64 (-.f64 1 (*.f64 (tan.f64 x) (tan.f64 x))) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 (tan.f64 x) (tan.f64 x)) 1))): 6 points increase in error, 4 points decrease in error
(/.f64 (-.f64 1 (*.f64 (tan.f64 x) (tan.f64 x))) (Rewrite<= +-commutative_binary64 (+.f64 1 (*.f64 (tan.f64 x) (tan.f64 x))))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.3
\[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\tan x, -\tan x, 1\right)}}{\mathsf{fma}\left(\tan x, \tan x, 1\right)}
\]
Final simplification0.3
\[\leadsto \frac{\mathsf{fma}\left(\tan x, -\tan x, 1\right)}{\mathsf{fma}\left(\tan x, \tan x, 1\right)}
\]