Initial program 59.9
\[\frac{1}{x} - \frac{1}{\tan x}
\]
Taylor expanded in x around 0 0.4
\[\leadsto \color{blue}{0.3333333333333333 \cdot x + 0.022222222222222223 \cdot {x}^{3}}
\]
Simplified0.4
\[\leadsto \color{blue}{\mathsf{fma}\left(0.3333333333333333, x, 0.022222222222222223 \cdot {x}^{3}\right)}
\]
Proof
(fma.f64 1/3 x (*.f64 1/45 (pow.f64 x 3))): 0 points increase in error, 0 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/3 x) (*.f64 1/45 (pow.f64 x 3)))): 0 points increase in error, 0 points decrease in error
Applied egg-rr28.5
\[\leadsto \color{blue}{\frac{\left(0.3333333333333333 \cdot x\right) \cdot \left(0.3333333333333333 \cdot x\right) - {x}^{6} \cdot 0.0004938271604938272}{0.3333333333333333 \cdot x - 0.022222222222222223 \cdot {x}^{3}}}
\]
Simplified28.5
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(x \cdot 0.1111111111111111, x, {x}^{6} \cdot -0.0004938271604938272\right)}{\mathsf{fma}\left(0.3333333333333333, x, {x}^{3} \cdot -0.022222222222222223\right)}}
\]
Proof
(/.f64 (fma.f64 (*.f64 x 1/9) x (*.f64 (pow.f64 x 6) -1/2025)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 0 points decrease in error
(/.f64 (fma.f64 (*.f64 x (Rewrite<= metadata-eval (*.f64 1/3 1/3))) x (*.f64 (pow.f64 x 6) -1/2025)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 12 points decrease in error
(/.f64 (fma.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 x 1/3) 1/3)) x (*.f64 (pow.f64 x 6) -1/2025)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 12 points increase in error, 0 points decrease in error
(/.f64 (fma.f64 (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 1/3 x)) 1/3) x (*.f64 (pow.f64 x 6) -1/2025)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 2 points decrease in error
(/.f64 (fma.f64 (*.f64 (*.f64 1/3 x) 1/3) x (*.f64 (pow.f64 x 6) (Rewrite<= metadata-eval (neg.f64 1/2025)))) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 12 points increase in error, 0 points decrease in error
(/.f64 (fma.f64 (*.f64 (*.f64 1/3 x) 1/3) x (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (pow.f64 x 6) 1/2025)))) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 12 points increase in error, 0 points decrease in error
(/.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 (*.f64 (*.f64 1/3 x) 1/3) x) (*.f64 (pow.f64 x 6) 1/2025))) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 12 points decrease in error
(/.f64 (-.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (*.f64 1/3 x) (*.f64 1/3 x))) (*.f64 (pow.f64 x 6) 1/2025)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 12 points increase in error, 0 points decrease in error
(/.f64 (-.f64 (*.f64 (*.f64 1/3 x) (*.f64 1/3 x)) (*.f64 (pow.f64 x 6) 1/2025)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) (Rewrite<= metadata-eval (neg.f64 1/45))))): 0 points increase in error, 12 points decrease in error
(/.f64 (-.f64 (*.f64 (*.f64 1/3 x) (*.f64 1/3 x)) (*.f64 (pow.f64 x 6) 1/2025)) (fma.f64 1/3 x (Rewrite<= *-commutative_binary64 (*.f64 (neg.f64 1/45) (pow.f64 x 3))))): 0 points increase in error, 12 points decrease in error
(/.f64 (-.f64 (*.f64 (*.f64 1/3 x) (*.f64 1/3 x)) (*.f64 (pow.f64 x 6) 1/2025)) (fma.f64 1/3 x (Rewrite<= distribute-lft-neg-in_binary64 (neg.f64 (*.f64 1/45 (pow.f64 x 3)))))): 0 points increase in error, 5 points decrease in error
(/.f64 (-.f64 (*.f64 (*.f64 1/3 x) (*.f64 1/3 x)) (*.f64 (pow.f64 x 6) 1/2025)) (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 1/3 x) (*.f64 1/45 (pow.f64 x 3))))): 12 points increase in error, 0 points decrease in error
Taylor expanded in x around 0 28.5
\[\leadsto \frac{\color{blue}{0.1111111111111111 \cdot {x}^{2}}}{\mathsf{fma}\left(0.3333333333333333, x, {x}^{3} \cdot -0.022222222222222223\right)}
\]
Simplified28.5
\[\leadsto \frac{\color{blue}{x \cdot \left(x \cdot 0.1111111111111111\right)}}{\mathsf{fma}\left(0.3333333333333333, x, {x}^{3} \cdot -0.022222222222222223\right)}
\]
Proof
(/.f64 (*.f64 x (*.f64 x 1/9)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 0 points decrease in error
(/.f64 (Rewrite=> associate-*r*_binary64 (*.f64 (*.f64 x x) 1/9)) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 4 points decrease in error
(/.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) 1/9) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 4 points increase in error, 0 points decrease in error
(/.f64 (Rewrite<= *-commutative_binary64 (*.f64 1/9 (pow.f64 x 2))) (fma.f64 1/3 x (*.f64 (pow.f64 x 3) -1/45))): 0 points increase in error, 1 points decrease in error
Applied egg-rr0.3
\[\leadsto \color{blue}{\frac{x}{\mathsf{fma}\left(0.3333333333333333, x, {x}^{3} \cdot -0.022222222222222223\right)} \cdot \left(x \cdot 0.1111111111111111\right)}
\]
Final simplification0.3
\[\leadsto \frac{x}{\mathsf{fma}\left(0.3333333333333333, x, {x}^{3} \cdot -0.022222222222222223\right)} \cdot \left(x \cdot 0.1111111111111111\right)
\]