Initial program 59.9
\[\frac{1}{x} - \frac{1}{\tan x}\]
Taylor expanded around 0 0.3
\[\leadsto \color{blue}{0.3333333333333333148296162562473909929395 \cdot x + \left(0.02222222222222222307030925492199457949027 \cdot {x}^{3} + 0.002116402116402116544841005563171165704262 \cdot {x}^{5}\right)}\]
Simplified0.3
\[\leadsto \color{blue}{\mathsf{fma}\left(0.02222222222222222307030925492199457949027 \cdot \left(x \cdot x\right), x, \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, 0.3333333333333333148296162562473909929395 \cdot x\right)\right)}\]
Taylor expanded around 0 0.3
\[\leadsto \color{blue}{0.3333333333333333148296162562473909929395 \cdot x + \left(0.02222222222222222307030925492199457949027 \cdot {x}^{3} + 0.002116402116402116544841005563171165704262 \cdot {x}^{5}\right)}\]
Simplified0.3
\[\leadsto \color{blue}{\mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, x \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right) + 0.3333333333333333148296162562473909929395\right)\right)}\]
- Using strategy
rm Applied flip3-+1.2
\[\leadsto \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, x \cdot \color{blue}{\frac{{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right)}^{3} + {0.3333333333333333148296162562473909929395}^{3}}{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)}}\right)\]
Applied associate-*r/1.1
\[\leadsto \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, \color{blue}{\frac{x \cdot \left({\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right)}^{3} + {0.3333333333333333148296162562473909929395}^{3}\right)}{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)}}\right)\]
Simplified0.3
\[\leadsto \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, \frac{\color{blue}{\mathsf{fma}\left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395, 0.3333333333333333148296162562473909929395, \left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right) \cdot \left(\left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right) \cdot \left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right)\right)\right) \cdot x}}{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)}\right)\]
- Using strategy
rm Applied add-sqr-sqrt0.3
\[\leadsto \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, \frac{\mathsf{fma}\left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395, 0.3333333333333333148296162562473909929395, \left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right) \cdot \left(\left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right) \cdot \left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right)\right)\right) \cdot x}{\color{blue}{\sqrt{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)} \cdot \sqrt{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)}}}\right)\]
Applied times-frac0.2
\[\leadsto \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, \color{blue}{\frac{\mathsf{fma}\left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395, 0.3333333333333333148296162562473909929395, \left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right) \cdot \left(\left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right) \cdot \left(x \cdot \left(x \cdot 0.02222222222222222307030925492199457949027\right)\right)\right)\right)}{\sqrt{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)}} \cdot \frac{x}{\sqrt{\left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - \left(x \cdot \left(0.02222222222222222307030925492199457949027 \cdot x\right)\right) \cdot 0.3333333333333333148296162562473909929395\right)}}}\right)\]
Final simplification0.2
\[\leadsto \mathsf{fma}\left({x}^{5}, 0.002116402116402116544841005563171165704262, \frac{\mathsf{fma}\left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395, 0.3333333333333333148296162562473909929395, \left(\left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right) \cdot \left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right)\right) \cdot \left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right)\right)}{\sqrt{\left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right) \cdot \left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - 0.3333333333333333148296162562473909929395 \cdot \left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right)\right)}} \cdot \frac{x}{\sqrt{\left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right) \cdot \left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right) + \left(0.3333333333333333148296162562473909929395 \cdot 0.3333333333333333148296162562473909929395 - 0.3333333333333333148296162562473909929395 \cdot \left(\left(x \cdot 0.02222222222222222307030925492199457949027\right) \cdot x\right)\right)}}\right)\]