1.4.7.2.1. Excercise 1

Solution of the excercise 1 with matplotlib.

../../../../_images/sphx_glr_plot_exercise_1_001.png
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()

Total running time of the script: ( 0 minutes 0.052 seconds)

Generated by Sphinx-Gallery