import math
a = float(input("Введи значение параметра a:\n "))
x = -1
while x >= -5:
if abs(x - 2) < 1e-10:
x -= 0.6
continue
y = (x + pow(math.sin(a * x + 2), 2)) / (x - 2)
print("z= {0:.2f} y(x)= {1:.4f}".format(x, y))
x -= 0.6