summaryrefslogtreecommitdiff
path: root/Modern_Physics_By_G.Aruldas/Chapter20_1.ipynb
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commitc7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131 (patch)
tree725a7d43dc1687edf95bc36d39bebc3000f1de8f /Modern_Physics_By_G.Aruldas/Chapter20_1.ipynb
parent62aa228e2519ac7b7f1aef53001f2f2e988a6eb1 (diff)
downloadPython-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.gz
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.bz2
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.zip
added books
Diffstat (limited to 'Modern_Physics_By_G.Aruldas/Chapter20_1.ipynb')
-rwxr-xr-xModern_Physics_By_G.Aruldas/Chapter20_1.ipynb119
1 files changed, 119 insertions, 0 deletions
diff --git a/Modern_Physics_By_G.Aruldas/Chapter20_1.ipynb b/Modern_Physics_By_G.Aruldas/Chapter20_1.ipynb
new file mode 100755
index 00000000..6f977e4e
--- /dev/null
+++ b/Modern_Physics_By_G.Aruldas/Chapter20_1.ipynb
@@ -0,0 +1,119 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:eeb9c551735bd0ab45890fc906baf874437271bf852063fccc60d822b2aaeaef"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "20: Nuclear radiation detectors and particle accelerators"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 20.1, Page number 390"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "h=6.626*10**-34; #planck's constant(Js)\n",
+ "e=1.6*10**-19; #conversion factor from J to eV\n",
+ "m=1.67*10**-27; #mass of proton(kg)\n",
+ "E=30*10**6; #energy(eV)\n",
+ "r=1.2*10**-15; #radius of nucleon(m)\n",
+ "\n",
+ "#Calculation\n",
+ "lamdaP=h/math.sqrt(2*m*E*e); #wavelength of proton(m)\n",
+ "lamdaAlpha=h/math.sqrt(2*4*m*E*e); #wavelength of alpha particle(m)\n",
+ "a=2*r; #size of nucleon(m)\n",
+ "\n",
+ "#Result\n",
+ "print \"wavelength of proton is\",round(lamdaP*10**15,1),\"*10**-15 m\"\n",
+ "print \"wavelength of alpha particle is\",round(lamdaAlpha*10**15,1),\"*10**-15 m\"\n",
+ "print \"size of nucleon is\",a,\"m\"\n",
+ "print \"alpha particle is better\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "wavelength of proton is 5.2 *10**-15 m\n",
+ "wavelength of alpha particle is 2.6 *10**-15 m\n",
+ "size of nucleon is 2.4e-15 m\n",
+ "alpha particle is better\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 20.2, Page number 391"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "q=1.6*10**-19; #conversion factor from J to eV\n",
+ "B=2; #magnetic field(T)\n",
+ "m=1.67*10**-27; #mass of proton(kg)\n",
+ "R=0.25; #radius(m)\n",
+ "a=6.24*10**12; #conversion factor from J to MeV\n",
+ "\n",
+ "#Calculation\n",
+ "f=q*B/(2*math.pi*m); #frequency needed(MHz)\n",
+ "KE=q**2*B**2*R**2/(2*m); #kinetic energy(J)\n",
+ "KE=KE*a; #kinetic energy(MeV)\n",
+ "\n",
+ "#Result\n",
+ "print \"frequency needed is\",round(f*10**-6,1),\"MHz\"\n",
+ "print \"kinetic energy is\",round(KE),\"MeV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "frequency needed is 30.5 MHz\n",
+ "kinetic energy is 12.0 MeV\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file