summaryrefslogtreecommitdiff
path: root/3669/CH7/EX7.1/1.sce
blob: 11bad9ea72779f3d7506533ecef7429fbb8cb8d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

//Variable declaration
chi=-0.4*10**-5;      //magnetic susceptibility
H=5*10**5;      //magnetic field(A/m)
mew0=4*%pi*10**-7;    

//Calculation
B=mew0*H*(1+chi);     //flux density(Wb/m**2)
M=chi*H;      //magnetic moment(A/m)

//Result
printf('flux density is %0.3f    Wb/m**2 \n',(B))
printf('magnetic moment is %0.3f   A/m  \n',M)