#importing modules
import math
from __future__ import division
#Variable declaration
r=0.05*10**-9; #radius(m)
B=1; #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**30,2),"*10**-30 Am**2"
print "answer in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
chi=-0.5*10**-5; #magnetic susceptibility
H=9.9*10**4; #magnetic field intensity(amp/m)
mew0=4*math.pi*10**-7;
#Calculation
I=chi*H; #intensity of magnetisation(amp/m)
B=mew0*H*(1+chi); #magnetic flux density(wb/m**2)
#Result
print "intensity of magnetisation is",I,"amp/m"
print "magnetic flux density is",round(B,3),"wb/m**2"
#importing modules
import math
from __future__ import division
#Variable declaration
H=220; #magnetic field intensity(amp/m)
I=3300; #magnetisation(amp/m)
#Calculation
mewr=1+(I/H); #relative permeability
#Result
print "relative permeability is",int(mewr)
#importing modules
import math
from __future__ import division
#Variable declaration
r=6.1*10**-11; #radius of atom(m)
new=8.8*10**15; #frequency(revolution/sec)
mew0=4*math.pi*10**-7;
e=1.6*10**-19; #charge(c)
#Calculation
i=e*new; #current(amp)
B=mew0*i/(2*r); #magnetic induction(web/m**2)
mew=i*math.pi*r**2; #dipole moment(amp m**2)
#Result
print "magnetic induction is",round(B,3),"web/m**2",i
print "dipole moment is",round(mew*10**23,3),"*10**-23 amp m**2"
print "answers in the book are wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
Is=1.96*10**6; #saturation magnetisation(amp/m)
a=3*10**-10; #cube edge(m)
mewB=9.27*10**-24; #bohr magneton(amp/m**2)
n=2; #number of atoms
#Calculation
N=n/(a**3);
mew_bar=Is/(N*mewB); #average number of bohr magnetons(bohr magneton/atom)
#Result
print "average number of bohr magnetons is",round(mew_bar,3),"bohr magneton/atom"
#importing modules
import math
from __future__ import division
#Variable declaration
I=3000; #magnetisation(amp/m)
mew0=4*math.pi*10**-7;
B=0.005; #flux density(weber/m**2)
#Calculation
H=(B/mew0)-I; #magnetizing force(amp/m)
mewr=(I/H)+1; #relative permeability
#Result
print "magnetizing force is",round(H,3),"amp/m"
print "relative permeability is",round(mewr,3)
print "answer in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
H=1800; #magnetizing force(amp/m)
chi=3*10**-5; #magnetic flux(wb)
A=0.2*10**-4; #area(m**2)
#Calculation
B=chi/A;
mew=B/H; #permeability(henry/m)
#Result
print "permeability is",round(mew*10**4,3),"*10**-4 henry/m"
print "answer in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
r=0.04; #radius(m)
i=1000*10**-3; #current(mA)
B=10**-3; #magnetic flux density(wb/m**2)
theta=45; #angle(degrees)
#Calculation
A=math.pi*r**2; #area(m**2)
mew=i*A; #magnetic dipole moment(amp m**2)
theta=theta*math.pi/180;
tow=i*B*math.cos(theta); #torque(Nm)
#Result
print "magnetic dipole moment is",round(mew*10**3,4),"*10**-3 amp m**2"
print "answer in the book varies due to rounding off errors"
print "torque is",round(tow*10**3,4),"*10**-3 Nm"
#importing modules
import math
from __future__ import division
#Variable declaration
A=100; #area(m**2)
B=0.01; #flux density(wb/m**2)
H=40; #magnetic field(amp/m)
M=7650; #atomic weight(kg/m**3)
#Calculation
h=A*B*H; #hysteresis loss per cycle(J/m**3)
#Result
print "hysteresis loss per cycle is",h,"J/m**3"
#importing modules
import math
from __future__ import division
#Variable declaration
h=200; #hysteresis loss per cycle(J/m**3)
M=7650; #atomic weight(kg/m**3)
n=100; #magnetisation cycles per second
#Calculation
hpl=h*n; #hysteresis power loss per second(watt/m**3)
pl=hpl/M; #power loss(watt/kg)
#Result
print "hysteresis power loss per second is",hpl,"watt/m**3"
print "power loss is",round(pl,3),"watt/kg"