diff options
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.ipynb | 97 |
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 +} |