#Given
R=5*10**3 #ohm
a=0.9 #in.
b=3.0 #in.
R2=1500 #ohm
Vt=5 #volts
#Calculation
R2=(a*R)/b
V0=(R2/R)*Vt
#Result
print"The value of output resistance is ", V0,"volts"
#Given
a=3
b=5.0
R=5*10**3 #ohm
Vt=5 #volts
R4=2.5*10**3 #ohm
#Calculation
R2=(a*R)/b
Ve=((R2/R)*Vt-(R4/R)*Vt)
#Results
print"The value of Ve is ",Ve,"volts"
#Given
K=2
R=130 #ohm
l=1*10**-6
#Calculation
R1=K*R*l
#Result
print"The value of change in resistance is ", R1*10**6,"micro ohm"
#Given
Vt=15 #Volts
R1=4000.0 #ohm
R2=17.0 #ohm
R3=3.0 #ohm
R4=950 #ohm
#Calculation
I=Vt/(R1+R2+R3)
I1=Vt/(R2+R3+R4)
#Result
print" Meter reading at 77 degree F is ", round(I*10**3,2),"mA","\n Meter reading at 150 degree F is ",round(I1*10**3,1),"mA"
#Given
L=2500 #F
a=1
b=0.04
#Calculation
c=a-b
Lt=L*(1/c)
Ld=Lt-L
#Result
print"The value of inductance is ", round(Ld,0),"micro H"
#Given
V1=6.3 #volts
V2=5.2 #Volts
a=-0.5 #in.
b=-0.30
c=-5.2
d=-0.25
#Calculation
V0=(b*c)/a
V=(d*c)/a
#Result
print"(i) The output voltage is ", V0,"Volts"
print"(ii) The output voltage is ", V,"volts"
#Given
K=0.32
a=7.06*10**-3 #J
#Calculation
E=a/K
#Result
print"Electric energy is ", round(E*10**3,2),"mJ"
#Given
V=30 #Volts
I=10*10**-3 #A
Rcell=1000 #ohm
R1=100*10**3 #ohm
#Calculation
R=(V/I)-Rcell
I1=V/(R+R1)
#Result
print"(i) The required series resistance is ", R*10**-3,"Kohm"
print"(ii) Dark current level is ",round(I1*10**3,1),"mA"
#Given
R0=180
a=0.00392
T1=60 #degree
T2=20 #degree
#Calculation
R=R0*(1-(a*(T1-T2)))
#Result
print"The resistance is ", round(R,2),"ohm"
#Given
R0=100.0
a=0.00392
T1=50 #degree
T2=25 #degree
R=200 #ohm
R=R0*(1+a*(T1-T2))
t2=(((R/R0)-1)/a)+T2
print t2