diff options
Diffstat (limited to 'Optical_Communiation_by_Anasuya_Kalavar/chapter1.ipynb')
-rwxr-xr-x | Optical_Communiation_by_Anasuya_Kalavar/chapter1.ipynb | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/Optical_Communiation_by_Anasuya_Kalavar/chapter1.ipynb b/Optical_Communiation_by_Anasuya_Kalavar/chapter1.ipynb deleted file mode 100755 index a271cc5c..00000000 --- a/Optical_Communiation_by_Anasuya_Kalavar/chapter1.ipynb +++ /dev/null @@ -1,128 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:985ad452c65fa6c321f3f5a416b2ee95d94eb6cba2ef0da1eac4d7b73a848422" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "chapter1 - Overview of optical fiber communications" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.6.1, page 1-15" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "from __future__ import division\n", - "Bit_rate = 2*10**9 # bit rate of channel\n", - "# Given sequence is 010111101110\n", - "Shortest_duration = 1*(1/Bit_rate) # shortest duration is '1'\n", - "Widest_duration = 4*(1/Bit_rate) #widest duration is '1111'\n", - "Shortest_duration = Shortest_duration # seconds\n", - "Widest_duration = Widest_duration # seconds\n", - "print \"Shortest duration is %.1g seconds.\" %Shortest_duration\n", - "print \"Widest duration is %.1g seconds.\" %Widest_duration" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Shortest duration is 5e-10 seconds.\n", - "Widest duration is 2e-09 seconds.\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.12.1, page 1-28" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "from __future__ import division\n", - "from numpy import log2\n", - "Bandwidth = 2*10**6 #Bandwidth of channel\n", - "Signal_to_Noise_ratio = 1 #Signal to Noise ratio of channel\n", - "Capacity = Bandwidth * log2(1 + Signal_to_Noise_ratio) #computing capacity\n", - "Capacity=Capacity/10**6 \n", - "print \"Maximum capacity of channel is %d Mb/sec.\" %Capacity" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Maximum capacity of channel is 2 Mb/sec.\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Question 10, page 1-31" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "from __future__ import division\n", - "Bit_rate = 2*10**9 # bit rate of channel\n", - "# Given sequence is 010111101110\n", - "Shortest_duration = 1*(1/Bit_rate) # shortest duration is '1'\n", - "Widest_duration = 4*(1/Bit_rate) #widest duration is '1111'\n", - "Shortest_duration = Shortest_duration # seconds\n", - "Widest_duration = Widest_duration # seconds\n", - "print \"Shortest duration is %.1g seconds.\" %Shortest_duration\n", - "print \"Widest duration is %.1g seconds.\" %Widest_duration" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Shortest duration is 5e-10 seconds.\n", - "Widest duration is 2e-09 seconds.\n" - ] - } - ], - "prompt_number": 9 - } - ], - "metadata": {} - } - ] -}
\ No newline at end of file |