diff options
Diffstat (limited to '3769/CH17/EX17.31/Ex17_31.sce')
-rw-r--r-- | 3769/CH17/EX17.31/Ex17_31.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3769/CH17/EX17.31/Ex17_31.sce b/3769/CH17/EX17.31/Ex17_31.sce new file mode 100644 index 000000000..6fa0a515c --- /dev/null +++ b/3769/CH17/EX17.31/Ex17_31.sce @@ -0,0 +1,12 @@ +clear +//Given +f1=20.0 //cm +f2=-40.0 //cm + +//Calculation +f=1/((1/f1)+(1/f2)) +P=1/f + +//Result +printf("\n Focal length is %0.3f cm", f) +printf("\n Power is %0.3f D",P*10**2) |