completesquare bug

mrahikka shared this problem 2 months ago
In Progress

CompleteSquare(a x^2-4 x) produces something strange.

e2d46725289d027c97351dcb6be922a0

The same happens in also GeoGebra 5 and 6.

Comments (5)

photo
1

The x is missing, I see.

The displayed coefficients are not bad, but need simplification and the sign of -16/4a is wrong.


So maybe a(ax-2/a)^2 +4/a should be better to see in that output row ;)

Thank you, I'm looping this to the developers.

photo
1

se ha duplicado abajo

photo
1

(siempre negativo) a(ax-2/a)^2 - 4/a porque el ultimo termino del desarrollo del cuadrado es positivo y debe ser anulado por el siguiente sumando

photo
1

Wolfram Alpha say:

https://www.wolframalpha.co...

CompleteSquare(a x^2 - 4 x) --> a (x - 2/a)^2 - 4/a

.

and GGB say:

a x^2 - 4 x == a (x - 2/a)^2 - 4/a --> true

.

and I say

maybe both are wrong but it's not possible that both are correct

photo
1

Thanks, we'll check!

© 2019 International GeoGebra Institute