Initial program 0.0
\[\left(x \cdot x + y\right) + y
\]
Taylor expanded in x around 0 0.0
\[\leadsto \color{blue}{2 \cdot y + {x}^{2}}
\]
Simplified0.0
\[\leadsto \color{blue}{\mathsf{fma}\left(y, 2, x \cdot x\right)}
\]
Proof
(fma.f64 y 2 (*.f64 x x)): 0 points increase in error, 0 points decrease in error
(fma.f64 y 2 (Rewrite<= unpow2_binary64 (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 y 2) (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= *-commutative_binary64 (*.f64 2 y)) (pow.f64 x 2)): 0 points increase in error, 0 points decrease in error
Final simplification0.0
\[\leadsto \mathsf{fma}\left(y, 2, x \cdot x\right)
\]