summaryrefslogtreecommitdiff
path: root/3537/CH7/EX7.19/Ex7_19.sce
blob: 696c9f1233563957780eef19259c4bc6e15d06c3 (plain)
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)