In [2]:
import numpy as np
import matplotlib.pyplot as plt
In [3]:
x = np.linspace(0, 4 * np.pi, 10)
y = np.cos(x)
print(x, y)
[ 0.          1.3962634   2.7925268   4.1887902   5.58505361  6.98131701
  8.37758041  9.77384381 11.17010721 12.56637061] [ 1.          0.17364818 -0.93969262 -0.5         0.76604444  0.76604444
 -0.5        -0.93969262  0.17364818  1.        ]
In [5]:
plt.plot(x, y)
Out[5]:
[<matplotlib.lines.Line2D at 0x1419135c0>]
No description has been provided for this image
In [ ]: