Discuss / Python / 第七天打卡

第七天打卡

Topic source

import math

def quadratic(a, b, c)

    x1=(-b+math.sqrt(b**2-4*a*c))/(2*a)

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

    return x1, x2


  • 1

Reply