Chapter 22:The properties of Light¶

Ex22.1:pg-1067¶

In [1]:
  #Example 22_1
import math

#To find the position and size of the image
d1=5      #units in cm
d2=30       #units in cm
i=(d1*d2)/(d2-d1)     #Units in cm
d3=2             #units in cm
I=(i/d2)*d3        #units in cm
print "The position of the image is i=",round(i)," cm\nThe Size of the image is I=",round(I,2)," cm High"

The position of the image is i= 6.0  cm
The Size of the image is I= 0.0  cm High


Ex22.2:pg-1068¶

In [2]:
  #Example 22_2
import math

#To find the location of the image
d1=10      #units in cm
d2=5       #units in cm
i=(d1*d2)/(d2-d1)     #Units in cm
print "The position of the image is i=",round(i)," cm"

The position of the image is i= -10.0  cm


Ex22.3:pg-1069¶

In [4]:
  #Example 22_3
import math
#To find the location of the image and its relative size
r=100.0              #Unts in cm
d1=-r/2      #units in cm
d2=75.0       #units in cm
i=(d1*d2)/(d2-d1)     #Units in cm
p=75      #units in cm
sizee=-i/p             #units in cm
print "The location of the image is i=",round(i)," cm\n The relative size of the image is I_O=",round(sizee,2)," cm"

The location of the image is i= -30.0  cm
The relative size of the image is I_O= 0.4  cm


Ex22.4:pg-1069¶

In [7]:
#Example 22_4

import math
#To find the angle at which the light emerge in to the air
theta=37        #Units in degrees
n1=1.33       #Units in constant
n2=1       #Units in constant
thetaa=math.asin((n1*math.sin(theta*math.pi/180))/n2)*180/math.pi            #units in degrees
print "The angle at which the light emerges in air is theta=",round(thetaa)," degrees"

The angle at which the light emerges in air is theta= 53.0  degrees


Ex22.5:pg-1068¶

In [5]:
  #Example 22_5
import math

#At what angle does the light emerges from the bottom of the dish
print "We have Theta1=Theta4 \nWhich shows that A unform layer of transparent material does not change the direction of the beam of light"

We have Theta1=Theta4
Which shows that A unform layer of transparent material does not change the direction of the beam of light


Ex22.6:pg-1068¶

In [6]:
  #Example 22_6
import math

#To draw a ray diagram to locate the image
print "From the diagram we notice that eyes will assume that the three rays come from image position indicated and as we see the image is virtual, erect and enlarged"
d1=10      #units in cm
d2=5       #units in cm
i=(d1*d2)/(d2-d1)     #Units in cm
print "\nThe image is located at i=",round(i,2)," cm"

From the diagram we notice that eyes will assume that the three rays come from image position indicated and as we see the image is virtual, erect and enlarged

The image is located at i= -10.0  cm


Ex22.7:pg-1068¶

In [7]:
  #Example 22_7
import math

#To find the image position by means of the ray diagram
print "From the ray diagram we have noticed that the image is virtual, erect and dimnished in size"
d1=5      #units in cm
d2=-10       #units in cm
i=(d1*d2)/(d2-d1)     #Units in cm
print "\nThe image is located at i=",round(i,2)," cm"

From the ray diagram we have noticed that the image is virtual, erect and dimnished in size

The image is located at i= 3.0  cm


Ex22.8:pg-1069¶

In [8]:
  #Example 22_8
import math
#To find the image positon and size
d1=-20      #units in cm
d2=40.0       #units in cm
i=(d1*d2)/(d2-d1)     #Units in cm
print "\nThe image is located at i=",round(i,2)," cm"
d3=3.0            #units in cm
I=(-i*d3)/d2     #units in cm
print "\nThe Size of the image is I=",round(I)," cm"

The image is located at i= -13.33  cm

The Size of the image is I= 1.0  cm