import matplotlib.pyplot as pltimport numpy as np
x = np.linspace(-2np.pi, 2np.pi, 100)y = -np.sin(x - np.pi/2)
plt.figure(figsize=(10,6))plt.plot(x, y, label="y = -sin(x-π/2)", color='b')plt.xlabel('x')plt.ylabel('y')plt.title('График функции y = -sin(x-π/2)')plt.grid(True)plt.legend()plt.show()
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-2np.pi, 2np.pi, 100)
y = -np.sin(x - np.pi/2)
plt.figure(figsize=(10,6))
plt.plot(x, y, label="y = -sin(x-π/2)", color='b')
plt.xlabel('x')
plt.ylabel('y')
plt.title('График функции y = -sin(x-π/2)')
plt.grid(True)
plt.legend()
plt.show()