import math import numpy as np from matplotlib import pyplot x = np.arange(-3, 3, 0.1) y = np.sin(x) pyplot.plot(x, y) pyplot.show()