import matplotlib.pyplot as pltimport numpy as np
x = np.linspace(-20, 20, 100)y = x * np.sin(x)
plt.plot(x, y)plt.xlabel('x')plt.ylabel('y')plt.title('График y=x*sin(x)')plt.grid(True)plt.show()
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-20, 20, 100)
y = x * np.sin(x)
plt.plot(x, y)
plt.xlabel('x')
plt.ylabel('y')
plt.title('График y=x*sin(x)')
plt.grid(True)
plt.show()