请问这段代码存在什么问题?
import math
def quadratic_equation(a, b, c):
n=math.sqrt(b*b-4*a*c)
y=(-b-n)/(2*a)
z=(-b+n)/(2*a)
return y,z
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
import math
def quadratic_equation(a, b, c):
n=math.sqrt(b*b-4*a*c)
y=(-b-n)/(2*a)
z=(-b+n)/(2*a)
return y,z
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2016-02-20
举报