1 2 3 4 5 6 7 8
//Example 7_17 clc(); clear; //To calculate the critical angle n1=1.53 n2=1.42 theta=asin(n2/n1)*180/%pi printf("The critical angle is %.2f degrees",theta)