summaryrefslogtreecommitdiff
path: root/2234/CH3/EX3.2/ex3_2.sce
blob: 358d78a084ec5ff766c5715390fed1c45b7161a9 (plain)
1
2
3
4
5
6
7
8
clc;
f=80;     //focal length in cm
f1=20;    //focallength of first lens in cm
f2=(80/3);  //using (1/F)=(1/f1)+(1/f2)
P=(100/f);   //power in D
P1=100/20;    //power of first lens
P2=P1-P;    //power in D
disp(P2,"Power in D = ");  //displaying result