Chapter 1: Units Associated with Basic Electrical Quantities

Example 1, page no. 4

In [1]:
from __future__ import division
#initializing the variables:
I = 5;   # in Ampere
t = 120; # in sec

#calculation:
Q = I*t

#results
print "Charge, Q = ", Q,"coulomb(C)"
Charge, Q =  600 coulomb(C)

Example 2, page no. 5

In [2]:
from __future__ import division
#initializing the variables:
M = 5; # in Kg
a = 2; # in m/s2

#calculation:
F = M*a

#results
print "Force:", F,"Newton(N)"
Force: 10 Newton(N)

Example 3, page no. 5

In [3]:
from __future__ import division
#initializing the variables:
M = 0.2; # in Kg
g = 9.81; # in m/s2

#calculation:
F = M*g

#results
print "Force:", F,"Newton(N)"
Force: 1.962 Newton(N)

Example 4, page no. 6

In [1]:
from __future__ import division
#initializing the variables:
F = 200; # in Newton
d = 20; # in m
t = 25; # in sec

#calculation:
W = F*d
P = W/t

#results
print "Power:", P,"watt(W)"
print "Work Done:", W,"Nm"
Power: 160.0 watt(W)
Work Done: 4000 Nm

Example 5, page no. 6

In [5]:
from __future__ import division
#initializing the variables:
M = 1000; # in Kg
h = 10; # in m
t = 20; # in sec
g = 9.81 # in m/s2

#calculation:
W = M*g*h
P = W/t

#results
print "Work Done:", W,"Joule(J)"
print "Power:", P,"watt(W)"
Work Done: 98100.0 Joule(J)
Power: 4905.0 watt(W)

Example 6, page no. 7

In [6]:
from __future__ import division
#initializing the variables:
R1 = 10; # in ohm
R2 = 5000; # in ohm
R3 = 0.1; # in ohm
#calculation:
G1 = 1/R1
G2 = 1/R2
G3 = 1/R3

#results
print "conductance(G1):", G1,"seimen(S)"
print "conductance(G2):", G2,"seimen(S)"
print "conductance(G3):", G3,"seimen(S)"
conductance(G1): 0.1 seimen(S)
conductance(G2): 0.0002 seimen(S)
conductance(G3): 10.0 seimen(S)

Example 7, page no. 7

In [7]:
from __future__ import division
#initializing the variables:
V = 5; # in Volts
I = 3; # in Ampere
t = 600; # in sec
#calculation:
P = V*I
E = P*t

#results
print "Energy(E):", E,"Joule(J)"
Energy(E): 9000 Joule(J)

Example 8, page no. 8

In [9]:
from __future__ import division
#initializing the variables:
E = 18E5; # in Joule
V = 250; # in Volts
t = 1800; # in sec

#calculation:
P = E/t
I = P/V

#results
print "Power(P):", P,"Watt(W)"
print "Current(I):", I,"Ampere(A)"
Power(P): 1000.0 Watt(W)
Current(I): 4.0 Ampere(A)