1 2 3 4 5 6 7 8 9 10 11 12
clear //Given u=-240.0 R=15.0 //cm u1=1.33 u2=1.5 //Calculation v=1/((((u2-u1)/R)+(u1/u))/u2) //Result printf("\n Position of the image is %0.0f cm",v)