blob: ca2344a535c73ef2d307f3efadc4308ec15fe499 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Example 2.8.2
clc;
clear;
n1=1.47 //refractive index of core
a=4.3d-6; //radius of core
delta=0.2/100 //relative index difference
lamda= 2*3.14*a*n1*sqrt(2*delta)/2.405; //computing wavelength
lamda=lamda*10^9;
printf("Wavelength of fiber is %d nm.",lamda);
//answer in the book is given as 1230nm which is incorrect.
|