Discuss / Python / 作业打卡

作业打卡

Topic source

leisure_cat

#1 Created at ... [Delete] [Delete and Lock User]
if a == 0:
    raise TypeError('first number "a" can not be zero')
else:
    x = math.sqrt((b*b-4*a*c)/(4*a*a))-b/(2*a)
    y = -math.sqrt((b*b-4*a*c)/(4*a*a))-b/(2*a)
    return x,y

  • 1

Reply