diff options
author | Jovina Dsouza | 2014-07-22 00:00:04 +0530 |
---|---|---|
committer | Jovina Dsouza | 2014-07-22 00:00:04 +0530 |
commit | a4206084fd8c2bd696ea4ae4012aa83534979456 (patch) | |
tree | 3e3cbc2baa611ad849f07dda3c93febad8dcd28d /Electrical_Circuit_Theory_And_Technology/chapter_08-checkpoint_3.ipynb | |
parent | 6afb92451dd82bc61f5042e0b8df5eb51ccde9bb (diff) | |
download | Python-Textbook-Companions-a4206084fd8c2bd696ea4ae4012aa83534979456.tar.gz Python-Textbook-Companions-a4206084fd8c2bd696ea4ae4012aa83534979456.tar.bz2 Python-Textbook-Companions-a4206084fd8c2bd696ea4ae4012aa83534979456.zip |
adding book
Diffstat (limited to 'Electrical_Circuit_Theory_And_Technology/chapter_08-checkpoint_3.ipynb')
-rwxr-xr-x | Electrical_Circuit_Theory_And_Technology/chapter_08-checkpoint_3.ipynb | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/Electrical_Circuit_Theory_And_Technology/chapter_08-checkpoint_3.ipynb b/Electrical_Circuit_Theory_And_Technology/chapter_08-checkpoint_3.ipynb new file mode 100755 index 00000000..876584cc --- /dev/null +++ b/Electrical_Circuit_Theory_And_Technology/chapter_08-checkpoint_3.ipynb @@ -0,0 +1,271 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:978781926339475333a3790c0d2afbe43a8f52e30a81f93b137533487aaa64dd"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "<h1>Chapter 8: Electromagnetism</h1>"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "<h3>Example 2, page no. 93</h3>"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "from __future__ import division\n",
+ "import math\n",
+ "#initializing the variables:\n",
+ "B = 0.9;# in tesla\n",
+ "I = 20;# in Amperes\n",
+ "l = 0.30;# in m\n",
+ "alpha = 30;# in degree\n",
+ "u0 = 4*math.pi*1E-7;\n",
+ "\n",
+ "#calculation:\n",
+ "F1 = B*I*l\n",
+ "F2 = B*I*l*math.sin(alpha*math.pi/180)\n",
+ "\n",
+ "#Results\n",
+ "print \"\\n\\nResult\\n\\n\"\n",
+ "print \"\\n (a)Force when the conductor is at right angles to the field = \",F1,\" N\\n\"\n",
+ "print \"\\n (b)Force when the conductor is at 30\u00b0 angle to the field = \",F2,\" N\\n\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ "\n",
+ "Result\n",
+ "\n",
+ "\n",
+ "\n",
+ " (a)Force when the conductor is at right angles to the field = 5.4 N\n",
+ "\n",
+ "\n",
+ " (b)Force when the conductor is at 30\u00c2\u00b0 angle to the field = 2.7 N"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "<h3>Example 3, page no. 94</h3>"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "from __future__ import division\n",
+ "import math\n",
+ "#initializing the variables:\n",
+ "F = 1.92;# in newton\n",
+ "B = 1.2;# in tesla\n",
+ "l = 0.40;# in m\n",
+ "u0 = 4*math.pi*1E-7;\n",
+ "\n",
+ "#calculation:\n",
+ "I = F/(B*l)\n",
+ "\n",
+ "#Results\n",
+ "print \"\\n\\nResult\\n\\n\"\n",
+ "print \"\\n (a)Current I = \",I,\" Amperes(A)\\n\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ "\n",
+ "Result\n",
+ "\n",
+ "\n",
+ "\n",
+ " (a)Current I = 4.0 Amperes(A)"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "<h3>Example 4, page no. 95</h3>"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "from __future__ import division\n",
+ "import math\n",
+ "#initializing the variables:\n",
+ "r = 0.06;# in m\n",
+ "I = 10;# in Amperes\n",
+ "l = 0.35;# in m\n",
+ "Phi = 0.5E-3;# in Wb\n",
+ "u0 = 4*math.pi*1E-7;\n",
+ "\n",
+ "#calculation:\n",
+ "A = math.pi*r*r\n",
+ "B = Phi/A\n",
+ "F = B*I*l\n",
+ "\n",
+ "#Results\n",
+ "print \"\\n\\nResult\\n\\n\"\n",
+ "print \"\\n (a)Force F = \",round(F,2),\" N\\n\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ "\n",
+ "Result\n",
+ "\n",
+ "\n",
+ "\n",
+ " (a)Force F = 0.15 N"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "<h3>Example 6, page no. 95</h3>"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "from __future__ import division\n",
+ "import math\n",
+ "#initializing the variables:\n",
+ "N1 = 1;# for a single-turn coil\n",
+ "N2 = 300;# no. of turns\n",
+ "b = 0.024;# in m\n",
+ "B = 0.8;# in Tesla\n",
+ "I = 0.05;# in Amperes\n",
+ "l = 0.030;# in m\n",
+ "u0 = 4*math.pi*1E-7;\n",
+ "\n",
+ "#calculation:\n",
+ "#For a single-turn coil,\n",
+ "F1 = N1*B*I*l\n",
+ "#for a coil wound with 300 turns.\n",
+ "F2 = N2*B*I*l\n",
+ "\n",
+ "#Results\n",
+ "print \"\\n\\nResult\\n\\n\"\n",
+ "print \"\\n (a)For a single-turn coil, force on each coil side = \",F1,\" N\\n\"\n",
+ "print \"\\n (b)For a 300-turn coil, force on each coil side = \",F2,\" N\\n\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ "\n",
+ "Result\n",
+ "\n",
+ "\n",
+ "\n",
+ " (a)For a single-turn coil, force on each coil side = 0.0012 N\n",
+ "\n",
+ "\n",
+ " (b)For a 300-turn coil, force on each coil side = 0.36 N"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "<h3>Example 7, page no. 98</h3>"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "from __future__ import division\n",
+ "import math\n",
+ "#initializing the variables:\n",
+ "Q = 1.6E-19;# in Coulomb\n",
+ "v = 3E7;# in m/s\n",
+ "B = 18.5E-6;# in Tesla\n",
+ "u0 = 4*math.pi*1E-7;\n",
+ "\n",
+ "#calculation:\n",
+ "F = Q*v*B\n",
+ "\n",
+ "#Results\n",
+ "print \"\\n\\nResult\\n\\n\"\n",
+ "print \"\\n Force exerted on the electron in the field. = \",(F/1E-17),\"E-17 N\\n\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ "\n",
+ "Result\n",
+ "\n",
+ "\n",
+ "\n",
+ " Force exerted on the electron in the field. = 8.88 E-17 N"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |