summaryrefslogtreecommitdiff
path: root/3648/CH23/EX23.1/Ex23_1.sce
blob: 476da7a251e89e1af2b0af858739bf6e2be7b1c2 (plain)
1
2
3
4
5
6
7
8
//Example 23_1
clc();
clear;
//To find the focal length of the reading glasses
d1=25     //units in cm
d2=-75      //units in cm
f=(d1*d2)/(d2+d1)   //Units in cm
printf("The focal length of the reading glasses is f=%.2f cm",f)