Chapter 1:Basic Electricity and Algebra

Problem no:1.1, Page no:2

In [1]:
#cal of current in toaster

#Initialization

V=120       #voltage in V

R=12        #Resistance in Ohm

#calculation

I=V/R

print "I=",I,"A"
I= 10 A

Problem no:1.3, Page no:3

In [3]:
from __future__ import division


#cal of current in toaster

#initialization

R=12                #Resistance in Ohm

V=100               #voltage in V


#calculation

I=V/R               #ohm's Law

print "When V=100 V,I=",round(I,1),"A"

V=150               #Voltage in V

#calculation

I=V/R

print "When V=150 V,I=",I,"A"
When V=100 V,I= 8.3 A
When V=150 V,I= 12.5 A

Problem no:1.2, Page no:2

In [2]:
#cal of current in toaster

#initialization

R=10             #Resistance in Ohm

V=120            #voltage in V

#calculation

I=V/R            #ohm's Law

print "When R=10 ohm,I=",I,"A"

R=15             #Resistance in Ohm

#calculation

I=V/R

print "When R=15 Ohm, I=",I,"A"
When R=10 ohm,I= 12 A
When R=15 Ohm, I= 8 A

Problem no:1.10, Page no:7

In [4]:
#Cal of potential difference across the terminals

#Initialization

I=2               #Current in A

R=8               #Resistance in V

#calculation

V=I*R             #ohm's Law

print "V=",V,"V"
V= 16 V

Problem no:1.11, Page no:7

In [5]:
from __future__ import division

#Cal of Resistance of Electric heater

#initialization

V=120                #Voltage in V

I=25                 #Current in A

#calculation

R=V/I                #Ohm's Law

print "R=",R,"Ohm"
R= 4.8 Ohm

Problem no:1.16, Page no:9

In [1]:
#cal of unknown resistance

#initialization

#Resistances in Ohm

R1=10

R2=1000

R3=26

#calculation

Rx=(R2*R3)/R1          #Wheatstone Bridge Formula

print "Rx=",int(Rx),"Ohm"
Rx= 2600 Ohm