Chapter 1 : Electricity

Example No. 1_5 Page No. 24

In [1]:
# What is the output voltage of a battery that expends 3.6 J of energy in moving 0.5C of charge?

# Given data

W = 3.6#        # Work=3.6 Jouls
Q = 0.5#        # Charge=0.5 Columb

V = W/Q#
print 'The Output Voltage of a Battery = %0.2f Volts'%V
The Output Voltage of a Battery = 7.20 Volts

Example No. 1_6 Page No. 24

In [2]:
#The charge of 12 C moves past a given point every second. How much is the intensity of charge flow?

# Given data

Q = 12#        # Charge=12 Columb
T = 1#          # Time=1 Sec i.e every second

I = Q/T#
print 'The Intensity of Charge Flow = %0.2f Amps'%I
The Intensity of Charge Flow = 12.00 Amps

Example No. 1_7 Page No. 24

In [3]:
# The charge of 5 C moves past a given point in 1 s. How much is the current?

# Given data

Q = 5#        # Charge=5 Columb
T = 1#          # Time=1 Sec

I = Q/T#
print 'The Current = %0.2f Amps'%I
The Current = 5.00 Amps

Example No. 1_8 Page No. 25

In [5]:
# Calculate the resistance for the following conductance values: (a) 0.05 S (b) 0.1 S

# Given data

G1 = 0.05#      # G1=0.05 Siemins
G2 = 0.1#      # G1=0.1 Siemins

R1 = 1/G1#
print 'The Resistance for Conductance value 0.05 S = %0.2f Ohms'%R1

R2 = 1/G2#
print 'The Resistance for Conductance value 0.1 S = %0.2f Ohms'%R2
The Resistance for Conductance value 0.05 S = 20.00 Ohms
The Resistance for Conductance value 0.1 S = 10.00 Ohms

Example No. 1_9 Page No. 26

In [9]:
#Calculate the conductance for the following resistance values: (a) 1 kOhms (b)5 kOhms

# Given data

R1 = 1.0*10**3#      # R1=1k Ohms
R2 = 5.0*10**3#       # R2=5k Ohms

G1 = 1/R1#
print 'The Conductance for Resistance value 1 kohms = %0.e Siemens'%G1
print 'OR 1 mS'

G2 = 1/R2#
print 'The Conductance for Resistance value 5 kohms = %0.e Siemens'%G2
print 'OR 200 uS'
The Conductance for Resistance value 1 kohms = 1e-03 Siemens
OR 1 mS
The Conductance for Resistance value 5 kohms = 2e-04 Siemens
OR 200 uS