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

//Calculation
u=(1/(1/f)/3.0)*4
v=u/2.0

//Result
printf("\n Position of object is %0.3f  cm",u)
printf("\n When the image is virtual %0.3f  cm",v)