summaryrefslogtreecommitdiff
path: root/sample_notebooks/PankajDoshi/Chapter1.ipynb
blob: 9149279675144f61ab696c97b02ddccb18bee575 (plain)
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"}}}}