# Chapter 42 REFLECTION AND REFRACTION SPHERICAL WAVES AND SPHERICAL SURFACES¶

## Example 42.4 Location of image¶

In [1]:
from __future__ import division
n1=1
n2=2
o=20 #in cm
r=10 #in cm
print("x=n2/i")
x=((n2-n1)/r)-(n1/o)
print("x=",x)
i=n2/x
print("The value of i in cm=",i)

x=n2/i
x= 0.05
The value of i in cm= 40.0


## Example 42.5 Location of image¶

In [2]:
from __future__ import division
n1=2
n2=1
o=15   #in cm
r=-10  #in cm
print("x=n2/i")
x=((n2-n1)/r)-(n1/o)
print("The value of i in cm= %.5f"%x)
i=n2/x
print("The value of i in cm= %d"%i)

x=n2/i
The value of i in cm= -0.03333
The value of i in cm= -30


## Example 42.7 Location of image¶

In [3]:
from __future__ import division
n=1.65
r_1=40   #in cm
r_2=-40  #in cm
x=(n-1)*((1/r_1)-(1/r_2))
print("x=1/f in cm= %.4f"%x)
print("f=1/x")
f=1/x
print("f in cm= %.5f"%f)

x=1/f in cm= 0.0325
f=1/x
f in cm= 30.76923


## Example 42.8 Location of image¶

In [4]:
from __future__ import division
o=9  #in cm
f=24 #in cm
x=(1/f)-(1/o)
print("x=1/i in cm= %.5f"%x)
i=1/x
print("i in cm= %.1f"%i)
print("Lateral magnification =")
m=-(i/o)
print('m= %.1f'%m)

x=1/i in cm= -0.06944
i in cm= -14.4
Lateral magnification =
m= 1.6