1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given fa=20 //cm ug=9/8.0 uw=3/2.0 //Calculation a=(uw-1)/(ug-1) fw=a*fa f=fw-fa //Result printf("\n Change in focal length is %0.3f cm", f)