from __future__ import division
# Given data
R= 10;# in kΩ
R= R*10**3;# in Ω
# Part (i)
V=300;# in V
I_A= V/R;# in A
print "Part (i) : For 300 V voltage : "
print "The anode current = %0.f mA" %(I_A*10**3)
# Part (ii)
V=100;# in V
I_A= V/R;# in A
print "Part (ii) : For 100 V voltage : "
print "The anode current = %0.f mA" %(I_A*10**3)
# Given data
t_rr = 10;# in µs
Q_rr = 150;# in µc
I_rr = (2*Q_rr)/t_rr;# in A
print "The peak reverse recovery current = %0.f A" %I_rr