summaryrefslogtreecommitdiff
path: root/3769/CH16/EX16.3/Ex16_3.sce
blob: 2d431b2b61cde596e1a0120803d500b6e27c7215 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
u=-10.0                       //cm
f=-15.0

//Calculation
v=1/((1/f)-(1/u))
m=-v/u

//Result
printf("\n (i) Image position is %0.3f  cm", v)