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
Sign in to make a reply
leisure_cat