From 2ec8fc25ee45e790f91f2dc0fb342712cc3de4b7 Mon Sep 17 00:00:00 2001 From: Trupti Kini Date: Sun, 17 Jan 2016 23:30:12 +0600 Subject: Added(A)/Deleted(D) following books A Electrical_Network_by_R._Singh/Chapter10_1.ipynb A Electrical_Network_by_R._Singh/Chapter11_1.ipynb A Electrical_Network_by_R._Singh/Chapter12_1.ipynb A Electrical_Network_by_R._Singh/Chapter1_1.ipynb A Electrical_Network_by_R._Singh/Chapter2_1.ipynb A Electrical_Network_by_R._Singh/Chapter3_1.ipynb A Electrical_Network_by_R._Singh/Chapter4_1.ipynb A Electrical_Network_by_R._Singh/Chapter6_1.ipynb A Electrical_Network_by_R._Singh/Chapter7_1.ipynb A Electrical_Network_by_R._Singh/Chapter8_1.ipynb A Electrical_Network_by_R._Singh/screenshots/chapter4_1.png A Electrical_Network_by_R._Singh/screenshots/chapter6_1.png A Electrical_Network_by_R._Singh/screenshots/chapter7_1.png A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter10_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter11_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter12_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter13_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter14_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter15_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter16_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter17_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter1_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter2_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter3_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter4_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter5_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter6_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter7_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter8_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/Chapter9_1.ipynb A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/screenshots/chapter3.png A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/screenshots/chapter4.png A Electronic_Circuit_Analysis_And_Design_by_D._A._Neamen/screenshots/chapter5.png A Machine_Design_by_T._H._Wentzell,_P._E/Chapter1.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter10.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter11.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter12.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter13.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter14.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter15.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter16.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter17.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter18.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter19.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter2.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter20.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter3.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter4.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter5.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter6.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter7.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/Chapter8.ipynb A Machine_Design_by_T._H._Wentzell,_P._E/screenshots/chapter1.png A Machine_Design_by_T._H._Wentzell,_P._E/screenshots/chapter2.png A Machine_Design_by_T._H._Wentzell,_P._E/screenshots/chapter3.png --- Electrical_Network_by_R._Singh/Chapter8_1.ipynb | 124 ++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 Electrical_Network_by_R._Singh/Chapter8_1.ipynb (limited to 'Electrical_Network_by_R._Singh/Chapter8_1.ipynb') diff --git a/Electrical_Network_by_R._Singh/Chapter8_1.ipynb b/Electrical_Network_by_R._Singh/Chapter8_1.ipynb new file mode 100644 index 00000000..f72a22fd --- /dev/null +++ b/Electrical_Network_by_R._Singh/Chapter8_1.ipynb @@ -0,0 +1,124 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:443594b95e4699aa829647ef6201862e165405ad0d20cad94e2fc280e9a33ca5" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter8-Transient Analysis" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Ex13-pg8.16" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "##Transient analysis\n", + "##pg no - 8.17\n", + "##example no - 8.13\n", + "import math\n", + "import numpy\n", + "a=((10.*30.)/(10.+30.));\n", + "d=5./a;\n", + "b=0.;\n", + "c=5.*(20./30.);\n", + "print\"%s %.2f %s\"%(\"iL(0-) = \",d,\" A\");\n", + "print\"%s %.2f %s\"%(\"\\nvb(0-) = \", b,\"\");\n", + "print\"%s %.2f %s\"%(\"\\nva(0-) = \",c,\" V\");\n", + "print(\"Applying Kcl equations at t=0+\");\n", + "print(\"((va(0+)-5)/10)+(va(0+)/10)+(va(0+)-vb(0+))/20 = 0\"); ##equation 1\n", + "print(\"((vb(0+)-va(0+))/20)+((vb(0+)-5)/10)+(2/3) = 0\"); ##equation 2\n", + "##solving 1 and 2\n", + "M=numpy.matrix([[0.25, -0.05],[-0.05, 0.15]]);\n", + "N=numpy.matrix([[0.5], [-0.167]]);\n", + "\n", + "X=numpy.dot(numpy.linalg.inv(M),N);\n", + "print[X]\n", + "print(\"va(0+)= 1.9 A\");\n", + "print(\"vb(0+)= -0.477 A\");\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "iL(0-) = 0.67 A\n", + "\n", + "vb(0-) = 0.00 \n", + "\n", + "va(0-) = 3.33 V\n", + "Applying Kcl equations at t=0+\n", + "((va(0+)-5)/10)+(va(0+)/10)+(va(0+)-vb(0+))/20 = 0\n", + "((vb(0+)-va(0+))/20)+((vb(0+)-5)/10)+(2/3) = 0\n", + "[matrix([[ 1.90428571],\n", + " [-0.47857143]])]\n", + "va(0+)= 1.9 A\n", + "vb(0+)= -0.477 A\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Ex14-pg8.17" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "##Transient analysis\n", + "##pg no - 8.17\n", + "##example no - 8.13\n", + "print(\"va(0+) = 5V\");\n", + "print(\"vb(0+) = 5V\");\n", + "print(\"vb(0+) = 5V\");\n", + "print(\"Writing KCL Equation at t=0+\");\n", + "print(\"0.25*va(0+) = 0.75\");\n", + "x=(0.75)/(0.25);\n", + "print\"%s %.2f %s\"%(\"va(0+) = \",x,\" V\");" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "va(0+) = 5V\n", + "vb(0+) = 5V\n", + "vb(0+) = 5V\n", + "Writing KCL Equation at t=0+\n", + "0.25*va(0+) = 0.75\n", + "va(0+) = 3.00 V\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file -- cgit