1 2 3 4 5 6 7 8
//Example 7_14 clc(); clear; //To calculate the fractional index n1=1.563 n2=1.498 delta=(n1-n2)/n1 printf("The fractional index is %.4f",delta)