def squareEquation(a, b, c):
match a, b, c:
case 0, 0, 0:
return 'All numbers', None
case 0, 0, _:
return 'Empty set', None
case 0, _, _:
return -c / b, None
d = b * b - 4 * a * c
r = -b / 2 / a
i = (abs(d) ** 0.5) / 2 / a
if (d < 0):
return f'{r} - {i}i', f'{r} + {i}i'
if (d == 0):
return r, None
return r - i, r + i