summaryrefslogtreecommitdiff
path: root/1991/CH5/EX5.3/3.sce
blob: cbd8adcbbc6081e49f7796558ce43a5b48a5caad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//input
f=0.15 //focal length
u=0.2 //distance of object
//calculation
x=(1/-f)-(1/u)//lens formula
y=1/x
m=y/u//linear magnification
//output
printf("the position of image is %3.3f m",y)
printf("\n linear magnification is %3.3f hence image is diminished",m)