summaryrefslogtreecommitdiff
path: root/sample_notebooks/NivethaChezhian/Sample_Notebook.ipynb
blob: d14818c19e8c795f9cae1bf30dd7767edd6aeeff (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:25987a4a9da0545d9c4c2518a85172c533cb91c125ae9df53acb145c94c690e6"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 2:Energy levels and energy bands"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Sec.2-3,Pg_no:40"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#To calculate the number of photons per second\n",
      "\n",
      "#variable declaration\n",
      "E=(12400.0/2537.0)         #Energy per photon\n",
      "p=0.05/(1.60*(10**(-19)))  #power radiated\n",
      "\n",
      "#Calculation\n",
      "n=p/E                      #number of photons per second\n",
      "\n",
      "#Result\n",
      "print \"The number of photons per second is\",round(n,2),\"photons/sec\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The number of photons per second is 6.39364919355e+16 photons/sec\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}