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

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

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

//Result
printf('magnetisation is %0.3f    A/m \n',M)
printf('flux density is %0.3f   *10**-3 Wb/m**2 \n',(B*10**3))