diff options
Diffstat (limited to '3648/CH22/EX22.8')
-rw-r--r-- | 3648/CH22/EX22.8/Ex22_8.sce | 11 | ||||
-rw-r--r-- | 3648/CH22/EX22.8/Ex22_8.txt | 2 |
2 files changed, 13 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)
diff --git a/3648/CH22/EX22.8/Ex22_8.txt b/3648/CH22/EX22.8/Ex22_8.txt new file mode 100644 index 000000000..d8a8f6365 --- /dev/null +++ b/3648/CH22/EX22.8/Ex22_8.txt @@ -0,0 +1,2 @@ +The image is located at i=-13.33 cm
+The Size of the image is I=1 cm
\ No newline at end of file |