Initial program 29.4
\[\left(e^{x} - 2\right) + e^{-x}
\]
Simplified29.4
\[\leadsto \color{blue}{-2 + \left(e^{x} + e^{-x}\right)}
\]
Proof
(+.f64 -2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= metadata-eval (neg.f64 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 (neg.f64 2) (exp.f64 x)) (exp.f64 (neg.f64 x)))): 1 points increase in error, 6 points decrease in error
(+.f64 (Rewrite<= +-commutative_binary64 (+.f64 (exp.f64 x) (neg.f64 2))) (exp.f64 (neg.f64 x))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= sub-neg_binary64 (-.f64 (exp.f64 x) 2)) (exp.f64 (neg.f64 x))): 0 points increase in error, 0 points decrease in error
Taylor expanded in x around 0 0.6
\[\leadsto \color{blue}{0.002777777777777778 \cdot {x}^{6} + \left({x}^{2} + 0.08333333333333333 \cdot {x}^{4}\right)}
\]
Simplified0.6
\[\leadsto \color{blue}{\mathsf{fma}\left(x, x, \mathsf{fma}\left(0.002777777777777778, {x}^{6}, 0.08333333333333333 \cdot {x}^{4}\right)\right)}
\]
Proof
(fma.f64 x x (fma.f64 1/360 (pow.f64 x 6) (*.f64 1/12 (pow.f64 x 4)))): 0 points increase in error, 0 points decrease in error
(fma.f64 x x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (*.f64 1/12 (pow.f64 x 4))))): 0 points increase in error, 0 points decrease in error
(fma.f64 x x (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 1/12 (pow.f64 x 4)) (*.f64 1/360 (pow.f64 x 6))))): 0 points increase in error, 0 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 x x) (+.f64 (*.f64 1/12 (pow.f64 x 4)) (*.f64 1/360 (pow.f64 x 6))))): 6 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) (+.f64 (*.f64 1/12 (pow.f64 x 4)) (*.f64 1/360 (pow.f64 x 6)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))) (*.f64 1/360 (pow.f64 x 6)))): 0 points increase in error, 1 points decrease in error
(Rewrite<= +-commutative_binary64 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))): 0 points increase in error, 0 points decrease in error
Taylor expanded in x around 0 0.6
\[\leadsto \mathsf{fma}\left(x, x, \color{blue}{0.002777777777777778 \cdot {x}^{6} + 0.08333333333333333 \cdot {x}^{4}}\right)
\]
Simplified0.6
\[\leadsto \mathsf{fma}\left(x, x, \color{blue}{{x}^{4} \cdot \mathsf{fma}\left(0.002777777777777778, x \cdot x, 0.08333333333333333\right)}\right)
\]
Proof
(*.f64 (pow.f64 x 4) (fma.f64 1/360 (*.f64 x x) 1/12)): 0 points increase in error, 0 points decrease in error
(*.f64 (pow.f64 x 4) (fma.f64 1/360 (Rewrite<= unpow2_binary64 (pow.f64 x 2)) 1/12)): 0 points increase in error, 0 points decrease in error
(*.f64 (pow.f64 x 4) (fma.f64 1/360 (pow.f64 x (Rewrite<= metadata-eval (/.f64 4 2))) 1/12)): 0 points increase in error, 0 points decrease in error
(*.f64 (pow.f64 x 4) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/360 (pow.f64 x (/.f64 4 2))) 1/12))): 0 points increase in error, 0 points decrease in error
(*.f64 (pow.f64 x 4) (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (pow.f64 x (/.f64 4 2)) 1/360)) 1/12)): 0 points increase in error, 0 points decrease in error
(Rewrite<= distribute-lft-out_binary64 (+.f64 (*.f64 (pow.f64 x 4) (*.f64 (pow.f64 x (/.f64 4 2)) 1/360)) (*.f64 (pow.f64 x 4) 1/12))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (pow.f64 x 4) (pow.f64 x (/.f64 4 2))) 1/360)) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 (pow.f64 x 4) (pow.f64 x (Rewrite=> metadata-eval 2))) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 (pow.f64 x 4) (Rewrite=> unpow2_binary64 (*.f64 x x))) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (Rewrite=> associate-*r*_binary64 (*.f64 (*.f64 (pow.f64 x 4) x) x)) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (*.f64 (Rewrite=> pow-plus_binary64 (pow.f64 x (+.f64 4 1))) x) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (Rewrite=> pow-plus_binary64 (pow.f64 x (+.f64 (+.f64 4 1) 1))) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (pow.f64 x (+.f64 (Rewrite=> metadata-eval 5) 1)) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (pow.f64 x (Rewrite=> metadata-eval 6)) 1/360) (*.f64 (pow.f64 x 4) 1/12)): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 (pow.f64 x 6) 1/360) (Rewrite<= *-commutative_binary64 (*.f64 1/12 (pow.f64 x 4)))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= *-commutative_binary64 (*.f64 1/360 (pow.f64 x 6))) (*.f64 1/12 (pow.f64 x 4))): 0 points increase in error, 0 points decrease in error
Applied egg-rr0.6
\[\leadsto \mathsf{fma}\left(x, x, {x}^{4} \cdot \color{blue}{\left(0.002777777777777778 \cdot \left(x \cdot x\right) + 0.08333333333333333\right)}\right)
\]
Final simplification0.6
\[\leadsto \mathsf{fma}\left(x, x, {x}^{4} \cdot \left(0.002777777777777778 \cdot \left(x \cdot x\right) + 0.08333333333333333\right)\right)
\]