Bonjour une personne pourrait elle m aider merci

bonjour,
programme A
1
1 - 3 = - 2
( - 2)² = 4
4
programme B
- 5
( - 5)² = 25
25 - 15 = 10
10 + 7 = 17
17
programme A
x
x - 3
( x - 3 )²
= x² - 6 x + 9
Programme B
x
x²
x² + 3 x
x² + 3 x + 7
x² - 6 x + 9 = x² + 3 x + 7
x² - x² - 6 x - 3 x = 7 - 9
- 9 x = - 2
x = 2/9
les 2 programmes donnent le même résultat quand on choisit 2/9