December 2017
Intermediate to advanced
386 pages
10h 42m
English
Run the following commands in a Jupyter cell:
plt.figure(figsize=(6,6))xvalues = np.linspace(-2, 2, 100)plt.subplot(2, 2, 1)yvalues = xvaluesplt.plot(xvalues, yvalues, color='blue')plt.xlabel('$x$')plt.ylabel('$x$')plt.subplot(2, 2, 2)yvalues = xvalues ** 2plt.plot(xvalues, yvalues, color='green')plt.xlabel('$x$')plt.ylabel('$x^2$')plt.subplot(2, 2, 3)yvalues = xvalues ** 3plt.plot(xvalues, yvalues, color='red')plt.xlabel('$x$')plt.ylabel('$x^3$')plt.subplot(2, 2, 4)yvalues = xvalues ** 4plt.plot(xvalues, yvalues, color='black')plt.xlabel('$x$')plt.ylabel('$x^3$')plt.suptitle('Polynomial Functions')plt.tight_layout()plt.subplots_adjust(top=0.90)None
Running this code will produce results like those in the following screenshot: ...
Read now
Unlock full access