summaryrefslogtreecommitdiff
path: root/1952/CH8/EX8.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1952/CH8/EX8.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1952/CH8/EX8.5')
-rwxr-xr-x1952/CH8/EX8.5/Ex8_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1952/CH8/EX8.5/Ex8_5.sce b/1952/CH8/EX8.5/Ex8_5.sce
new file mode 100755
index 000000000..25f83e044
--- /dev/null
+++ b/1952/CH8/EX8.5/Ex8_5.sce
@@ -0,0 +1,15 @@
+// chapter 8 , Example 8.5 , pg 239
+B=0.65 //magnetic induction (in T)
+d=8906 //density (in Kg/m^3)
+M=58.7 //atomic weight
+e=1.6*10^-19 //charge of electron (in C)
+h=6.625*10^-34 //plancks constant (in m^2*Kg*S^-1)
+m=9.11*10^-31 //mass of electron (in Kg)
+Uo=4*%pi*10^-7 //vacuum permeability
+Na=6.023*10^26 //Avogadro constant
+Ub=(e*h)/(4*%pi*m) //Bhor magneton (in A*m^2)
+N=(d*Na)/M //number of atoms per unit volume
+Ur=B/(N*Uo) //relative permeability (in A/m^2)
+M=Ur/(Ub) //magnetic moment
+printf("Magnetic moment")
+printf("M=%.2f A*m^2",M)