//Example 3.3, page 77 clc n=1 n1=1.5 r=10//in cm s=40//in cm p=(n1-n)/.1 v1=n/.4 s1=n1/v1 printf("\n The power of image is %dD",p) printf("\n The image distance is %f m",s1)