diff options
author | Prashant S | 2020-04-14 10:25:32 +0530 |
---|---|---|
committer | GitHub | 2020-04-14 10:25:32 +0530 |
commit | 06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch) | |
tree | 2b1df110e24ff0174830d7f825f43ff1c134d1af /Optical_Fiber_Communication_by_A_Kalavar/1-Introduction_to_Optical_Fiber_Communication.ipynb | |
parent | abb52650288b08a680335531742a7126ad0fb846 (diff) | |
parent | 476705d693c7122d34f9b049fa79b935405c9b49 (diff) | |
download | all-scilab-tbc-books-ipynb-master.tar.gz all-scilab-tbc-books-ipynb-master.tar.bz2 all-scilab-tbc-books-ipynb-master.zip |
Initial commit
Diffstat (limited to 'Optical_Fiber_Communication_by_A_Kalavar/1-Introduction_to_Optical_Fiber_Communication.ipynb')
-rw-r--r-- | Optical_Fiber_Communication_by_A_Kalavar/1-Introduction_to_Optical_Fiber_Communication.ipynb | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/Optical_Fiber_Communication_by_A_Kalavar/1-Introduction_to_Optical_Fiber_Communication.ipynb b/Optical_Fiber_Communication_by_A_Kalavar/1-Introduction_to_Optical_Fiber_Communication.ipynb new file mode 100644 index 0000000..2a68b46 --- /dev/null +++ b/Optical_Fiber_Communication_by_A_Kalavar/1-Introduction_to_Optical_Fiber_Communication.ipynb @@ -0,0 +1,95 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1: Introduction to Optical Fiber Communication" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.10_1: Computing_maximum_capacity_of_channel.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"// Example 1.10.1 page 1.19\n", +"\n", +"clc;\n", +"clear;\n", +"\n", +"Bandwidth = 2d6; //Bandwidth of channel\n", +"Signal_to_Noise_ratio = 1; //Signal to Noise ratio of channel\n", +"\n", +"Capacity = Bandwidth * log2(1 + Signal_to_Noise_ratio); //computing capacity\n", +"Capacity=Capacity/10^6;\n", +"\n", +"printf('Maximum capacity of channel is %d Mb/sec.',Capacity);" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.13_1: Determine_duration_of_shortest_and_widest_optical_pulse.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"// Example 1.13.1 page 1.30\n", +"\n", +"clc;\n", +"clear;\n", +"\n", +"Bit_rate = 2d9; // bit rate of channel\n", +"// Given sequence is 010111101110\n", +"\n", +"Shortest_duration = 1 * (1/Bit_rate); // shortest duration is '1'\n", +"Widest_duration = 4 * (1/Bit_rate); //widest duration is '1111'\n", +"\n", +"Shortest_duration=Shortest_duration*10^9; //Converting into nano seconds\n", +"Widest_duration=Widest_duration*10^9; //Converting into nano seconds\n", +"\n", +"printf('\nShortest duration is %.1f nano second.',Shortest_duration);\n", +"printf('\nWidest duration is %d nano second.',Widest_duration);" + ] + } +], +"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 +} |