4.3.py 145 B

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