In [4]:

```
#from the given figure:
Vdd=16.0 #supply voltage in volts
Idss=10.0 #drain source saturation current in mA
Vp=-8.0 #pinch off voltage in volts
Rd=2.0 #drain resistance in kohm
Vgg=-2.0 #gate voltage in volts
#calculation:
Vgs=Vgg #gate source voltage in volts
X=(1-Vgs/Vp)**2 #temporary variable
Id=Idss*X #drain current in mA
Vds=Vdd-Id*Rd #drain source voltage in volts
Vd=Vds #drain voltage in volts
Vg=Vgs #gate voltage in volts
Vs=0 #source voltage in volts
print "Vgs=",Vgs,"V"
print "Id=",Id,"mA"
print "Vds=",Vds,"V"
print "Vd=",Vd,"V"
print "Vg=",Vg,"V"
print "Vs=",Vs,"V"
```

In [6]:

```
#from the given figure:
Vdd=20.0 #supply voltage in volts
Idss=8.0 #drain source saturation current in mA
Vp=-6.0 #pinch off voltage in volts
Rd=3.3 #drain resistance in kohm
Rg=1.0 #gate resistance in Mohm
Rs=1 #source resistance in kohm
#drawing the load line and characterstics curve:
#calculation:
Id=2.6 #drain current in mA
Vds=Vdd-Id*(Rd+Rs) #drain source voltage in volts
Vs=Id*Rs #source voltage in volts
Vg=0 #gate voltage in volts
Vd=Vds+Vs #drain voltage in volts
print "Id=",Id,"mA"
print "Vds=",Vds,"V"
print "Vs=",Vs,"V"
print "Vg=",Vg,"V"
print "Vd=",Vd,"V"
```

In [9]:

```
#from the given figure:
Vdd=16.0 #supply voltage in volts
Idss=8.0 #drain source saturation current in mA
Vp=-4.0 #pinch off voltage in volts
Rd=2.4 #drain resistance in kohm
R1=2.1 #resistance in Mohm
R2=270.0 #resistance in kohm
Rs=1.5 #source resistance in kohm
#drawing the load line and characterstics curve:
#calculation:
Vg=1.82 #gate voltage in volts
Id=2.4 #drain current in mA
Vgs=-1.8 #gate source voltage in volts
Vd=Vdd-Id*Rd #drain voltage in volts
Vs=Id*Rs #source voltage in volts
Vds=Vdd-Id*(Rd+Rs) #drain source voltage in volts
Vdg=Vd-Vg #drain gate voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Vd=",Vd,"V"
print "Vs=",Vs,"V"
print "Vds=",Vds,"V"
print "Vdg=",Vdg,"V"
```

In [12]:

```
#from the given figure:
Vdd=12.0 #supply voltage in volts
Idss=12.0 #drain source saturation current in mA
Vp=-6.0 #pinch off voltage in volts
Rd=1.5 #drain resistance in kohm
Rs=680 #source resistance in ohm
#drawing the load line and characterstics curve:
#calculation:
Vg=0 #gate voltage in volts
Id=3.8 #drain current in mA
Vgs=-2.6 #gate source voltage in volts
Vd=Vdd-Id*Rd #drain voltage in volts
Vs=Id*Rs #source voltage in volts
Vds=Vd-Vs/1000 #drain source voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Vd=",Vd,"V"
print "Vg=",Vg,"V"
print "Vs=",round(Vs/1000,2),"V"
print "Vds=",round(Vds,2),"V"
```

In [19]:

```
#from the given figure:
Vdd=18.0 #supply voltage in volts
Idss=6.0 #drain source saturation current in mA
Vp=-3.0 #pinch off voltage in volts
Rd=1.8 #drain resistance in kohm
R1=110 #resistance in Mohm
R2=10.0 #resistance in Mohm
Rs=750.0 #source resistance in ohm
#drawing the load line and characterstics curve:
#calculation:
Vg=1.5 #gate voltage in volts
Id=3.1 #drain current in mA
Vgs=-0.8 #gate source voltage in volts
Vds=Vdd-Id*(Rd+Rs/1000) #drain source voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Vds=",round(Vds,2),"V"
```

