summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.22/Ex17_22.sce
blob: d74a4cf5ead14558c631657e256290282e752b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
fa=20                          //cm
ug=9/8.0
uw=3/2.0

//Calculation
a=(uw-1)/(ug-1)
fw=a*fa
f=fw-fa

//Result
printf("\n Change in focal length is %0.3f  cm", f)