- #1
ver_mathstats
- 260
- 21
Code:
import numpy as np
import matplotlib.pyplot as plt
x=np.arange(-5*np.pi, 5*np.pi, step = 0.02)
plt.ylim(-1, 1)
tan=np.tan(x)
arctan=np.arctan(x)
plt.plot(x,tan)
plt.plot(x,arctan)
Here is the code I came up with using the guide my teacher gave me, is this correct the way I have done it? Thank you.