Kindly help correct these Python codes for finding theexpression of k_norm. The m and l values are given in thetable. I want the codes to read off the m and l values directlyfrom the table, and calculate and print a column of k_norm values.Thank you very much.
K-norm = (26+1), (1-m)! 4π (ltm)! In [345]: In [350]: In [351]: In [352]: import scipy as sci 1s tips ['1_value] ms= np.abs (tips ['m_value']) # %% 1=1s m=ms -8 13 f = sci.math.factorial k_norm = ((2*1+1)/(4* np.pi) * f(1-m)/f(1+m))**0.5 print (k_norm) TypeError 2 Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_18184/1410444274.py in 1 f = sci.math.factorial ----> 2 k_norm = ((2*1+1)/(4* np-pi) * f(1-m)/f(1+m))**0.5 3 print (k_norm) TypeError: 'Series' object cannot be interpreted as an integer L 12 15 || 1K-norm
Kindly help correct these Python codes for finding the expression of k_norm. The m and l values are given in the table.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am