summaryrefslogtreecommitdiff
path: root/A_Textbook_Of_Engineering_Physics/Chapter6_1.ipynb
blob: 5992fd3972e8b7ad6b278284485c877cd0ab1450 (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:2c7fa5f48e2180e437af8892520159f12789c250e22a9e424719ad83f83b7fff"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter6-Properties of Light"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg124"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "##Example 6.1\n",
      "##Optical path calculation \n",
      "\n",
      "##given values\n",
      "n=1.33;##refractive index of medium\n",
      "x=.75;##geometrical path in micrometre\n",
      " ##calculation\n",
      "y=x*n;##\n",
      "print'%s %.3f %s'%('optical path  (in micrometre) is:',y,'')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "optical path  (in micrometre) is: 0.998 \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg137"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "##Example 6.2\n",
      "##Coherence length calculation \n",
      "\n",
      "##given values\n",
      "l=1*10**-14.;##line width in metre\n",
      "x=10.6*10**-6.;##IR emission wavelength in metre\n",
      " ##calculation\n",
      "y=x**2./l;##\n",
      "print'%s %.1f %s'%('coherence length(in metre) is:',y,'')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "coherence length(in metre) is: 11236.0 \n"
       ]
      }
     ],
     "prompt_number": 2
    }
   ],
   "metadata": {}
  }
 ]
}