1 2 3 4 5 6 7 8
//Example 7_13 clc(); clear; //To calculate the refractive index of the core NA=0.39 delta=0.05 n1=NA/sqrt(2*delta) printf("The refractive index of the core is %.3f",n1)