summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.23/Ex17_23.sce
blob: 275357c13b8bfbb04e56f7bc59cd3d4dc15fc7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
u=1.56
R1=20.0                      //cm
u1=-10.0                      //cm

//Calculation
f=1/((u-1)*(2/R1))
v=1/((1/u1)+(1/f))

//Result
printf("\n Position of the image formed is %0.2f  ",v)