summaryrefslogtreecommitdiff
path: root/1061/CH2/EX2.5/Ex2_5.sce
blob: 55bfaa20b80e568912a9cf2de3abe1d5aec9bf6b (plain)
1
2
3
4
5
6
7
8
9
10
//Ex:2.5
clc;
clear;
close;
dl=0.012;
n_a=0.22;// numerical aperture
n1=n_a/(sqrt(2*dl));// core refractive ondex
n2=n1-(dl*n1);// cladding refractive index
printf("core refractive ondex = %f",n1);
printf("\n cladding refractive index = %f",n2);