""" Ex 5.29 in "A primer on...". Play with the resolution of a plot and evaluate the result. """ import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2, 20) y = x * (2 - x) #y = np.cos(18 * np.pi * x) plt.plot(x, y) plt.show() """ Terminal> python judge_plot.py (output is a plot) """