diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /767/CH1/EX1.6.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '767/CH1/EX1.6.2')
-rwxr-xr-x | 767/CH1/EX1.6.2/Ch1Exa1_6_2.sci | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/767/CH1/EX1.6.2/Ch1Exa1_6_2.sci b/767/CH1/EX1.6.2/Ch1Exa1_6_2.sci new file mode 100755 index 000000000..69f6eed08 --- /dev/null +++ b/767/CH1/EX1.6.2/Ch1Exa1_6_2.sci @@ -0,0 +1,13 @@ +// Scilab code Exa1.6.2 : Total angular momentum of proton : Page 40 (2011)
+// Get the l value from the user
+l = 3; // Orbital qunatum number for f-state proton
+s = 1/2; // Magnitude of spin quantum number
+// Display the value of j within the for loop
+disp("The j values will be between");
+for i = abs(l-s):1:abs(l+s) // l-s Coupling
+ printf("\t %3.1f",i);
+end
+
+// Result
+// The j values will be between
+// 2.5 3.5
|