summaryrefslogtreecommitdiff
path: root/3543/CH4/EX4.21/Ex4_21.sce
blob: cfdec8df7854ea8b1b886d433ab06d65a3357366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example 4.21  
// Calculation of wavelength seperation between longitudinal modes.
// Page no 486

clc;
clear;
close;

//Given data
lambda=0.85;                   // Wavelength
n1=3.6;                        // Refractive index of GaAs
L=200*10^-6;                   // Length of cavity

// Wavelength seperation between longitudinal modes.
lambda1=((lambda)^2)*(10^-12)/(2*n1*L);   
lambda1=lambda1*10^9;

//Displaying results in the command window
printf("\n Wavelength seperation (in nm^2) = %0.1f ",lambda1);