import math
#initialisation of variables
Na=10.0**19 #Cm^3
q=1.6*10**-19
Vj=0.94 #V
Nd=10.0**17
e=11.9*8.85*10**-14
A=9.6*10**-8
#Calculations
W=math.sqrt(((2*e)/(q*Nd))*Vj)
Ct=e*A/(W*10**-4)
#Results
print("The transition capacitance is= %.2f fF " %(Ct*10**11))
import math
#initialisation of variables
t=10 #ns lifetime of holes
I=0.1 #mA forward current
n=1
vt=0.026 #V
#Calculations
Cd=(t*I)/(n*vt)
#Results
print("The defusion capicitance is= %.2f pF " %Cd)
import math
#initialisation of variables
V=10.0
Vb=6.0 # breakdown voltage
vz1=0.1/(0.1+1)*10 #v
vz2=9.0/(9+1)*10 #v
#Calculations
Ir=(V-Vb)/vz1
Il=Vb/vz2
Iz=Ir-Il
#Results
print("The value of Iz is= %.2f mA " %(Iz))