Initial program 29.5
\[\frac{x - \sin x}{\tan x}
\]
Taylor expanded in x around 0 0.3
\[\leadsto \color{blue}{0.16666666666666666 \cdot {x}^{2} + \left(-0.0007275132275132275 \cdot {x}^{6} + -0.06388888888888888 \cdot {x}^{4}\right)}
\]
Simplified0.3
\[\leadsto \color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.06388888888888888, 0.16666666666666666\right), -0.0007275132275132275 \cdot {x}^{6}\right)}
\]
Proof
(fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) -23/360 1/6) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(fma.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) (fma.f64 (*.f64 x x) -23/360 1/6) (*.f64 -11/15120 (pow.f64 x 6))): 1 points increase in error, 0 points decrease in error
(fma.f64 (pow.f64 x 2) (fma.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) -23/360 1/6) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(fma.f64 (pow.f64 x 2) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 (pow.f64 x 2) -23/360) 1/6)) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(fma.f64 (pow.f64 x 2) (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 -23/360 (pow.f64 x 2))) 1/6) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(fma.f64 (pow.f64 x 2) (Rewrite<= +-commutative_binary64 (+.f64 1/6 (*.f64 -23/360 (pow.f64 x 2)))) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 (pow.f64 x 2) (+.f64 1/6 (*.f64 -23/360 (pow.f64 x 2)))) (*.f64 -11/15120 (pow.f64 x 6)))): 2 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 1/6 (pow.f64 x 2)) (*.f64 (*.f64 -23/360 (pow.f64 x 2)) (pow.f64 x 2)))) (*.f64 -11/15120 (pow.f64 x 6))): 1 points increase in error, 1 points decrease in error
(+.f64 (+.f64 (*.f64 1/6 (pow.f64 x 2)) (Rewrite<= associate-*r*_binary64 (*.f64 -23/360 (*.f64 (pow.f64 x 2) (pow.f64 x 2))))) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(+.f64 (+.f64 (*.f64 1/6 (pow.f64 x 2)) (*.f64 -23/360 (Rewrite=> pow-sqr_binary64 (pow.f64 x (*.f64 2 2))))) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(+.f64 (+.f64 (*.f64 1/6 (pow.f64 x 2)) (*.f64 -23/360 (pow.f64 x (Rewrite=> metadata-eval 4)))) (*.f64 -11/15120 (pow.f64 x 6))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-+r+_binary64 (+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (*.f64 -11/15120 (pow.f64 x 6))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -11/15120 (pow.f64 x 6)) (*.f64 -23/360 (pow.f64 x 4))))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.3
\[\leadsto \mathsf{fma}\left(x \cdot x, \color{blue}{x \cdot \left(x \cdot -0.06388888888888888\right) + 0.16666666666666666}, -0.0007275132275132275 \cdot {x}^{6}\right)
\]
Taylor expanded in x around 0 0.3
\[\leadsto \color{blue}{0.16666666666666666 \cdot {x}^{2} + \left(-0.0007275132275132275 \cdot {x}^{6} + -0.06388888888888888 \cdot {x}^{4}\right)}
\]
Simplified0.3
\[\leadsto \color{blue}{x \cdot \left(x \cdot \mathsf{fma}\left(x, \mathsf{fma}\left(x, -0.06388888888888888, -0.0007275132275132275 \cdot {x}^{3}\right), 0.16666666666666666\right)\right)}
\]
Proof
(*.f64 x (*.f64 x (fma.f64 x (fma.f64 x -23/360 (*.f64 -11/15120 (pow.f64 x 3))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (fma.f64 x (fma.f64 x -23/360 (*.f64 -11/15120 (pow.f64 x (Rewrite<= metadata-eval (/.f64 6 2))))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (fma.f64 x (fma.f64 x -23/360 (Rewrite<= *-commutative_binary64 (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (fma.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x -23/360) (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (fma.f64 x (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120) (*.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 (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120) (*.f64 x -23/360))) 1/6)))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (*.f64 x (Rewrite=> +-commutative_binary64 (+.f64 (*.f64 x -23/360) (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120)))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (Rewrite<= distribute-lft-out_binary64 (+.f64 (*.f64 x (*.f64 x -23/360)) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120)))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 x x) -23/360)) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (+.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) -23/360) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (+.f64 (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 -23/360 (pow.f64 x 2))) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))) 1/6))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (Rewrite<= +-commutative_binary64 (+.f64 1/6 (+.f64 (*.f64 -23/360 (pow.f64 x 2)) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))))))): 0 points increase in error, 0 points decrease in error
(*.f64 x (*.f64 x (Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 1/6 (*.f64 -23/360 (pow.f64 x 2))) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120)))))): 1 points increase in error, 1 points decrease in error
(*.f64 x (*.f64 x (Rewrite=> associate-+l+_binary64 (+.f64 1/6 (+.f64 (*.f64 -23/360 (pow.f64 x 2)) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))))))): 1 points increase in error, 1 points decrease in error
(*.f64 x (Rewrite<= distribute-lft-out_binary64 (+.f64 (*.f64 x 1/6) (*.f64 x (+.f64 (*.f64 -23/360 (pow.f64 x 2)) (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120))))))): 1 points increase in error, 1 points decrease in error
(*.f64 x (+.f64 (*.f64 x 1/6) (Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (*.f64 x (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120)) x))))): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (*.f64 x 1/6) (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120) x)) x)))): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (*.f64 x 1/6) (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (Rewrite<= associate-*r*_binary64 (*.f64 (*.f64 (pow.f64 x (/.f64 6 2)) -11/15120) (*.f64 x x)))))): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (*.f64 x 1/6) (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (Rewrite=> *-commutative_binary64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2)))) (*.f64 x x))))): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (*.f64 x 1/6) (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (Rewrite<= unpow2_binary64 (pow.f64 x 2)))))): 0 points increase in error, 0 points decrease in error
(Rewrite<= distribute-lft-out_binary64 (+.f64 (*.f64 x (*.f64 x 1/6)) (*.f64 x (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)))))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 x x) 1/6)) (*.f64 x (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2))))): 29 points increase in error, 21 points decrease in error
(+.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) 1/6) (*.f64 x (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2))))): 1 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= *-commutative_binary64 (*.f64 1/6 (pow.f64 x 2))) (*.f64 x (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) x) x) (*.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)) x)))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) (*.f64 x x))) (*.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 (*.f64 -23/360 (pow.f64 x 2)) (Rewrite<= unpow2_binary64 (pow.f64 x 2))) (*.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (Rewrite<= associate-*r*_binary64 (*.f64 -23/360 (*.f64 (pow.f64 x 2) (pow.f64 x 2)))) (*.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (Rewrite=> pow-sqr_binary64 (pow.f64 x (*.f64 2 2)))) (*.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x (Rewrite=> metadata-eval 4))) (*.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x 2)) x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (Rewrite<= associate-*r*_binary64 (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (*.f64 (pow.f64 x 2) x))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (*.f64 (Rewrite=> unpow2_binary64 (*.f64 x x)) x)))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (Rewrite<= unpow3_binary64 (pow.f64 x 3))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (*.f64 (*.f64 -11/15120 (pow.f64 x (/.f64 6 2))) (pow.f64 x (Rewrite<= metadata-eval (/.f64 6 2)))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (Rewrite<= associate-*r*_binary64 (*.f64 -11/15120 (*.f64 (pow.f64 x (/.f64 6 2)) (pow.f64 x (/.f64 6 2))))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (+.f64 (*.f64 -23/360 (pow.f64 x 4)) (*.f64 -11/15120 (Rewrite<= sqr-pow_binary64 (pow.f64 x 6))))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 1/6 (pow.f64 x 2)) (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -11/15120 (pow.f64 x 6)) (*.f64 -23/360 (pow.f64 x 4))))): 0 points increase in error, 0 points decrease in error
Taylor expanded in x around 0 0.3
\[\leadsto x \cdot \left(x \cdot \mathsf{fma}\left(x, \color{blue}{-0.0007275132275132275 \cdot {x}^{3} + -0.06388888888888888 \cdot x}, 0.16666666666666666\right)\right)
\]
Simplified0.3
\[\leadsto x \cdot \left(x \cdot \mathsf{fma}\left(x, \color{blue}{x \cdot \mathsf{fma}\left(x, x \cdot -0.0007275132275132275, -0.06388888888888888\right)}, 0.16666666666666666\right)\right)
\]
Proof
(*.f64 x (fma.f64 x (*.f64 x -11/15120) -23/360)): 0 points increase in error, 0 points decrease in error
(*.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (*.f64 x -11/15120)) -23/360))): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 x x) -11/15120)) -23/360)): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) -11/15120) -23/360)): 0 points increase in error, 0 points decrease in error
(*.f64 x (+.f64 (Rewrite=> *-commutative_binary64 (*.f64 -11/15120 (pow.f64 x 2))) -23/360)): 0 points increase in error, 0 points decrease in error
(Rewrite<= distribute-rgt-out_binary64 (+.f64 (*.f64 (*.f64 -11/15120 (pow.f64 x 2)) x) (*.f64 -23/360 x))): 0 points increase in error, 2 points decrease in error
(+.f64 (Rewrite<= associate-*r*_binary64 (*.f64 -11/15120 (*.f64 (pow.f64 x 2) x))) (*.f64 -23/360 x)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 -11/15120 (*.f64 (Rewrite=> unpow2_binary64 (*.f64 x x)) x)) (*.f64 -23/360 x)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 -11/15120 (Rewrite<= unpow3_binary64 (pow.f64 x 3))) (*.f64 -23/360 x)): 0 points increase in error, 0 points decrease in error
Final simplification0.3
\[\leadsto x \cdot \left(x \cdot \mathsf{fma}\left(x, x \cdot \mathsf{fma}\left(x, x \cdot -0.0007275132275132275, -0.06388888888888888\right), 0.16666666666666666\right)\right)
\]