\[{\left(x + 1\right)}^2 - 1\]
Test:
Expanding a square
Bits:
128 bits
Bits error versus
x
Time:
3.3 s
Input Error:
38.6
Output Error:
0.0
Log:
⚲
Profile:
🕒
\(\left(\left(x + 1\right) + 1\right) \cdot x\)
Started with
\[{\left(x + 1\right)}^2 - 1\]
38.6
Using strategy
rm
38.6
Applied
difference-of-sqr-1
to get
\[\color{red}{{\left(x + 1\right)}^2 - 1} \leadsto \color{blue}{\left(\left(x + 1\right) + 1\right) \cdot \left(\left(x + 1\right) - 1\right)}\]
38.6
Applied
simplify
to get
\[\left(\left(x + 1\right) + 1\right) \cdot \color{red}{\left(\left(x + 1\right) - 1\right)} \leadsto \left(\left(x + 1\right) + 1\right) \cdot \color{blue}{x}\]
0.0
Original test:
(lambda ((x default)) #:name "Expanding a square" (- (sqr (+ x 1)) 1))