In [20]:

```
#from the given figure:
Vdd=18.0 #supply voltage in volts
Idss=6.0 #drain source saturation current in mA
Vp=-3.0 #pinch off voltage in volts
Rd=1.8 #drain resistance in kohm
R1=110 #resistance in Mohm
R2=10.0 #resistance in Mohm
Rs=150.0 #source resistance in ohm
#drawing the load line and characterstics curve:
#calculation:
Id=7.6 #drain current in mA
Vgs=0.35 #gate source voltage in volts
Vds=Vdd-Id*(Rd+Rs/1000) #drain source voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Vds=",round(Vds,2),"V"
```

In [22]:

```
#from the given figure:
Vdd=20.0 #supply voltage in volts
Idss=8.0 #drain source saturation current in mA
Vp=-8.0 #pinch off voltage in volts
Rd=6.2 #drain resistance in kohm
Rs=2.4 #source resistance in kohm
Rg=1 #gate resistance in Mohm
#drawing the load line and characterstics curve:
#calculation:
Id=1.7 #drain current in mA
Vgs=-4.3 #gate source voltage in volts
Vds=Vdd-Id*(Rd+Rs/1000) #drain source voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Vds=",round(Vds,2),"V"
```

In [23]:

```
#from the given figure:
Vdd=20.0 #supply voltage in volts
Idss=10.0 #drain source saturation current in mA
Vp=-4.0 #pinch off voltage in volts
Rd=1.5 #drain resistance in kohm
Vgs=0 #gate source voltage in volts
#calculation:
#since Vgs=0V, Id=Idss=10mA
Id=10 #drain current in mA
Vd=Vdd-Id*Rd #drain voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Vd=",round(Vd,2),"V"
```

In [28]:

```
#from the given figure:
Vdd=16.0 #supply voltage in volts
Idss=8.0 #drain source saturation current in mA
Vp=-4.0 #pinch off voltage in volts
Rc=3.6 #collector resistance in kohm
Rb=470 #base resistance in kohm
Rs=2.4 #source resistance in kohm
B=80
Vbe=0.7 #base emitter voltage in volts
#drawing the load line and characterstics curve:
#calculation:
Id=1.0 #drain current in mA
Vgs=-2.6 #gate source voltage in volts
Ie=Ic=Id #emitter current and collector current in mA
Ib=Ic/B #base current in mA
Vb=Vdd-Ib*Rb #base voltage in volts
Ve=Vd=Vb-Vbe #base voltage in volts
print "Id=",Id,"mA"
print "Vgs=",Vgs,"V"
print "Ie=",Ie,"mA"
print "Ib=",round(Ib*1000,2),"microA"
print "Vb=",round(Vb,3),"V"
print "Ve=",round(Ve,2),"V"
```

In [31]:

```
#from the given figure:
Vdd=16.0 #supply voltage in volts
Rd=1.8 #drain resistance in kohm
R1=91.0 #resistance in kohm
R2=47.0 #resistance in kohm
Vd=12 #drain voltage in volts
Vgs=-2 #gate source voltage in volts
#calculation:
Id=(Vdd-Vd)/Rd #drain current in mA
Vg=(R2*Vdd)/(R2+R1) #gate voltage in volts
Rs=(Vg-Vgs)/Id #source resistance in kohm
print "Id=",round(Id,2),"mA"
print "Vg=",round(Vg,2),"V"
print "Rs=",round(Rs,2),"kohm"
```

In [34]:

```
#from the given figure:
Idon=4.0 #drain current in mA
Vgson=6.0 #gate source voltage in volts
Vgsth=3.0 #gate source threshold voltage in volts
#calculation:
Id=Idon #drain current in mA
Vgs=Vgson #gate voltage in volts
Vdd=Vgs*2 #drain voltage in volts
Vds=Vdd/2 #drain source voltage in volts
Rd=(Vdd-Vds)/Idon #drain resistance in ohm
print "Vdd=",round(Vdd,2),"V"
print "Rd=",round(Rd,2),"kohm"
```