blob: 412916241b4640e5624cd8142dcb40b02d364502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clear
//
//
//
//Variable declaration
mew0=4*%pi*10^-7;
B=0.2; //magnetic induction(web/m^2)
H=500; //magnetic field intensity(amp/m)
//Calculation
mewr=B/(mew0*H); //relative permeability
chi=mewr-1; //susceptibility
//Result
printf("\n relative permeability is %0.1f ",mewr)
printf("\n susceptibility is %0.1f ",chi)
printf("\n answer in the book varies due to rounding off errors")
|