#importing modules
import math
from __future__ import division
#Variable declaration
chi=-0.4*10**-5; #magnetic susceptibility
H=5*10**5; #magnetic field intensity(amp/m)
mew0=4*math.pi*10**-7;
#Calculation
B=mew0*H*(1+chi); #magnetic flux density(wb/m**2)
M=chi*H; #magnetic moment(A/m)
#Result
print "magnetic flux density is",round(B,3),"wb/m**2"
print "magnetic moment is",M,"A/m"
#importing modules
import math
from __future__ import division
#Variable declaration
chi=-0.25*10**-5; #magnetic susceptibility
H=1000; #magnetic field intensity(amp/m)
mew0=4*math.pi*10**-7;
#Calculation
M=chi*H; #magnetisation(A/m)
B=mew0*(H+M); #magnetic flux density(wb/m**2)
#Result
print "magnetisation is",M*10**2,"*10**-2 A/m"
print "magnetic flux density is",round(B*10**3,3),"*10**-3 wb/m**2"
#importing modules
import math
from __future__ import division
#Variable declaration
mewr=15; #relative permeability
H=250; #magnetic field intensity(amp/m)
mew0=4*math.pi*10**-7;
#Calculation
M=H*(mewr-1); #magnetisation(A/m)
B=mew0*(H+M); #magnetic flux density(wb/m**2)
#Result
print "magnetisation is",M,"A/m"
print "magnetic flux density is",round(B*10**3,2),"*10**-3 wb/m**2"
#importing modules
import math
from __future__ import division
#Variable declaration
chi=-0.42*10**-3; #magnetic susceptibility
H=1000; #magnetic field intensity(amp/m)
mew0=4*math.pi*10**-7;
#Calculation
M=chi*H; #magnetisation(A/m)
B=mew0*(H+M); #magnetic flux density(wb/m**2)
#Result
print "magnetisation is",M,"A/m"
print "magnetic flux density is",round(B*10**3,4),"*10**-3 wb/m**2"
print "answer for flux density in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
d=0.1; #diameter(m)
i=0.5; #current(ampere)
#Calculation
r=d/2; #radius of atom(m)
mew=i*math.pi*r**2; #magnetic moment(A-m**2)
#Result
print "magnetic moment is",round(mew*10**3,2),"*10**-3 A-m**2"
#importing modules
import math
from __future__ import division
#Variable declaration
mew0=4*math.pi*10**-7;
B=0.0044; #magnetic flux density(wb/m**2)
M=3300; #magnetisation(A/m)
#Calculation
H=(B/mew0)-M; #magnetising force(amp/m)
mewr=1+(M/H); #relative permeability
#Result
print "magnetising force is",round(H,1),"A/m"
print "relative permeability is",round(mewr,2)
print "answers given in the book are wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
r=0.52*10**-10; #radius(m)
B=3; #magnetic induction(web/m**2)
e=1.6*10**-19; #charge(c)
m=9.1*10**-31; #mass(kg)
#Calculation
d_mew=e**2*r**2*B/(4*m); #change in magnetic moment(Am**2)
#Result
print "change in magnetic moment is",round(d_mew*10**29,3),"*10**-29 A-m**2"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
r=5.29*10**-11; #radius(m)
B=2; #magnetic induction(web/m**2)
e=1.6*10**-19; #charge(c)
m=9.1*10**-31; #mass(kg)
#Calculation
d_mew=e**2*r**2*B/(4*m); #change in magnetic moment(Am**2)
#Result
print "change in magnetic moment is",round(d_mew*10**29,3),"*10**-29 A-m**2"
#importing modules
import math
from __future__ import division
#Variable declaration
chi1=2.8*10**-4; #susceptibility
T1=350; #temperature(K)
T2=300; #temperature(K)
#Calculation
chi2=(chi1*T1)/T2; #susceptibility at 300K
#Result
print "susceptibility at 300K is",round(chi2*10**4,3),"*10**-4"
#importing modules
import math
from __future__ import division
#Variable declaration
B0=6.5*10**-4; #magnetic field(Tesla)
B=1.4; #magnetic field(Tesla)
#Calculation
mewr=B/B0; #relative permeability of iron
#Result
print "relative permeability of iron is",round(mewr,2)