为什么这样还是错误啊
import math
def quadratic_equation(a, b, c):
t = math.sqrt(b * b - 4 * a * c)
m= (-b + t) / (2 * a)
n=( -b - t )/ (2 * a)
return m,n
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
import math
def quadratic_equation(a, b, c):
t = math.sqrt(b * b - 4 * a * c)
m= (-b + t) / (2 * a)
n=( -b - t )/ (2 * a)
return m,n
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2018-07-02
举报