summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.27/Ex17_27.sce
blob: 25bb0ac46f78236dd8b74de59c5377ad684df71c (plain)
1
2
3
4
5
6
7
8
9
10
clear
//Given
f=-15.0                     //cm
v=-10.0                       //cm

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

//Result
printf("\n The object is placed at a distance of %0.3f  cm", u)