summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_Shyam_Rajeev/Chapter9.ipynb
blob: 847fb2bfca9efcd73cd5fbf09362a8404d482e34 (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
59
60
61
62
63
64
{
 "metadata": {
  "name": "",
  "signature": "sha256:e8e761ea4c766f0a738732d4994726c98969966c5d35a3277656198f5c5939ee"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "9: Dielectrics"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 9.1, Page number 223"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "p = 4.3*10**-8;         #polarization(C/m**2)\n",
      "E = 1000;         #electric field(V/m)\n",
      "epsilon_0 = 8.85*10**-12;      #permittivity of free space(F/m)\n",
      "\n",
      "#Calculation\n",
      "epsilon_r = 1+(p/(epsilon_0*E));         #relative permittivity\n",
      "epsilon_r = math.ceil(epsilon_r*10**2)/10**2;   #rounding off to 2 decimals\n",
      "\n",
      "#Result\n",
      "print \"relative permittivity is\",epsilon_r"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "relative permittivity is 5.86\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}