#Given
m=1.6*10**-27 #Kg
e=1.6*10**-19
Ey=2*10**4 #V/m
x=0.1 #m
vx=5*10**6 #m/s
#Calculation
t=x/vx
Fy=e*Ey
a=Fy/m
y=a*t**2/2.0
#Result
print"Transverse deflection is", y*10**3,"mm"
#Given
n=8*10**28 #/m**2
l=1 #m
A=8*10**-6 #m**2
B=5*10**-3 #T
F=8*10**-2 #N
e=1.6*10**-19 #C
#Calculation
vd=F/(B*n*A*l*e)
#Result
print"Drift velocity is", vd*10**4,"*10**-4 m/s"
#Given
q=1.6*10**-19 #C
v=10**7 #m/s
B=3 #T
#Calculation
F=q*v*B
#Result
print"Instantaneous force is", F,"N"
#Given
I=2 #A
a=0.1 #m
u=10**-7
q=1.6*10**-19
v=4*10**4 #m/s
#Calculation
import math
B=(u*2*I)/a
F=B*q*v
#Result
print"Force of magnetic field is", F,"N"
#Given
v=10**5 #m/s
e=1.6*10**-19 #C
m=9.1*10**-31 #Kg
B=0.019*10**-4 #T
#Calculation
r=m*v/(B*e)
#Result
print"Radius of the circular path is", round(r,3),"m"
#Given
e=1.6*10**-19
m=9*10**-31 #Kg
T=10**-6 #S
#Calculation
import math
B=2*math.pi*m/(e*T)
#Result
print"Magnetic field is", round(B*10**5,3)*10**-5 ,"T"
#Given
m=1.67*10**-27 #Kg
e=1.60*10**-19
V=10**7 #Hz
R=0.6 #m
#Calculation
import math
B=2*math.pi*m*V/e
Emax=(B**2*e**2*R**2/(2*m))/1.6*10**13
#Result
print"Kinetic energy of the proton is",round(Emax,3),"Mev"
#Given
I=5 #A
l=0.1 #m
m=3*10**-3
g=9.8
a=0.5
#Calculation
w=m*g*l
B=w/a
#Result
print"Magnitude of the magnetic field is", B*10**3,"*10**-3 tesla"
#given
I1=4 #A
I2=6
r=0.03 #m
u=10**-7
#Calculation
F=u*2*I1*I2/r
#Result
print"Force per unit length is", F*10**4,"*10**-4 N/m"
#Given
I1=5 #A
I2=12
r=0.4 #m
u=10**-7
#Calculation
F=u*2*I1*I2/r
F1=u*2*I1*I2/r
#Result
print"(i) Force when current flows in same direction is", F,"N/m"
print"(ii) Force when current flows in opposite direction is",F1,"N/m"
#Given
I1=300 #A
r=1.5*10**-2 #m
u=10**-7
#Calculation
F=u*2*I1*I1/r
#Result
print"Force per unit length is",F,"N/m"
#Given
I=10 #A
n=100
A=8*10**-2 #m**2
B=5 #T
#Calculation
import math
t=n*B*I*A*math.cos(60*3.14/180.0)
#Result
print"Torque is", round(t,0),"Nm"
#Given
n=30
I=6 #A
B=1 #T
r=8*10**-2 #m
#Calculation
import math
A=math.pi*r**2
t=n*B*I*A*math.sin(60*3.14/180.0)
#Result
print"(a) Magnitude of the counter torque is", round(t,3),"Nm"
print"(b) Torque on the planar loop is independent of its shape, the torque will remain unchanged."
#Given
B=100*10**-4 #T
I=10 #A
l=44
#Calculation
import math
r=l/(2.0*math.pi)
A=math.pi*r**2
t=B*I*A
#Result
print"Maximum torque is", round(t*10**-1,2),"*10**-3 Nm"
#Given
n=20
r=10*10**-2 #m
B=0.10 #T
I=5 #A
n1=10**29 #/m**3
A1=10**-5 #m**2
#Calculation
import math
A=math.pi*r**2
t=n*B*I*A*math.sin(0*3.14/180.0)
F=B*I/(n1*A1)
#Result
print"(a) Total torque on the coil is", t
print"(b) Net force on a planar loop in a magnetic field is always zero"
print"(c) Average force is",F,"N"
#Given
A=5*10**-4 #m**2
n=60
a=18 #degree
B=90*10**-4 #T
I=0.20*10**-3 #A
#calculation
k=n*B*I*A/a
#Result
print"Torsional constant is",k,"N m per degree"
#Given
G=15 #ohm
Ig=2*10**-3 #A
I=5 #A
#Calculation
S=Ig*G/(I-Ig)
#Result
print"Shunt resistance is",round(S,3),"Ohm"
#Given
V=50*10**-3 #V
G=100.0 #ohm
#Calculation
Ig=V/G
S=Ig*G/(I-Ig)
#Result
print"Shunt resistance is", round(S,2),"ohm"
#Given
G=100 #ohm
Ig=5*10**-3 #A
I=5 #A
#Calculation
S=Ig*G/(I-Ig)
#Result
print"Shunt resistance is",S
#Given
G=5 #ohm
Ig=15.0*10**-3 #A
I=1.5
V=1.5 #V
#Calculation
S=Ig*G/(I-Ig)
R=(V/Ig)-G
#Result
print"(a) To enable galvanometer to read 1.5 A is", round(S,2),"ohm"
print"(b) To enable galvanometer to read 1.5 V is",R,"ohm"
#Given
G=10 #ohm
Ig=25.0*10**-3 #A
V=120 #V
I=20 #A
#Calculation
R=(V/Ig)-G
S=Ig*G/(I-Ig)
#Result
print"(a) To convert the galvanometer into the voltmeter reading is" ,R,"ohm"
print"(b) To convert the galvanometer into the ammeter reading is",round(S,4),"ohm"
#Given
E=3 #v
R=55 #ohm
Ra=1
I=50*10**-3 #A
#Calculation
r=(E/I)-(R+Ra)
#Result
print"Value of r is", r,"ohm"
#Given
E=60 #V
R1=400 #ohm
R2=300
V1=30.0
a=120000
#Calculation
Rv=(-V1*a)/(V1*(R1+R2)-E*R1)
R=Rv*R2/(Rv+R2)
I1=E/(R+R1)
V=I1*R
#Result
print"Voltmeter reads", V,"V"
#Given
Rv=400.0
E=84 #V
r=100.0
r1=200
#Calculation
R=1/(1/Rv+1/100.0)
R1=R+200
I=E/R1
I1=I/5.0
V=I1*Rv
R2=r+r1
I2=E/R2
V2=I2*r
#Result
print"(a) Reading on voltmeter is", V,"V"
print"(b) Potential difference is",V2,"V"
#Given
E=120 #v
Rv=10**4 #ohm
a=4.0
#Calculation
x=(Rv*(E-a))/a
#Result
print"Large resistance is", x*10**-3,"K ohm"
#Given
B=0.75 #T
E=9*10**5 #V/m
V=15*10**3
#Calculation
v=E/B
a=v**2/(2.0*V)
#Result
print"The value of e/m is", a*10**-7,"*10**7 C/Kg"
#Given
m=9.11*10**-31 #Kg
e=1.60*10**-19 #C
B=0.40*10**-4 #T
a=18*1.6*10**-16
PQ=0.30
a2=1.52 #degree
#calculation
import math
r=math.sqrt(2*m*a)/(B*e)
a1=(PQ/r)
PA=r*(1-math.cos(a2*3.14/180.0))
#Result
print"up and down deflection of the beam is", round(PA*10**3,0),"mm"
#Given
m=60*10**-3
g=9.8
I=5
l=0.45
#Calculation
B=m*g/(I*l)
T=2*m*g
#Result
print"(i) Magnetic field is", round(B,3),"T"
print"(ii) Total tension in the wire is",T,"N"
#Given
B=0.15 #T
m=0.30 #Kg/m
a=30 #degree
g=9.8 #m/s**2
#Calculation
import math
I=m*g*math.tan(a*3.14/180.0)/B
#Result
print"Value of current is", round(I,2),"A"
#Given
I1=4 #A
I2=3
r=3.0*10**-2 #m
u=10**-7
l=5*10**-2
#Calculation
F=u*2*I1*I2/r
F1=F*l
#Result
print"Total force is", F1,"N (attractive force)"
#Given
AB=25*10**-2 #m
BC=10*10**-2
r1=2.0*10**-2 #m
I1=15 #A
I2=25 #A
u=10**-7
#Calculation
r2=BC+r1
F1=u*2*I1*I2*AB/r1
F2=u*2*I1*I2*AB/r2
F=F1-F2
#Result
print"Net force on the loop is", F*10**4,"*10**-4 N (towards XY)"
#Given
M=30*10**-3 #Kg
g=9.8 #m/s**2
l=0.5 #m
r=10**-2
u=10**-7
#Calculation
import math
I=math.sqrt((M*g*r)/(u*2*l))
#Result
print"Value of current is", round(I,2),"A"
#Given
n=900
l=0.6
u=10**-7
l2=0.02 #m
l1=6
m=2.5*10**-3 #Kg
g=9.8
#Calculation
import math
n1=n/l
B=4*math.pi*n1
F=B*l1*l2
I=m*g/F
#Result
print"Current in the winding of the secondary is", round(I*10**7,1),"A"
#Given
A=1.6*10**-3 #m**2
n=200
B=0.2 #T
a=30 #degree
K=10**-6 #N m /degree
a1=0.1
#Calculation
Imax=K*a/(n*B*A)
Imin=K*a1/(n*B*A)
#Result
print"(i) Minimum current is",round(Imax*10**4,2),"*10**-4 A"
print"(ii) Smallest current that can be detected is",Imin,"A"
#Given
R=5000.0 #ohm/V
V=5
V1=20.0
#Calculation
Ig=1/R
G=V/Ig
R1=(V1/Ig)-G
Rn=R1+G
Rv=Rn/V1
#Result
print"New voltmeter will be still graded as", Rv,"ohm/V"
#Given
V1=100 #V
Rv=400.0
#Calculation
I1=V1/Rv
V=I1*20
V2=V1+V
V3=V2-V1
#Result
print"Error in the reading of the voltmeter is",V3,"V"