summaryrefslogtreecommitdiff
path: root/Electrical_Engineering_Fundamentals_by__Del_Toro_Vincent_/CHAPTER01_2.ipynb
blob: a9ad2e34f1269cc07f1ada96c39285abe52939fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
 "metadata": {
  "name": "",
  "signature": "sha256:bc8c72805b6850366f45568794dc2a4ab6f5d21f61489519f4f7ca8e4b8b6702"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "CHAPTER01 : THE FUNDAMENTAL LAWS OF ELECTRICAL ENGINEERING"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example E01 : Pg 07"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "E0 = 1./(36.*math.pi*10.**9.); # permitivity in free space \n",
      "k = 4.*math.pi*E0 ; \n",
      "q1 = 1.; #  charge on the first particle in coulombs \n",
      "q2 = 1.; #  charge on the second particle in coulombs \n",
      "d = 1.; #  distance between the particles in meter\n",
      "F = (q1*q2)/(k*d**2.); # force between the two particles in newtons \n",
      "\n",
      "print '%s %.e' %(\"force in free space between the two particles is in Newtons is:\",F)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "force in free space between the two particles is in Newtons is: 9e+09\n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}