summaryrefslogtreecommitdiff
path: root/3753/CH5/EX5.15/Ex5_15.sce
blob: 9e4a8dfb961d640912ec91438109c876901cb2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example 5.15, Page number 5.32

clc;clear;close

// variable declaration
L=10 // in km
n1=1.55 //unitless
delta=0.026//unitless
C=3*10**5

// Calculations
delta_T=(L*n1*delta)/C //unitless
B_W=10/(2*delta_T) // Hz/km

// Result
printf("Total dispersion = %.1f ns",(delta_T/10**-9))
printf("\nBandwidth length product = %.2f Hz-km",(B_W/10**5))

// Answer given in the text book is wrong"