blob: 99fa7551332bd9f3fecf01b1eac112aea7de26d0 (
plain)
1
2
3
4
5
6
7
|
//clc();
clear;
//To calculate refrative index of core
delta=0.14; //fractional index change
n2=1.3; //refractive index of cladding
n1=n2/(1-delta);
printf("refractive index of core is %f",n1);
|