summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.28/Ex17_28.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH17/EX17.28/Ex17_28.sce')
-rw-r--r--3769/CH17/EX17.28/Ex17_28.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3769/CH17/EX17.28/Ex17_28.sce b/3769/CH17/EX17.28/Ex17_28.sce
new file mode 100644
index 000000000..b325a6e1d
--- /dev/null
+++ b/3769/CH17/EX17.28/Ex17_28.sce
@@ -0,0 +1,11 @@
+clear
+//Given
+v=-20.0 //cm
+u=-60.0 //cm
+
+//Calculation
+f=1/((1/v)-(1/u))
+
+//Result
+printf("\n Focal length of the lens is %0.3f cm", f)
+printf("\n The lens is diverging")