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}}
\]
Applied egg-rr29.2
\[\leadsto \color{blue}{\frac{{x}^{6} \cdot 0.0004938271604938272 - \left(x \cdot x\right) \cdot 0.1111111111111111}{0.022222222222222223 \cdot {x}^{3} - x \cdot 0.3333333333333333}}
\]
Applied egg-rr0.2
\[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\sqrt[3]{2.438652644413961 \cdot 10^{-7} \cdot {x}^{12}}}{1}, \frac{\left(x \cdot x\right) \cdot \sqrt[3]{0.0004938271604938272}}{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)}, -\frac{x}{\frac{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)}{x \cdot 0.1111111111111111}}\right)}
\]
Simplified0.3
\[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{2.438652644413961 \cdot 10^{-7} \cdot {x}^{12}}, \frac{x}{\frac{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)}{x}} \cdot \sqrt[3]{0.0004938271604938272}, \frac{x}{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)} \cdot \left(x \cdot -0.1111111111111111\right)\right)}
\]
Proof
(fma.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) (*.f64 (/.f64 x (/.f64 (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3)) x)) (cbrt.f64 1/2025)) (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 x -1/9))): 0 points increase in error, 0 points decrease in error
(fma.f64 (Rewrite<= /-rgt-identity_binary64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1)) (*.f64 (/.f64 x (/.f64 (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3)) x)) (cbrt.f64 1/2025)) (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 x -1/9))): 0 points increase in error, 0 points decrease in error
(fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1) (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 x x) (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3)))) (cbrt.f64 1/2025)) (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 x -1/9))): 0 points increase in error, 0 points decrease in error
(fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1) (Rewrite=> associate-*l/_binary64 (/.f64 (*.f64 (*.f64 x x) (cbrt.f64 1/2025)) (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3)))) (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 x -1/9))): 0 points increase in error, 0 points decrease in error
(fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1) (/.f64 (*.f64 (*.f64 x x) (cbrt.f64 1/2025)) (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 x (Rewrite<= metadata-eval (neg.f64 1/9))))): 0 points increase in error, 0 points decrease in error
(fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1) (/.f64 (*.f64 (*.f64 x x) (cbrt.f64 1/2025)) (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 x 1/9))))): 0 points increase in error, 0 points decrease in error
(fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1) (/.f64 (*.f64 (*.f64 x x) (cbrt.f64 1/2025)) (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (/.f64 x (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (*.f64 x 1/9))))): 0 points increase in error, 0 points decrease in error
(fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4100625 (pow.f64 x 12))) 1) (/.f64 (*.f64 (*.f64 x x) (cbrt.f64 1/2025)) (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3))) (neg.f64 (Rewrite<= associate-/r/_binary64 (/.f64 x (/.f64 (fma.f64 1/45 (pow.f64 x 3) (*.f64 x -1/3)) (*.f64 x 1/9)))))): 32 points increase in error, 30 points decrease in error
Taylor expanded in x around 0 0.3
\[\leadsto \mathsf{fma}\left(\sqrt[3]{2.438652644413961 \cdot 10^{-7} \cdot {x}^{12}}, \color{blue}{-3 \cdot \left(\sqrt[3]{0.0004938271604938272} \cdot x\right)}, \frac{x}{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)} \cdot \left(x \cdot -0.1111111111111111\right)\right)
\]
Simplified0.3
\[\leadsto \mathsf{fma}\left(\sqrt[3]{2.438652644413961 \cdot 10^{-7} \cdot {x}^{12}}, \color{blue}{\sqrt[3]{0.0004938271604938272} \cdot \left(x \cdot -3\right)}, \frac{x}{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)} \cdot \left(x \cdot -0.1111111111111111\right)\right)
\]
Proof
(*.f64 (cbrt.f64 1/2025) (*.f64 x -3)): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (cbrt.f64 1/2025) x) -3)): 48 points increase in error, 61 points decrease in error
(Rewrite<= *-commutative_binary64 (*.f64 -3 (*.f64 (cbrt.f64 1/2025) x))): 0 points increase in error, 0 points decrease in error
Final simplification0.3
\[\leadsto \mathsf{fma}\left(\sqrt[3]{2.438652644413961 \cdot 10^{-7} \cdot {x}^{12}}, \sqrt[3]{0.0004938271604938272} \cdot \left(x \cdot -3\right), \frac{x}{\mathsf{fma}\left(0.022222222222222223, {x}^{3}, x \cdot -0.3333333333333333\right)} \cdot \left(x \cdot -0.1111111111111111\right)\right)
\]