summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.13/Ex17_13.sce
blob: c4c9b06a0eb091c60f7fae6d6d30985150831533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
u=-240.0
R=15.0                    //cm
u1=1.33
u2=1.5

//Calculation
v=1/((((u2-u1)/R)+(u1/u))/u2)

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