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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 10: Optical Modulation"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.1: Required_Biasing_voltage.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Chapter 10\n",
"//page no 354\n",
"//given\n",
"clc;\n",
"clear all;\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",
"printf('\n V1= %0.3f Vpi',V1) \n",
"V2=V1-Vpi;\n",
"printf('\n V2= %0.3f Vpi',V2) "
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.2: Biasing_range.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Chapter 10\n",
"//page no 354\n",
"//given\n",
"clc;\n",
"clear all;\n",
"Vpi=1; //Assumed 1 because we can not use a variable on RHS\n",
"//Vpi is Violtage swing\n",
"disp('for alpha=0.3');\n",
"A=0.3; //chirping\n",
"//V1=(AV1p+Vp)/2\n",
"V1=(A*Vpi+Vpi)/2;\n",
"printf('\n V1= %0.2f Vpi',V1) \n",
"V2=V1-Vpie;\n",
"printf('\n V2= %0.2f Vpi\n',V2) \n",
"disp('for alpha=0.8');\n",
"A=0.8; //chirping\n",
"//V1=(AV1p+Vp)/2\n",
"V1x=(A*Vpi+Vpi)/2;\n",
"printf('\n V1= %0.1f Vpi',V1x) \n",
"V2x=V1x-Vpi;\n",
"printf('\n V2= %0.1f Vpi',V2x) \n",
"printf('\n Biasing range is %0.2f Vpi <= V1 <= %0.2f Vpi',V1,V1x) \n",
"printf('\n Biasing range is %0.1f Vpi <= V2 <= %0.2f Vpi',V2x,V2) "
]
}
],
"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
}
|