summaryrefslogtreecommitdiff
path: root/sample_notebooks/PankajDoshi/Chapter1.ipynb
diff options
context:
space:
mode:
authorhardythe12015-07-03 12:23:43 +0530
committerhardythe12015-07-03 12:23:43 +0530
commit9d260e6fae7328d816a514130b691fbd0e9ef81d (patch)
tree9e6035702fca0f6f8c5d161de477985cacad7672 /sample_notebooks/PankajDoshi/Chapter1.ipynb
parentafcd9e5397e3e1bde0392811d0482d76aac391dc (diff)
downloadPython-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.gz
Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.bz2
Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.zip
add/remove books
Diffstat (limited to 'sample_notebooks/PankajDoshi/Chapter1.ipynb')
-rwxr-xr-xsample_notebooks/PankajDoshi/Chapter1.ipynb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample_notebooks/PankajDoshi/Chapter1.ipynb b/sample_notebooks/PankajDoshi/Chapter1.ipynb
new file mode 100755
index 00000000..91492796
--- /dev/null
+++ b/sample_notebooks/PankajDoshi/Chapter1.ipynb
@@ -0,0 +1 @@
+{"nbformat_minor": 0, "cells": [{"source": "# Chapter 1", "cell_type": "markdown", "metadata": {}}, {"source": "# Special Diodes", "cell_type": "markdown", "metadata": {}}, {"source": "## Example 1.1 Page No. 1-11", "cell_type": "markdown", "metadata": {}}, {"execution_count": 2, "cell_type": "code", "source": "# Assumption\nprint(\"Assume the drop across the LED as 2 V\\n\"); \nprint(\"Therefore, VD = 2 V\\n\");\n\n# Given Data\nprint(\"From fig. 1.11, Rs = 2.2 kohm and Vs = 15 V\\n\"); \n\n# Calculation in mA\nIs =(15-2)/(2.2); \n\n# Result\nprint \"Therefore, Is(mA) = (Vs-VD/Rs) = \",round(Is,2),\"mA\"; ", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Assume the drop across the LED as 2 V\n\nTherefore, VD = 2 V\n\nFrom fig. 1.11, Rs = 2.2 kohm and Vs = 15 V\n\nTherefore, Is(mA) = (Vs-VD/Rs) = 5.91 mA\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example 1.2 Page No. 1-20", "cell_type": "markdown", "metadata": {}}, {"execution_count": 3, "cell_type": "code", "source": "import math\n\n# Formula\nprint(\"The transistor capacitance is given by,\"); \nprint(\"CT = C(0)/[1+|VR/VJ|^n]\\n\");\n\n# Given Data\nprint(\"Now C(0) = 80pF , n = 1/3 as diffused junction\"); \nprint(\"VR = 4.2 V, VJ = 0.7 V\\n\");\n\n# Calculation in pF\nct = round((80*pow(10,-12))/((pow((1+(4.2/0.7)),(0.3333))))*pow(10,12),2); # Note here, 1/3 = 0.3333 \n\n# Result\nprint \"Therefore, CT(pF) = \",ct,\"pF\"; \n\n# Formula\nprint(\"\\nThe transistor capacitance is also given by, \" )\nprint(\"CT = K/[VR+VJ]^n\\n\") \n\n#Calculation\nk = round((41.82*pow(10,-12))*(pow((4.2+0.7),(0.3333)))*pow(10,12),2); # Note here, 1/3 = 0.3333 \n\n# Result\nprint \"Therefore, K = \",k,\"* 10^-12\"; ", "outputs": [{"output_type": "stream", "name": "stdout", "text": "The transistor capacitance is given by,\nCT = C(0)/[1+|VR/VJ|^n]\n\nNow C(0) = 80pF , n = 1/3 as diffused junction\nVR = 4.2 V, VJ = 0.7 V\n\nTherefore, CT(pF) = 41.82 pF\n\nThe transistor capacitance is also given by, \nCT = K/[VR+VJ]^n\n\nTherefore, K = 71.03 * 10^-12\n"}], "metadata": {"scrolled": true, "collapsed": false, "trusted": true}}, {"execution_count": null, "cell_type": "code", "source": "", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.9", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}} \ No newline at end of file