blob: 54d37291d528c79df4db995dc099e06d63cb0cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 3.3, page 77
clc
n=1
n1=1.5
r=10//in cm
s=40//in cm
p=(n1-n)/.1
v1=n/.4
s1=n1/v1
printf("\n The power of image is %dD",p)
printf("\n The image distance is %f m",s1)
|