diff options
author | Thomas Stephen Lee | 2015-08-28 16:53:23 +0530 |
---|---|---|
committer | Thomas Stephen Lee | 2015-08-28 16:53:23 +0530 |
commit | 4a1f703f1c1808d390ebf80e80659fe161f69fab (patch) | |
tree | 31b43ae8895599f2d13cf19395d84164463615d9 /sample_notebooks/DeepTrambadia/sc223.ipynb | |
parent | 9d260e6fae7328d816a514130b691fbd0e9ef81d (diff) | |
download | Python-Textbook-Companions-4a1f703f1c1808d390ebf80e80659fe161f69fab.tar.gz Python-Textbook-Companions-4a1f703f1c1808d390ebf80e80659fe161f69fab.tar.bz2 Python-Textbook-Companions-4a1f703f1c1808d390ebf80e80659fe161f69fab.zip |
add books
Diffstat (limited to 'sample_notebooks/DeepTrambadia/sc223.ipynb')
-rw-r--r-- | sample_notebooks/DeepTrambadia/sc223.ipynb | 34 |
1 files changed, 34 insertions, 0 deletions
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)
+
+
+
+
|