summaryrefslogtreecommitdiff
path: root/1826/CH19/EX19.5/ex19_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1826/CH19/EX19.5/ex19_5.sce')
-rwxr-xr-x1826/CH19/EX19.5/ex19_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1826/CH19/EX19.5/ex19_5.sce b/1826/CH19/EX19.5/ex19_5.sce
new file mode 100755
index 000000000..d7943c49c
--- /dev/null
+++ b/1826/CH19/EX19.5/ex19_5.sce
@@ -0,0 +1,15 @@
+// Example 19.5, page no-544
+clear
+clc
+
+B=0.65//Wb/m^2
+r=8906//kg/m^3
+M=58.7
+avg=6.023*10^26
+mu=4*%pi*10^-7
+k=9.27*10^-24//A.m^2
+N=r*avg/M
+mu_m=B/(N*mu)
+mu_m=mu_m/k
+
+printf("The magnetic moment of nickel atom is %.2f Bohr magneton",mu_m)