1.0x^2 + -5.0x + 6.0
a = 1.0
b = -5.0
c = 6.0
D = b^2 - 4 * a * c
Дискриминант = 1.0
x1 = ( -b + sqrt( D ) ) / ( 2 * a )
x2 = ( -b - sqrt( D ) ) / ( 2 * a )
ответ: 3.0, 2.0
1.0x^2 + -5.0x + 6.0
a = 1.0
b = -5.0
c = 6.0
D = b^2 - 4 * a * c
Дискриминант = 1.0
x1 = ( -b + sqrt( D ) ) / ( 2 * a )
x2 = ( -b - sqrt( D ) ) / ( 2 * a )
ответ: 3.0, 2.0