Advertisement
Cosmina04

Untitled

Mar 30th, 2020
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from math import pi,exp
  2.  
  3. kB=1.38e-23
  4. h=6.626e-34
  5. uam=1.66e-27
  6.  
  7. m=28*1e-3*uam
  8. T=300
  9. c=2.998e+8
  10.  
  11. d=1.13e-10
  12. mC=12*uam
  13. mO=16*uam
  14. m=mC*mO/(mC+mO)
  15. I=m*d**2
  16. hbar=h/(2*pi)
  17.  
  18. for J in range(0,7):
  19. a=(2*J+1)*hbar**2
  20. b=2*I*kB*T
  21. c=exp(-((J*(J+1)*hbar**2)/b))
  22. f=(a/b)*c
  23. print("Nj/N pt J=", J, f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement