document: InputFile | str
File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
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