^在python中什么意思??
import math
def quadratic_equation(a,b,c):
t=math.sqrt(b^b-4*a*c)
x1=(-b+t)/(2*a)
x2=(-b-t)/(2*a)
return x1,x2 #两个根不对
print(quadratic_equation(2,3,0))
import math
def quadratic_equation(a,b,c):
t=math.sqrt(b^b-4*a*c)
x1=(-b+t)/(2*a)
x2=(-b-t)/(2*a)
return x1,x2 #两个根不对
print(quadratic_equation(2,3,0))
2017-06-15
举报