#solve x
if a != 0 and (b**2-4*a*c) >=0:
x1 =(-b+math.sqrt(b**2-4*a*c))/(2*a)
x2 =(-b-math.sqrt(b**2-4*a*c))/(2*a)
return x1,x2
Sign in to make a reply
来自cx301-5星系
#solve x
if a != 0 and (b**2-4*a*c) >=0:
x1 =(-b+math.sqrt(b**2-4*a*c))/(2*a)
x2 =(-b-math.sqrt(b**2-4*a*c))/(2*a)
return x1,x2