实在看不出有啥问题,求大神教授
import math
def quadratic_equation(a, b, c):
x1=(-b+math.sqrt(b*b-4ac))/2a
x2=(-b-mast.sqrt(b*b-4ac))/2a
return x1,x2
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
import math
def quadratic_equation(a, b, c):
x1=(-b+math.sqrt(b*b-4ac))/2a
x2=(-b-mast.sqrt(b*b-4ac))/2a
return x1,x2
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2019-01-10
举报