summaryrefslogtreecommitdiff
path: root/3769/CH16/EX16.2/Ex16_2.sce
blob: 827c60f0b784d671d5c1f88c136d50b0b14620bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//Given
u=-15.0                             //cm
f=-10                             //cm
o=2.0                              //cm

//Calculation
v=1/((1.0/f)-(1.0/u))
m=v/u
I=-m*o

//Result
printf("\n Position of the image is %0.3f  cm", v)
printf("\n Size of the image is %0.3f  cm",I)
printf("\n Nature of the image isreal and inverted ")