summaryrefslogtreecommitdiff
path: root/sample_notebooks/MayankSahu/Chapter1.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'sample_notebooks/MayankSahu/Chapter1.ipynb')
-rwxr-xr-xsample_notebooks/MayankSahu/Chapter1.ipynb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample_notebooks/MayankSahu/Chapter1.ipynb b/sample_notebooks/MayankSahu/Chapter1.ipynb
new file mode 100755
index 00000000..530c71c7
--- /dev/null
+++ b/sample_notebooks/MayankSahu/Chapter1.ipynb
@@ -0,0 +1 @@
+{"nbformat_minor": 0, "cells": [{"source": "#Chapter1 : Concepts of electric current and Laws", "cell_type": "markdown", "metadata": {}}, {"source": "## Example1.1, Page number 4", "cell_type": "markdown", "metadata": {}}, {"execution_count": 1, "cell_type": "code", "source": "#variable declaration\nL =12 #meter\nA=0.01*10**-4 #m**2\nR=0.2 #ohm\n\n#calculation\np=R*A/L #specific resistance\n\n#result\nprint \"specific resistance = \" , p, \"ohm-metre\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "specific resistance = 1.66666666667e-08 ohm-metre\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.2, Page number 5", "cell_type": "markdown", "metadata": {}}, {"execution_count": 2, "cell_type": "code", "source": "\n#variable declaration\na0=0.0043 \nt1=27 #degree celsius\nt2=40\nR1=1.5 #ohm\n\n#calculation\nR2=R1*(1+a0*t2)/(1+a0*t1) #ohm\n\n#result\nprint \"The resistance of armature winding at 40 degree celcius =\" , round(R2,3) ,\"ohm\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "The resistance of armature winding at 40 degree celcius = 1.575 ohm\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.3, Page number 13", "cell_type": "markdown", "metadata": {}}, {"execution_count": 3, "cell_type": "code", "source": "#variable decdlaration\nR1=5 #ohm \nR2=10\nR3=15\nV=120 #volt\n\n#calculation\nR=R1+R2+R3 #ohm\nI=V/R # ampere\nV1=I*R1 #volt\nV2=I*R2\nV3=I*R3\n\n#result\nprint \"Resistance = \" , R , \"ohm\"\nprint \"cureent = \" , I , \"amperes\"\nprint \"Voltage V1 = \" , V1 , \"volts\"\nprint \"Voltage V2 = \" , V2 , \"volts\"\nprint \"Voltage V3 = \" , V3 , \"volts\"\n\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Resistance = 30 ohm\ncureent = 4 amperes\nVoltage V1 = 20 volts\nVoltage V2 = 40 volts\nVoltage V3 = 60 volts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.4, Page number 14", "cell_type": "markdown", "metadata": {}}, {"execution_count": 4, "cell_type": "code", "source": "#varaiable declaration\nRab =(2.0*4.0)/(2+4) #ohms\nRbc =(6.0*8.0)/(6+8)\n\n#calculation\nRac = Rab+Rbc #ohms\n\n#result\nprint \"resistance across AC = \" , round(Rac,2) , \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "resistance across AC = 4.76 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.5, Page number 14", "cell_type": "markdown", "metadata": {}}, {"execution_count": 5, "cell_type": "code", "source": "#variable declaration\nRab=4 #ohm\nRbc=(12.0*8.0)/(12+8)\nRcd=(3.0*6.0)/(3+6)\n\n#calculation\nRad=Rab+Rbc+Rcd #ohm\n\n#result\nprint \"resistance across AC = \" , Rad, \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "resistance across AC = 10.8 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.6, Page number 15", "cell_type": "markdown", "metadata": {}}, {"execution_count": 6, "cell_type": "code", "source": "#variable declaration\nR1=8 #ohms\nR=6\n#calculations\nR2 = 48/2 # R = R1*R2/(R1+R2)\n\n#result\nprint \" Resistance R2 = \" , R2, \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " Resistance R2 = 24 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.7, Page number 15", "cell_type": "markdown", "metadata": {}}, {"execution_count": 7, "cell_type": "code", "source": "#variable declaration\nI=12.0 #ampere\nR1=6.0 #ohms\nR2=8.0\n\n#calculations\nI1=I*R2/(R1+R2) #amperes\nI2=I*R1/(R1+R2)\n\n#result\nprint \"I1= \" , round(I1,3) , \"amperes\" \nprint \"I2= \" , round(I2,2) , \"amperes\" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "I1= 6.857 amperes\nI2= 5.14 amperes\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.9, Page number 17", "cell_type": "markdown", "metadata": {}}, {"execution_count": 8, "cell_type": "code", "source": "#variable declaration\nR1=0.02 #ohms\nR2=0.03\nI = 10 #amperes\n\n#Calculations\nI1=(I*R2)/(R1+R2)\nI2=(I*R1)/(R1+R2)\n\n#result\nprint \" I1= \" , I1 , \"amperes \"\nprint \" I2= \" , I2 , \"amperes \" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": " I1= 6.0 amperes \n I2= 4.0 amperes \n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.10, Page number 18", "cell_type": "markdown", "metadata": {}}, {"execution_count": 9, "cell_type": "code", "source": "#variable declaration\nV=200.0 #volts\nI=25.0 #amperes\nP1=1500.0 #watts\n\n#calculations \nR1=(V*V)/P1 #ohms\nR=V/I #total resistance\nR2=R*R1/(R1-R) #ohms\n\n#result\nprint \"R1 = \" ,round(R1,2) , \"ohms\" \nprint \"R2 = \" , round(R2,2) , \"ohms\" \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "R1 = 26.67 ohms\nR2 = 11.43 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.11, Page number 19", "cell_type": "markdown", "metadata": {}}, {"execution_count": 10, "cell_type": "code", "source": "#variable declaration\nV=100.0 #volts \nP=1500.0 #watts\n\n#calculations\nR=(V**2/P)/2 #ohms\nRa=R\nRb=R\nRc=R\nR1=((Ra*Rc)/(Ra+Rc))+Rb\nI=V/R1 #amperes\nI1=(I*Ra)/(Ra+Rc)\nI2=(I*Ra)/(Ra+Rc)\nPb=I*I*Ra #watts\nPa=I1*I1*Rb\nPc=I2*I2*Rc\n\n#result\nprint \"power dissipated in coil Pa = \" , round(Pa,2) , \"watts\"\nprint \"power dissipated in coil Pb = \" , round(Pb,2), \"watts\"\nprint \"power dissipated in coil Pc = \" , round(Pc,2) , \"watts\"\n\n#Round off error in book \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "power dissipated in coil Pa = 333.33 watts\npower dissipated in coil Pb = 1333.33 watts\npower dissipated in coil Pc = 333.33 watts\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.12, Page number 20", "cell_type": "markdown", "metadata": {}}, {"execution_count": 11, "cell_type": "code", "source": "#variable declaration\nL=3600 #six lamp 1000 watt each for six days\nH=3000 # heater\nM=735.5 # single phase motor\nF=2400 #four fans 75W\nC=0.9 #cost of energy\n\n#Calculations\nT=L+H+M+F #total energy consumed in watt \nTE=T*30/1000\nB=TE*C #Bill amount in Rs\n\n#result\nprint \"Bill amount = Rs \" , round(B) \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Bill amount = Rs 263.0\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.18, Page number 34", "cell_type": "markdown", "metadata": {}}, {"execution_count": 12, "cell_type": "code", "source": "#variable declaration\nRry=4.0 #ohm\nRyb=1.0\nRbr=5.0\n\n#calculation\nRr=(Rbr*Rry)/(Rry+Rbr+Ryb)\nRy=(Rry*Ryb)/(Rry+Rbr+Ryb)\nRb=(Rbr*Ryb)/(Rry+Rbr+Ryb)\n\n#result\nprint \"Rr = \" , Rr , \"ohms\"\nprint \"Ry = \" , Ry , \"ohms\"\nprint \"Rb= \" , Rb , \"ohms\"\n\n#Value of Rr in book is printed wrong \n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Rr = 2.0 ohms\nRy = 0.4 ohms\nRb= 0.5 ohms\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"source": "## Example1.19, Page number 34", "cell_type": "markdown", "metadata": {}}, {"execution_count": 13, "cell_type": "code", "source": "#variable declaration\nRr=2.0 #ohms\nRy=0.67\nRb=1.0\n\n#calculations\nRry=(Rr*Ry)+(Ry*Rb)+(Rb*Rr)/Rb\nRyb=((Rr*Ry)+(Ry*Rb)+(Rb*Rr))/Rr\nRbr=((Rr*Ry)+(Ry*Rb)+(Rb*Rr))/Ry\n\n#result\nprint \"Rry = \" , round(Rry) , \"ohms\"\nprint \"Ryb = \" , round(Ryb) , \"ohms\"\nprint \"Rbr = \" , round(Rbr) , \"ohms\"\n", "outputs": [{"output_type": "stream", "name": "stdout", "text": "Rry = 4.0 ohms\nRyb = 2.0 ohms\nRbr = 6.0 ohms\n"}], "metadata": {"collapsed": false, "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.8", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}} \ No newline at end of file