blob: c09e2fa92978b3fce86854bfa0b9585e662c4bbe (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 22_7
clc();
clear;
//To find the image position by means of the ray diagram
printf("From the ray diagram we have noticed that the image is virtual, erect and dimnished in size")
d1=5 //units in cm
d2=-10 //units in cm
i=(d1*d2)/(d2-d1) //Units in cm
printf("\nThe image is located at i=%.2f cm",i)
|