From 4a1f703f1c1808d390ebf80e80659fe161f69fab Mon Sep 17 00:00:00 2001 From: Thomas Stephen Lee Date: Fri, 28 Aug 2015 16:53:23 +0530 Subject: add books --- sample_notebooks/DeepTrambadia/sc223.ipynb | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sample_notebooks/DeepTrambadia/sc223.ipynb (limited to 'sample_notebooks/DeepTrambadia/sc223.ipynb') diff --git a/sample_notebooks/DeepTrambadia/sc223.ipynb b/sample_notebooks/DeepTrambadia/sc223.ipynb new file mode 100644 index 00000000..319edd95 --- /dev/null +++ b/sample_notebooks/DeepTrambadia/sc223.ipynb @@ -0,0 +1,34 @@ +#example 2.23 page no.81 +#Repeated example with silicon diode +import math + +#initialization of variables + +v=4 #v in Volt +Vi=[16,-16] #peak voltage in Volt +VT=0.7 #thresold voltage + +#calculation + + +print "+16V dc supply is pressuring the diode to stay in the short circuit state" +print "But for any Vi < v,it will result in short circuted diode" +print "But for any Vi > v,it will result in open circuted diode" +print "If the diode voltage is 0.7V" + +v = v-VT +print "resulting battery input voltage = %.1fV" %(v) +print "For open circuit state" +if (Vi[0] >= v): + V0=Vi[0] + print "V0 =%dV " %(V0) + +print "for the negative region of the input signal,the diode will be in the 'on' state" + +if [Vi[1]==-16]: + V0 = v + print "V0 = %.2fV" %(V0) + + + + -- cgit