Chapter 10: Optical Modulation

Example 10.1,Page number 354

In [3]:
import math

#given

Vpi=1;         #Assumed 1 because we can not use a variable on RHS 
#Vpi is Violtage swing
A=0.25;         #chirping
#V1=(AV1p+Vp)/2
V1=(A*Vpi+Vpi)/2;
print" V1=",V1,"Vpi"; 
V2=V1-Vpi;
print" V2=",V2,"Vpi";
 V1= 0.625 Vpi
 V2= -0.375 Vpi

Example 10.2,Page number 354

In [2]:
import math

#given

Vpi=1;         #Assumed 1 because we can not use a variable on RHS
#Vpi is Violtage swing

print"for alpha=0.3";
A=0.3;         #chirping

#V1=(AV1p+Vp)/2
V1=(A*Vpi+Vpi)/2;
print" V1=",V1,"Vpi"; 
V2=V1-Vpi;
print" V2=",V2,"Vpi";

print"for alpha=0.8";
A=0.8;         #chirping
#V1=(AV1p+Vp)/2
V1x=(A*Vpi+Vpi)/2;
print" V1=",V1x,"Vpi"; 
V2x=V1x-Vpi;
print" V2=",V2x,"Vpi";

print" Biasing range is",V1,"Vpi <= V1 <=",V1x,"Vpi"; 
print" Biasing range is",V2,"Vpi <= V2 <=",V2x,"Vpi"; 
for alpha=0.3
 V1= 0.65 Vpi
 V2= -0.35 Vpi
for alpha=0.8
 V1= 0.9 Vpi
 V2= -0.1 Vpi
 Biasing range is 0.65 Vpi <= V1 <= 0.9 Vpi
 Biasing range is -0.35 Vpi <= V2 <= -0.1 Vpi