summaryrefslogtreecommitdiff
path: root/3769/CH19/EX19.2/Ex19_2.sce
blob: 9088b85ea02a9cb4fd3a309bc49b1f82ccc7eef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
u=-25.0                         //cm
v=-150.0                       //cm

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

//Result
printf("\n Focal length of the lens is %0.3f  cm", f)
printf("\n Power of the lens is %0.2f  D",P)