summaryrefslogtreecommitdiff
path: root/Modern_Physics/Chapter15_2.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/Chapter15_2.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/Chapter15_2.ipynb')
-rwxr-xr-xModern_Physics/Chapter15_2.ipynb62
1 files changed, 62 insertions, 0 deletions
diff --git a/Modern_Physics/Chapter15_2.ipynb b/Modern_Physics/Chapter15_2.ipynb
new file mode 100755
index 00000000..90c037a5
--- /dev/null
+++ b/Modern_Physics/Chapter15_2.ipynb
@@ -0,0 +1,62 @@
+{
+ "metadata": {
+ "name": "MP-15"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": "The General Theory of Relativity"
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 15.1 Page 491"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "#initiation of variable\nw=121.5; #lambeda\nG=6.67*10**-11; #Various given values and constants\nM= 1.99*10**30; \nR= 6.96*10**8;\nc=3*10**8;\n\n#calculation\nk= G*M/(R*c**2); #(delLambeda)/(lambeda)\ndelw=k*w; #del(lambeda)\n\n#result\nprint \"The change in wavelength due to gravitational shift in pm is\",round(delw*10**3,3);\n\n#part3\nk=5.5*10**-5;#due to thermal Doppler broadening effect\ndelw=k*w;\n\n#result\nprint \"The change in wavelength due to thermal Doppler broadening effect in pm is\",round(delw*10**3,3);",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": " The change in wavelength due to gravitational shift in pm is 0.257\nThe change in wavelength due to thermal Doppler broadening effect in pm is 6.683\n"
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 15.2 Page 501"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "#initiation of variable\nmp=938.280; #mass of various particles\nme=0.511;\nm2h=1875.628;\n\n#calculation\nmic2=2*mp; #mass energy on L.H.S\nmfc2=m2h+me; #mass energy on R.H.S\nQ=mic2-mfc2; #Q value of reation\npc=Q;\nmc2=1875.628;\nK=(pc**2)/(2*mc2); #kinetic threshold energy\nEmax=Q-K; #maximum energy \n\n#result\nprint \"The maximum neutrino energy in MeV is\",round(Emax,3);",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "The maximum neutrino energy in MeV is 0.421\n"
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file