From c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 7 Apr 2015 15:58:05 +0530 Subject: added books --- Modern_Physics_By_G.Aruldas/Chapter21_2.ipynb | 106 ++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100755 Modern_Physics_By_G.Aruldas/Chapter21_2.ipynb (limited to 'Modern_Physics_By_G.Aruldas/Chapter21_2.ipynb') diff --git a/Modern_Physics_By_G.Aruldas/Chapter21_2.ipynb b/Modern_Physics_By_G.Aruldas/Chapter21_2.ipynb new file mode 100755 index 00000000..4e63e3b7 --- /dev/null +++ b/Modern_Physics_By_G.Aruldas/Chapter21_2.ipynb @@ -0,0 +1,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": {} + } + ] +} \ No newline at end of file -- cgit