summaryrefslogtreecommitdiff
path: root/Material_Science_by_S._L._Kakani_and_A._Kakani/ch16.ipynb
blob: 3588418cff4e3af1b9b55d3408c2672a346d1789 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:56faf14394c3ea1277cb1f85c7bc70faefc404ada370b067ab1e7cf4d70ea9ba"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 16 :\n",
      "Superconductivity and\n",
      "Superconducting Materials"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 16.1 Page No : 551"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\t\t\t\n",
      "import math \n",
      "\n",
      "# Variables\n",
      "T_c = 4.2;\t\t\t#critical temperature of mercury\n",
      "k = 1.4*10**(-23);\t\t\t#\n",
      "e = 1.6*10**(-19);\t\t\t#charge on the electron \n",
      "\n",
      "# Calculation\n",
      "E_g = 3*k*T_c;\t\t\t#energy gap (in Joule)\n",
      "E = E_g/e;\t\t\t#energy gap (in electron volt)\n",
      "h = 6.6*10**(-34)\t\t\t# in J-s\n",
      "c = 3*10**8;\t\t\t#in m/s\n",
      "wavelength = h*c/E_g;\t\t\t#wavelength of a photon (in m)\n",
      "\n",
      "# Results\n",
      "print 'energy gap = %.1e ev'%E\n",
      "print 'wavelength of a photon = %.1e m'%wavelength\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "energy gap = 1.1e-03 ev\n",
        "wavelength of a photon = 1.1e-03 m\n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}