summaryrefslogtreecommitdiff
path: root/Principles_of_physics/chapter11.ipynb
blob: 844520a205e5575646f50e1f16a7f76f8f28f3da (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
 "metadata": {
  "name": "",
  "signature": "sha256:f15639ca9ab333759d79a28745654a5d04bddafc03a306e9cfbbbfeaf4928ceb"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 11 Polarization"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 11.1 Page no 169"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#given\n",
      "r1=1.538                                #Refractive index of the crown glass for violet\n",
      "r2=1.52                                 #Refractive index of the crown glass for red\n",
      "\n",
      "#Calculations\n",
      "import math\n",
      "ip1=math.atan(r1)*180/3.14\n",
      "ip2=math.atan(r2)*180/3.14\n",
      "\n",
      "#Output\n",
      "print\"Polarizing angles for violet and red are \",round(ip1,3),\"degrees and\",round(ip2,3),\"degrees\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Polarizing angles for violet and red are  56.997 degrees and 56.688 degrees\n"
       ]
      }
     ],
     "prompt_number": 15
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 11.2 Page no 169"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#given\n",
      "I=0.09\n",
      "I0=1\n",
      "\n",
      "#calculation\n",
      "import math\n",
      "X=math.sqrt(I/I0)\n",
      "x=math.acos(X)*180/3.14\n",
      "print\"angle is \",round(x,2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "angle is  72.58\n"
       ]
      }
     ],
     "prompt_number": 22
    }
   ],
   "metadata": {}
  }
 ]
}