Hello,
I'm trying to plot this function with using this values:
Rh = 9.8
H0 = 0.063
def Thickness_H(H0, r, Rh):
return float(H0)*np.exp(float(r)/float(Rh))
r = np.linspace(0,1, 10)
x =Thickness_H(H0, r, Rh)
plt.plot(r, x)
plt.show()
I'm trying to defind r like what i know but this dose not work, I'm getting this error:
only length-1 arrays can be converted to Python scalars.
may you please help me in this point?
Thank you