summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_D._K._Bhattacharya_&_A._Bhaskaran/Chapter9.ipynb
blob: 3a5ba4c15acb1f606e802dacde2da8e9cc809054 (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": "Chapter9"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": "Superconducting Materials"
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Example number 9.1, Page number 255"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "#To calculate the critical magnetic field intensity\n\n#importing modules\nimport math\n\n#Variable declaration\nH0 = 6.5*10**4;         #magnetic field intensity(A/m)\nT = 4.2;                #temperature(K)\nTc = 7.18;              #critical temperature(K)\n\n#Calculation\nHc = H0*(1-((T**2)/(Tc**2)));        #critical magnetic field intensity(A/m)\nHc = Hc*10**-4;\nHc=math.ceil(Hc*10**3)/10**3;   #rounding off to 3 decimals\n\n#Result\nprint \"critical magnetic field intensity is\",Hc,\"*10**4 A/m\"",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "critical magnetic field intensity is 4.276 *10**4 A/m\n"
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Example number 9.2, Page number 255"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "#To calculate the isotopic mass\n\n#importing modules\nimport math\n\n#Variable declaration\nTc1 = 4.185;                #critical temperature for M1(K)\nTc2 = 4.133;                #critical temperature for M2(K)\nM1 = 199.5;                 #isotopic mass\nalpha = 0.5;\n\n#Calculation\nA = math.pow(M1,alpha)*Tc1/Tc2;\nM2 = math.pow(A,1/alpha);       #isotopic mass\nM2=math.ceil(M2*10**3)/10**3;   #rounding off to 3 decimals\n\n#Result\nprint \"isotopic mass is\",M2\nprint \"answer given in the book is wrong\"",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "isotopic mass is 204.552\nanswer given in the book is wrong\n"
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "",
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}