diff options
Diffstat (limited to '3648/CH22/EX22.8/Ex22_8.sce')
-rw-r--r-- | 3648/CH22/EX22.8/Ex22_8.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/3648/CH22/EX22.8/Ex22_8.sce b/3648/CH22/EX22.8/Ex22_8.sce new file mode 100644 index 000000000..04b6fca65 --- /dev/null +++ b/3648/CH22/EX22.8/Ex22_8.sce @@ -0,0 +1,11 @@ +//Example 22_8
+clc();
+clear;
+//To find the image positon and size
+d1=-20 //units in cm
+d2=40 //units in cm
+i=(d1*d2)/(d2-d1) //Units in cm
+printf("\nThe image is located at i=%.2f cm",i)
+d3=3 //units in cm
+I=(-i*d3)/d2 //units in cm
+printf("\nThe Size of the image is I=%d cm",I)
|