summaryrefslogtreecommitdiff
path: root/1991/CH5/EX5.6/6.sce
blob: 6e28ba9ad5a1db01feb0a1bf14f5bfd34335ad34 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
clear
//input
F=5 //power of lenses
f1=0.45 //focal length
//calculation
x=F-(1/f1)//lens formula
f2=1/x
//output
printf("the focal length is %3.3f m",f2)
printf("\n the power is %3.3f dioptre",x)