summaryrefslogtreecommitdiff
path: root/Fiber_Optics_Communication_by_H._Kolimbiris/chapter10_1.ipynb
blob: 48dede0814a53e2a747498f82ff3593ffba9a719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
 "metadata": {
  "celltoolbar": "Raw Cell Format",
  "name": "",
  "signature": "sha256:bca789cc7fd2ad14c612bcaec239833585e5ad7586678b40e30cb722f114286f"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 10: Optical Modulation"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.1,Page number 354"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#given\n",
      "\n",
      "Vpi=1;         #Assumed 1 because we can not use a variable on RHS \n",
      "#Vpi is Violtage swing\n",
      "A=0.25;         #chirping\n",
      "#V1=(AV1p+Vp)/2\n",
      "V1=(A*Vpi+Vpi)/2;\n",
      "print\" V1=\",V1,\"Vpi\"; \n",
      "V2=V1-Vpi;\n",
      "print\" V2=\",V2,\"Vpi\";\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " V1= 0.625 Vpi\n",
        " V2= -0.375 Vpi\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.2,Page number 354"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#given\n",
      "\n",
      "Vpi=1;         #Assumed 1 because we can not use a variable on RHS\n",
      "#Vpi is Violtage swing\n",
      "\n",
      "print\"for alpha=0.3\";\n",
      "A=0.3;         #chirping\n",
      "\n",
      "#V1=(AV1p+Vp)/2\n",
      "V1=(A*Vpi+Vpi)/2;\n",
      "print\" V1=\",V1,\"Vpi\"; \n",
      "V2=V1-Vpi;\n",
      "print\" V2=\",V2,\"Vpi\";\n",
      "\n",
      "print\"for alpha=0.8\";\n",
      "A=0.8;         #chirping\n",
      "#V1=(AV1p+Vp)/2\n",
      "V1x=(A*Vpi+Vpi)/2;\n",
      "print\" V1=\",V1x,\"Vpi\"; \n",
      "V2x=V1x-Vpi;\n",
      "print\" V2=\",V2x,\"Vpi\";\n",
      "\n",
      "print\" Biasing range is\",V1,\"Vpi <= V1 <=\",V1x,\"Vpi\"; \n",
      "print\" Biasing range is\",V2,\"Vpi <= V2 <=\",V2x,\"Vpi\"; \n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "for alpha=0.3\n",
        " V1= 0.65 Vpi\n",
        " V2= -0.35 Vpi\n",
        "for alpha=0.8\n",
        " V1= 0.9 Vpi\n",
        " V2= -0.1 Vpi\n",
        " Biasing range is 0.65 Vpi <= V1 <= 0.9 Vpi\n",
        " Biasing range is -0.35 Vpi <= V2 <= -0.1 Vpi\n"
       ]
      }
     ],
     "prompt_number": 2
    }
   ],
   "metadata": {}
  }
 ]
}