blob: bbe1a4e3c6358cc9075589df426d560e4086415d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear
//Given
u=-25.0 //cm
f=10.0 //cm
h1=5
//Calculation
v=1/((1/f)+(1/u))
h2=(v*h1)/u
//Result
printf("\n Position of the image is %0.2f cm",v)
printf("\n Size of the image is %0.2f cm",h2)
|