diff options
author | nice | 2014-08-27 16:12:51 +0530 |
---|---|---|
committer | nice | 2014-08-27 16:12:51 +0530 |
commit | f873023db6ddb02bba555fb650a4b4c90340f56a (patch) | |
tree | b866cee9b099fe202c72538b5be2a099d0320a24 /Modern_Physics/Chapter15.ipynb | |
parent | 728bf707ac994b2cf05a32d8985d5ea27536cf34 (diff) | |
download | Python-Textbook-Companions-f873023db6ddb02bba555fb650a4b4c90340f56a.tar.gz Python-Textbook-Companions-f873023db6ddb02bba555fb650a4b4c90340f56a.tar.bz2 Python-Textbook-Companions-f873023db6ddb02bba555fb650a4b4c90340f56a.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 |