Excercise 1ΒΆ

Solution of the excercise 1 with matplotlib.

Python source code: plot_exercice_1.py

import numpy as np
import matplotlib.pyplot as plt
n = 256
X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C, S = np.cos(X), np.sin(X)
plt.plot(X, C)
plt.plot(X, S)
plt.show()