from __future__ import division
from math import exp
C=1*10**-6#
Vi=6#
R=10*10**3#
Vo=-3#
t=8*10**-3#
tao=R*C#
print 'tao=%0.2f msec'%(tao*10**3)
vf=6*(1-exp(-8/10))#
print 'vf=%0.2f V'%vf
output=vf-3.0#
print 'Output=%0.2f V'%output
from __future__ import division
from math import exp
t=0.1#
tao=0.2#
vc=0.5*exp(-t/tao)#
print 'vc=%0.2f V'%vc
from __future__ import division
tao=250*10**-12#
v=50#
a=v/tao#
t=0.05*10**-6#
vp=a*t#
print 'vp=%0.2f kV'%(vp*10**-3)