diff options
author | nice | 2014-08-27 16:12:51 +0530 |
---|---|---|
committer | nice | 2014-08-27 16:12:51 +0530 |
commit | 238d7e632aecde748a97437c2b5774e136a3b4da (patch) | |
tree | a05d96f81cf72dc03ceec32af934961cf4ccf7dd /Modern_Physics/Chapter15.ipynb | |
parent | 7e82f054d405211e1e8760524da8ad7c9fd75286 (diff) | |
download | Python-Textbook-Companions-238d7e632aecde748a97437c2b5774e136a3b4da.tar.gz Python-Textbook-Companions-238d7e632aecde748a97437c2b5774e136a3b4da.tar.bz2 Python-Textbook-Companions-238d7e632aecde748a97437c2b5774e136a3b4da.zip |
adding book
Diffstat (limited to 'Modern_Physics/Chapter15.ipynb')
-rwxr-xr-x | Modern_Physics/Chapter15.ipynb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Modern_Physics/Chapter15.ipynb b/Modern_Physics/Chapter15.ipynb new file mode 100755 index 00000000..d83185b4 --- /dev/null +++ b/Modern_Physics/Chapter15.ipynb @@ -0,0 +1,63 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:fbb8ae4f61a2f656bdccdaea83dd7c5e0f4029b53a892411eec2330f543018a0" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 15: Elementary Particles" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 15.5, page no. 570" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\n", + "\n", + "#variable declaration\n", + "\n", + "mp = 938.3 #mass of proton (MeV/c^2)\n", + "mpi = 135 #mass of pion (MeV/c^2)\n", + "\n", + "#Calculation\n", + "\n", + "Kth = ((2*mp + mpi)**2 - (2*mp)**2)/(2*mp)\n", + "\n", + "#result\n", + "\n", + "print \"The kinetic energy of protons\",round(Kth),\"MeV.\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The kinetic energy of protons 280.0 MeV.\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |