Initial program 29.6
\[\frac{x - \sin x}{\tan x}
\]
Taylor expanded in x around 0 0.4
\[\leadsto \color{blue}{0.16666666666666666 \cdot {x}^{2} + -0.06388888888888888 \cdot {x}^{4}}
\]
Simplified0.4
\[\leadsto \color{blue}{\mathsf{fma}\left(-0.06388888888888888, {x}^{4}, x \cdot \left(x \cdot 0.16666666666666666\right)\right)}
\]
Proof
(fma.f64 -23/360 (pow.f64 x 4) (*.f64 x (*.f64 x 1/6))): 0 points increase in error, 0 points decrease in error
(fma.f64 -23/360 (pow.f64 x 4) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 x x) 1/6))): 26 points increase in error, 23 points decrease in error
(fma.f64 -23/360 (pow.f64 x 4) (Rewrite<= *-commutative_binary64 (*.f64 1/6 (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
(fma.f64 -23/360 (pow.f64 x 4) (*.f64 1/6 (Rewrite<= unpow2_binary64 (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (*.f64 1/6 (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= +-commutative_binary64 (+.f64 (*.f64 1/6 (pow.f64 x 2)) (*.f64 -23/360 (pow.f64 x 4)))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.4
\[\leadsto \color{blue}{x \cdot \left(x \cdot 0.16666666666666666\right) + -0.06388888888888888 \cdot {x}^{4}}
\]
Taylor expanded in x around 0 0.4
\[\leadsto \color{blue}{0.16666666666666666 \cdot {x}^{2} + -0.06388888888888888 \cdot {x}^{4}}
\]
Simplified0.4
\[\leadsto \color{blue}{x \cdot \left(x \cdot \mathsf{fma}\left(x, x \cdot -0.06388888888888888, 0.16666666666666666\right)\right)}
\]
Proof
(*.f64 x (*.f64 x (fma.f64 x (*.f64 x -23/360) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (*.f64 x -23/360)) 1/6)))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 x x) -23/360)) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 -23/360 (*.f64 x x))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (Rewrite=> +-commutative_binary64 (+.f64 1/6 (*.f64 -23/360 (*.f64 x x)))))): 0 points increase in error, 0 points decrease in error
(*.f64 x (Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 1/6 x) (*.f64 (*.f64 -23/360 (*.f64 x x)) x)))): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 x 1/6)) (*.f64 (*.f64 -23/360 (*.f64 x x)) x))): 0 points increase in error, 0 points decrease in error
(Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 (*.f64 x 1/6) x) (*.f64 (*.f64 (*.f64 -23/360 (*.f64 x x)) x) x))): 1 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 x 1/6) x) (Rewrite<= associate-*r*_binary64 (*.f64 (*.f64 -23/360 (*.f64 x x)) (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 x 1/6) x) (Rewrite=> associate-*l*_binary64 (*.f64 -23/360 (*.f64 (*.f64 x x) (*.f64 x x))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 x 1/6) x) (*.f64 -23/360 (Rewrite=> associate-*r*_binary64 (*.f64 (*.f64 (*.f64 x x) x) x)))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 x 1/6) x) (*.f64 -23/360 (*.f64 (Rewrite<= unpow3_binary64 (pow.f64 x 3)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 x 1/6) x) (*.f64 -23/360 (Rewrite=> pow-plus_binary64 (pow.f64 x (+.f64 3 1))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 x 1/6) x) (*.f64 -23/360 (pow.f64 x (Rewrite=> metadata-eval 4)))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= *-commutative_binary64 (*.f64 x (*.f64 x 1/6))) (*.f64 -23/360 (pow.f64 x 4))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite=> associate-*r*_binary64 (*.f64 (*.f64 x x) 1/6)) (*.f64 -23/360 (pow.f64 x 4))): 26 points increase in error, 23 points decrease in error
(+.f64 (Rewrite<= *-commutative_binary64 (*.f64 1/6 (*.f64 x x))) (*.f64 -23/360 (pow.f64 x 4))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (Rewrite<= unpow2_binary64 (pow.f64 x 2))) (*.f64 -23/360 (pow.f64 x 4))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.4
\[\leadsto x \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(x \cdot -0.06388888888888888\right) + 0.16666666666666666\right)}\right)
\]
Final simplification0.4
\[\leadsto x \cdot \left(x \cdot \left(x \cdot \left(x \cdot -0.06388888888888888\right) + 0.16666666666666666\right)\right)
\]