mirror of
https://github.com/wassname/spaceapps2017_matches.git
synced 2026-09-10 12:34:30 +08:00
48 KiB
48 KiB
In [30]:
%pylab
%matplotlib inlineUsing matplotlib backend: agg Populating the interactive namespace from numpy and matplotlib
In [31]:
slope = np.arange(-90,90,10)
r=np.exp(0.069*slope)
plt.plot(slope,r)Out [31]:
[<matplotlib.lines.Line2D at 0x7f05e5d24c50>]
In [ ]:
In [37]:
h = np.arange(-60,60,5)
plt.plot(h,np.tanh(h/30) * 180/np.pi)
plt.plot(h,h/30* 180/pi)Out [37]:
[<matplotlib.lines.Line2D at 0x7f05e5681208>]
In [29]:
h = np.arange(-60,60,5)
slope = np.rad2deg(np.tanh(h/30))
r=np.exp(0.069*slope)
plt.plot(slope,r)
plt.title('non approx')
plt.ylim(0,100)
plt.show()
h = np.arange(-60,60,5)
slope = np.rad2deg(h/30)
r=np.exp(0.069*slope)/10
plt.title('small tan approx')
plt.ylim(0,100)
plt.plot(slope,r)Out [29]:
[<matplotlib.lines.Line2D at 0x7f05e5aa5048>]
In [ ]: