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