clc //to calculate specific rotation theta=52.8 //optical rotation in degree l=20 //length of the solution in cm c=20/50 //concentration of the solution in gm/cc alpha=10*theta/(l*c) disp("the specific rotation is alpha="+string(alpha)+"degree")