summaryrefslogtreecommitdiff
path: root/1826/CH19/EX19.5/ex19_5.sce
blob: d7943c49c6ae26b2c67c235bce2375ccb45f0c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)