From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 446/CH10/EX10.4/10_4.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 446/CH10/EX10.4/10_4.sce (limited to '446/CH10/EX10.4/10_4.sce') 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); -- cgit