summaryrefslogtreecommitdiff
path: root/1397/CH8/EX8.2/8_2.sce
blob: ab17fec5e656eb62cb0ce05692d1e1b13cf891a1 (plain)
1
2
3
4
5
6
7
//clc();
clear;
//To calculate the fractional index change 
n1=1.563;          //core refractive index
n2=1.498;          //cladding refractive index
delta=(n1-n2)/n1;
printf("fractional index change is %f",delta);