if a == 0:
x = -c/b
return x
else:
x1 = (-b+math.sqrt(b*b-4*a*c))/(2*a)
x2 = (-b-math.sqrt(b*b-4*a*c))/(2*a)
return x1,x2
Sign in to make a reply
穆临想修改昵称了
if a == 0:
x = -c/b
return x
else:
x1 = (-b+math.sqrt(b*b-4*a*c))/(2*a)
x2 = (-b-math.sqrt(b*b-4*a*c))/(2*a)
return x1,x2