#Stand of voltage and peak point Voltage
import math
#variable declaration
VBB=20 #in volt
VB=0.7 #in volt(For Si)
ETA=0.6 #intrinsic stand off ratio
#Part (i)
#calculations
StandOffVoltage=ETA*VBB; #in volt
#Resuly
print("\n(i)\nStand Off Voltage in volts :%.0f"%StandOffVoltage)
#Part (ii)
#calculations
VP=ETA*VBB+VB #in volts
#Result
print("\n(ii)\nPeak point Voltage in volts : %.1f"%VP)
#Time period of sawtooth waveform
import math
#variable declaration
VP=10.0 #in volt
R=100.0 #in Kohm
C=1000.0 #in pF
VBB=20.0 #in Volts
ETA=VP/VBB #intrinsic stand off ratio
#calculations
T=R*10**3*C*10**-12*math.log(1/(1-ETA)) #in sec
#Resullt
print("Time period of sawtooth wave in micro seconds : %.2f"%(T*10**6))
#Resistances RB1 and RB2
import math
#variable declaration
RBB=10 #in Kohm
ETA=0.6 #intrinsic stand off ratio
#calculation
RB1=ETA*RBB #in Kohm
RB2=RBB-RB1 #in Kohm
#Result
print("Resistance RB1 in Kohm :%.0f"%RB1)
print("Resistance RB2 in Kohm :%.0f"%RB2)