Discuss / Python / 1

李_超

#1 Created at ... [Delete] [Delete and Lock User]
import mathdef quadratic(a, b, c):    x1=(-b+math.sqrt(b**2-4*c*a))/(2*a)    x2 = (-b - math.sqrt(b ** 2 - 4 * c * a)) / (2 * a)    return x1,x2q=quadratic(1,2,1)print(q)

  • 1

Reply