blob: 550e98e68c8299af104b10553f31bfaadce63e46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
//Given
f=12.0
v=4.0
//Calculation
u=1/((1/f)-(1/v))
m=-v/u
//Result
printf("\n (i) Object position is %0.3f cm", u)
printf("\n (ii) Magnification is %0.2f ",m)
|