#z_3_4 import math a = float(input("Введите число 'a' для расчёта значения функции: ")) b = float(input("Введите число 'b' для расчёта значения функции: ")) x = float(input("Введите число 'x' для расчёта значения функции: ")) y = float(input("Введите число 'y' для расчёта значения функции: ")) print("Значения функций:\n1-ая: {}\n2-ая: {}\ ", format(abs(x), str(3 * math.sin(2 * math.radians(a)) * math.cos(3 * math.radians(b))))) print("\n3-я: {}\n4-ая: {}\ ", format(-5 * math.sqrt(x + math.sqrt(y)), str((math.sqrt(1 - x) + math.sqrt(1 + x)) / (2 * math.sqrt(x)))))
выдаёт:
Traceback (most recent call last):
File “/home/ubuntu/workspace/San4az/z_3_4.py”, line 16, in <module>
str((math.sqrt(1 - x) + math.sqrt(1 + x)) / (2 * math.sqrt(x)))))
ValueError: precision too big