diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /401/CH14/EX14.4/Example14_4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '401/CH14/EX14.4/Example14_4.sce')
-rwxr-xr-x | 401/CH14/EX14.4/Example14_4.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/401/CH14/EX14.4/Example14_4.sce b/401/CH14/EX14.4/Example14_4.sce new file mode 100755 index 000000000..38cac7c7b --- /dev/null +++ b/401/CH14/EX14.4/Example14_4.sce @@ -0,0 +1,23 @@ +//Example 14.4
+//Program to calculate:
+//(a)3 dB Pulse Broadening in ns/km
+//(b)Fiber Bandwidth-Length product
+
+clear;
+clc ;
+close ;
+
+//Given data
+tau_o=12.6; //ns - 3 dB width of Output Pulse
+tau_i=0.3; //ns - 3 dB width of Input Pulse
+L=1.2; //km - LENGTH
+
+//(a)3 dB Pulse Broadening in ns/km
+tau=sqrt(tau_o^2-tau_i^2)/L;
+
+//(b)Fiber Bandwidth-Length product
+Bopt=0.44/tau;
+
+//Displaying the Results in Command Window
+printf("\n\n\t (a)3 dB Pulse Broadening is %0.1f ns/km.",tau);
+printf("\n\n\t (b)Fiber Bandwidth-Length product is %0.1f MHz km.",Bopt*10^3);
\ No newline at end of file |