summaryrefslogtreecommitdiff
path: root/3537/CH7/EX7.14/Ex7_14.sce
blob: 491e6939d1de94c0822348cf26f5a7dc32e19f12 (plain)
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)