summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_Shyam_Singh_and_Rajeev_Singh/Chapter12.ipynb
blob: ccd47d511328b5eaeae347fd3be67404bcf0024b (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
96
97
98
99
100
101
102
103
104
105
{
 "metadata": {
  "name": "",
  "signature": "sha256:85ef8262dd8d094957ce6eda00a743c757c0eaabccf750168045359d519c0a4b"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "12: Superconductivity"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 12.1, Page number 294"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "Tc = 9.2;        #critical temperature of metal(K)\n",
      "Bc = 1.05*10**5;        #magnetic field(amp/m)\n",
      "B0 = 1.5*10**5;         #critical field(amp/m)\n",
      "\n",
      "#Calculation\n",
      "T = math.sqrt((Tc**2)*(1-(Bc/B0)));        #temperature of metal(K)\n",
      "T = math.ceil(T*10**4)/10**4;   #rounding off to 4 decimals\n",
      "\n",
      "#Result\n",
      "print \"temperature of the metal is\",T,\"K\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "temperature of the metal is 5.0391 K\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 12.2, Page number 295"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "Tc1 = 4.185;        #critical temperature of Hg(K)\n",
      "M1 = 199.5;         #isotopic mass(gm)\n",
      "M2 = 203.4;         #changed isotopic mass(gm)\n",
      "\n",
      "#Calculation\n",
      "Tc2 = Tc1*math.sqrt(M1/M2);       #changed critical temperature(K)\n",
      "Tc2 = math.ceil(Tc2*10**3)/10**3;   #rounding off to 3 decimals\n",
      "\n",
      "#Result\n",
      "print \"changed critical temperature of Hg is\",Tc2,\"K\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "changed critical temperature of Hg is 4.145 K\n"
       ]
      }
     ],
     "prompt_number": 6
    }
   ],
   "metadata": {}
  }
 ]
}