summaryrefslogtreecommitdiff
path: root/3717/CH7/EX7.6/Ex7_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3717/CH7/EX7.6/Ex7_6.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3717/CH7/EX7.6/Ex7_6.sce')
-rw-r--r--3717/CH7/EX7.6/Ex7_6.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/3717/CH7/EX7.6/Ex7_6.sce b/3717/CH7/EX7.6/Ex7_6.sce
new file mode 100644
index 000000000..ab4186b33
--- /dev/null
+++ b/3717/CH7/EX7.6/Ex7_6.sce
@@ -0,0 +1,33 @@
+// Ex7_6 Page:126 (2014)
+clc;clear;
+l1 = 1; // Orbital angular momentum quantum number of first electron
+l2 = 2; // Orbital angular momentum quantum number of second electron
+s1 = 0.5; // Spin quantum number of first electron
+s2 = 0.5; // Spin quantum number of second electron
+L_max = l1 + l2;
+L_min = l2 - l1;
+S_max = s1 + s2;
+S_min = s1 - s2;
+printf("\nThe possible values of L, S and J are:");
+for L = L_max:-1:L_min
+ for S = S_max:-1:S_min
+ J_max = L + S; J_min = L - S;
+ printf("\nL = %d, S = %d, J = ", L, S);
+ for J = J_max:-1:J_min
+ if (J <> J_min) then
+ printf("%d, ", J);
+ else
+ printf("%d", J);
+ end
+ end
+ end
+end
+
+// Result
+// The possible values of L, S and J are:
+// L = 3, S = 1, J = 4, 3, 2
+// L = 3, S = 0, J = 3
+// L = 2, S = 1, J = 3, 2, 1
+// L = 2, S = 0, J = 2
+// L = 1, S = 1, J = 2, 1, 0
+// L = 1, S = 0, J = 1