summaryrefslogtreecommitdiff
path: root/Modern_Physics_By_G.Aruldas/Chapter21_3.ipynb
blob: 4e63e3b7c22d7afdaef9dfa1a5146844f29d960e (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
106
{
 "metadata": {
  "name": "",
  "signature": "sha256:42eb4bd0fae1331d52fd855bad43219acea712dc31c5270f1f64fa698ba366ad"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "21: Elementary particles"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 21.1, Page number 399"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "mpi=140;     #mass of pi-meson\n",
      "mp=938.3;    #mass of proton\n",
      "mk=498;   #mass of k\n",
      "m=1116;  \n",
      "\n",
      "#Calculation\n",
      "Q=mpi+mp-mk-m;    #Q-value(MeV)\n",
      "\n",
      "#Result\n",
      "print \"Q-value is\",round(Q),\"MeV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Q-value is -536.0 MeV\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 21.2, Page number 399"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "mpc2=938.3;    #energy of proton(MeV)\n",
      "Epic2=139.6;   #energy of pi-meson(MeV)\n",
      "mnc2=939.6;    #energy of neutron(MeV)\n",
      "KE=0.6;    #kinetic energy of neutron(MeV)\n",
      "\n",
      "#Calculation\n",
      "Epi=mpc2+Epic2-mnc2-KE;    #energy conservation(MeV)\n",
      "mpic2=math.sqrt((Epi**2)-((mnc2+KE)**2)+(mnc2**2));   #pi0 mass(MeV)\n",
      "\n",
      "#Result\n",
      "print \"pi0 mass is\",round(mpic2,1),\"MeV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "pi0 mass is 133.5 MeV\n"
       ]
      }
     ],
     "prompt_number": 5
    }
   ],
   "metadata": {}
  }
 ]
}