summaryrefslogtreecommitdiff
path: root/3768/CH12/EX12.7/Ex12_7.sce
blob: d2c642cf1f9f943ba175ab3a09bcaa013aa8c40a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example number 12.7, Page number 265

clc;clear;
close;

//Variable declaration
n1=1.5;          //Core refractive index
n2=1.3;          //Cladding refractive index
//Calculation
delta=(n1-n2)/n1;    //fractional index change
//Result
printf("fractional index change is %.3f delta",delta)