diff options
author | hardythe1 | 2015-07-03 12:23:43 +0530 |
---|---|---|
committer | hardythe1 | 2015-07-03 12:23:43 +0530 |
commit | 9d260e6fae7328d816a514130b691fbd0e9ef81d (patch) | |
tree | 9e6035702fca0f6f8c5d161de477985cacad7672 /Optical_Communiation_by_Anasuya_Kalavar/chapter10.ipynb | |
parent | afcd9e5397e3e1bde0392811d0482d76aac391dc (diff) | |
download | Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.gz Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.bz2 Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.zip |
add/remove books
Diffstat (limited to 'Optical_Communiation_by_Anasuya_Kalavar/chapter10.ipynb')
-rwxr-xr-x | Optical_Communiation_by_Anasuya_Kalavar/chapter10.ipynb | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/Optical_Communiation_by_Anasuya_Kalavar/chapter10.ipynb b/Optical_Communiation_by_Anasuya_Kalavar/chapter10.ipynb new file mode 100755 index 00000000..6479ba9e --- /dev/null +++ b/Optical_Communiation_by_Anasuya_Kalavar/chapter10.ipynb @@ -0,0 +1,96 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:0e6d6451a42a64c2f14a17049d585a97e1d159d84d0a7abf55f333e84dfeeece" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "chapter10 - Performance measurement and monitoring" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 10.5.1, page 10-24" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from numpy import sqrt\n", + "from __future__ import division\n", + "To=12.6 #width of output pulse\n", + "Ti=0.3 #width of input pulse\n", + "l=1.2 #length of measurement\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", + "print \"Pulse broadning is %.1f ns/km.\\nOptical bandwidth is %.1f MHz.Km.\" %(PDKM,BW) " + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Pulse broadning is 10.5 ns/km.\n", + "Optical bandwidth is 41.9 MHz.Km.\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 10.6.1, page 10-28" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from numpy import log10\n", + "V2=12 \n", + "V1=2.5 \n", + "L2=3 \n", + "L1=0.004 \n", + "alpha_dB = 10* log10(V2/V1)/(L2-L1) \n", + "un = 0.2/(L2-L1) \n", + "print \"Attenuation is %.2f dB/km\\nUncertainity +/- %.3f dB.\" %(alpha_dB,un) \n", + "#answer for attenuation in the book is wrong." + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Attenuation is 2.27 dB/km\n", + "Uncertainity +/- 0.067 dB.\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |