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 /446/CH10/EX10.4/10_4.sce | |
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 '446/CH10/EX10.4/10_4.sce')
-rwxr-xr-x | 446/CH10/EX10.4/10_4.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/446/CH10/EX10.4/10_4.sce b/446/CH10/EX10.4/10_4.sce new file mode 100755 index 000000000..7a18c6757 --- /dev/null +++ b/446/CH10/EX10.4/10_4.sce @@ -0,0 +1,9 @@ +clear
+clc
+disp('Exa-10.4(a)'); //theoretical
+printf('The energy of interaction with magnetic field is given by uB and the degeneracy of the states are +-1/2 which are identical.\nThe ratio is therefore pE2/pE1 which gives e^(-2*u*B/k*T)');
+disp('Ex-10.4(b)');
+uB=5.79*10^-4; //for a typical atom
+t=1.1;k=8.65*10^-5; //ratio and constant k
+T=2*uB/(log(t)*k); //temperature
+printf('The value of temperature ar which the given ratio exists is %.2f K',T);
|