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