summaryrefslogtreecommitdiff
path: root/Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb
diff options
context:
space:
mode:
authorPrashant S2020-04-14 10:25:32 +0530
committerGitHub2020-04-14 10:25:32 +0530
commit06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch)
tree2b1df110e24ff0174830d7f825f43ff1c134d1af /Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb
parentabb52650288b08a680335531742a7126ad0fb846 (diff)
parent476705d693c7122d34f9b049fa79b935405c9b49 (diff)
downloadall-scilab-tbc-books-ipynb-master.tar.gz
all-scilab-tbc-books-ipynb-master.tar.bz2
all-scilab-tbc-books-ipynb-master.zip
Merge pull request #1 from prashantsinalkar/masterHEADmaster
Initial commit
Diffstat (limited to 'Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb')
-rw-r--r--Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb97
1 files changed, 97 insertions, 0 deletions
diff --git a/Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb b/Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb
new file mode 100644
index 0000000..a31c475
--- /dev/null
+++ b/Optical_Fiber_Communication_by_A_Kalavar/10-Fiber_Measurements.ipynb
@@ -0,0 +1,97 @@
+{
+"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 10: Fiber Measurements"
+ ]
+ },
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 10.5_1: Calculate_3_dB_pulse_broadening_and_bandwidth_length_product.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"// Example 10.5.1 page 10.24\n",
+"\n",
+"clc;\n",
+"clear;\n",
+"\n",
+"To=12.6; //width of output pulse\n",
+"Ti=0.3; //width of input pulse\n",
+"l=1.2; //length of measurement\n",
+"\n",
+"Pulse_dispersion = sqrt(To^2 - Ti^2); //computing pulse dispersion\n",
+"PDKM=Pulse_dispersion/l; //computing pulse dispersion per Kilometer\n",
+"BW=0.44/PDKM; //computing optical bandwidth\n",
+"BW=BW*1000;\n",
+"printf('\nPulse broadning is %.1f ns/km.\nOptical bandwidth is %.1f MHz.Km.',PDKM,BW);"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 10.6_1: Determine_attenuation_and_estimate_accuracy.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"// Example 10.6.1 page 10.28\n",
+"\n",
+"clc;\n",
+"clear;\n",
+"\n",
+"V2=12;\n",
+"V1=2.5;\n",
+"L2=3;\n",
+"L1=0.004;\n",
+"\n",
+"alpha_dB = 10* log10(V2/V1)/(L2-L1);\n",
+"un = 0.2/(L2-L1);\n",
+"\n",
+"printf('\nAttenuation is %.2f dB/km\nUncertainity +/- %.3f dB.',alpha_dB,un);\n",
+"\n",
+"//answer for attenuation in the book is 2.26 deviation of 0.01 and for uncertaininty is 0.066 deviation of 0.001"
+ ]
+ }
+],
+"metadata": {
+ "kernelspec": {
+ "display_name": "Scilab",
+ "language": "scilab",
+ "name": "scilab"
+ },
+ "language_info": {
+ "file_extension": ".sce",
+ "help_links": [
+ {
+ "text": "MetaKernel Magics",
+ "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
+ }
+ ],
+ "mimetype": "text/x-octave",
+ "name": "scilab",
+ "version": "0.7.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}