Discuss / Python / 打卡

打卡

Topic source

Dragon雨叚

#1 Created at ... [Delete] [Delete and Lock User]

import math

def quadratic(a, b, c):

    m=math.sqrt(b**2-4*a*c)

    x1=(-b+m)/(2*a)

    x2=(-b-m)/(2*a)

    return x1,x2


  • 1

Reply