Advertisement
Guest User

prgmSTRUCTUR

a guest
Feb 26th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Lbl 1
  2. Menu("Choose Crystal Structure","SC",2,"FCC",3,"BCC",4,"HCP",5,"DENSITY",6,"APF",7,"Miller Indicies",8)
  3. Lbl 2
  4. Disp "A=2R","C6","1 Atom"
  5. Input "A=",A
  6. Disp "R=",(A/2)
  7. Return
  8. Lbl 3
  9. Disp "sqrt(2A)=4R"
  10. Disp "C12"
  11. Disp "4 Atoms"
  12. Input "R=",R
  13. Input "A=",A
  14. Disp "A=",(4R/sqrt(2))
  15. Return
  16. Lbl 4
  17. Disp "4R=cuberoot(3)A
  18. Disp "C8"
  19. Disp "2 Atoms"
  20. Input "R=",R
  21. Disp "A=",(4R/(cuberoot(3))
  22. Return
  23. Lbl 5
  24. Disp "A=2R"
  25. Disp "6 Atoms"
  26. Disp "C12"
  27. Disp "C/A=1.633"
  28. Return
  29. Lbl 6
  30. Disp "((Atoms*AW)/(V*n))"
  31. Disp "use A^3 for V"
  32. Disp "n=Avagadros Number"
  33. Input "ATOMS=",N
  34. Input "AWEIGHT=",A
  35. Input "V=",V
  36. Disp (N*A)/(V*6.022*10^23)
  37. Return
  38. Lbl 7
  39. Disp "A*V/AV"
  40. Input "ATOMS=",C
  41. Input "R=",R
  42. Input "A=",A
  43. Disp (C*(4/3)piR^3)/(A^3)
  44. Return
  45. Lbl 8
  46. Disp "Invert Intercepts"
  47. Input "X=",X
  48. Input "Y=",Y
  49. Input "Z=",Z
  50. Disp "Indicie=("(1/X)""(1/Y)""(1/Z)")"
  51. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement