import math x = float(input('Введите x: ')) if x > 0: print('y=', math.sin(x * x)) else: print('y=', 1 + 2 * pow(math.sin(x), 2))