Chapter 4:Powers of 10 and Logarithms

Problem no:4.17, Page no:37

In [2]:
from __future__ import division

#Cal of Inductive Reactance

#Iniatialization

L=5                         #Inductance in mH

f=10                        #Frequency in kHz


#Calculation

L=5/1000                    #Convert Inductance in H

f=10*1000                   #Convert Frequency in Hz

XL=2*3.14*f*L               #Inductance Formula

print "The inductive Reactance of 5mH inductor is",int(XL),"Ohm"
The inductive Reactance of 5mH inductor is 314 Ohm