diff options
author | hardythe1 | 2015-07-03 12:23:43 +0530 |
---|---|---|
committer | hardythe1 | 2015-07-03 12:23:43 +0530 |
commit | 9d260e6fae7328d816a514130b691fbd0e9ef81d (patch) | |
tree | 9e6035702fca0f6f8c5d161de477985cacad7672 /Engineering_Physics_by_Shyam_Rajeev/Chapter7.ipynb | |
parent | afcd9e5397e3e1bde0392811d0482d76aac391dc (diff) | |
download | Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.gz Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.bz2 Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.zip |
add/remove books
Diffstat (limited to 'Engineering_Physics_by_Shyam_Rajeev/Chapter7.ipynb')
-rwxr-xr-x | Engineering_Physics_by_Shyam_Rajeev/Chapter7.ipynb | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/Engineering_Physics_by_Shyam_Rajeev/Chapter7.ipynb b/Engineering_Physics_by_Shyam_Rajeev/Chapter7.ipynb new file mode 100755 index 00000000..e302d789 --- /dev/null +++ b/Engineering_Physics_by_Shyam_Rajeev/Chapter7.ipynb @@ -0,0 +1,158 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b66ce97b080f93d72d0e47d146c1f1e700139df6e3e90b6b5ae82aab3595beed"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "7: Wave and Quantum Mechanics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.1, Page number 192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "h = 6.625*10**-34; #planck's constant(J sec)\n",
+ "m1 = 6*10**24; #mass of earth(kg)\n",
+ "v1 = 3*10**4; #orbital speed(m/sec)\n",
+ "m2 = 10**-30; #mass of electron(kg)\n",
+ "v2 = 10**6; #velocity of electron(m/sec)\n",
+ "\n",
+ "#Calculation\n",
+ "lamdaE = h/(m1*v1); #wavelength of a wave(m)\n",
+ "lamdae = h/(m2*v2); #wavelength of electron(m)\n",
+ "\n",
+ "#Result\n",
+ "print \"wavelength of a wave is\",round(lamdaE/1e-63,2),\"*10**-63 m\"\n",
+ "print \"wavelength of electron is\",lamdae,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "wavelength of a wave is 3.68 *10**-63 m\n",
+ "wavelength of electron is 6.625e-10 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.2, Page number 193"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "m = 1; #mass of particle(g)\n",
+ "v = 100; #velocity of particle(m/sec)\n",
+ "h = 6.625*10**-34; #planck's constant(J sec)\n",
+ "\n",
+ "#Calculation\n",
+ "m = m*10**-3; #mass of particle(kg)\n",
+ "lamda = h/(m*v); #wavelength of particle(m)\n",
+ "\n",
+ "#Result\n",
+ "print \"wavelength of particle is\",lamda,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "wavelength of particle is 6.625e-33 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 7.3, Page number 193"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "V = 200; #potential difference(V)\n",
+ "\n",
+ "#Calculation\n",
+ "lamda = 12.28/math.sqrt(V); #de Broglie wavelength(angstrom)\n",
+ "lamda = math.ceil(lamda*10**4)/10**4; #rounding off to 4 decimals\n",
+ "\n",
+ "#Result\n",
+ "print \"de Broglie wavelength of electron is\",lamda,\"angstrom\"\n",
+ "print \"answer given in the book varies due to rounding off errors\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "de Broglie wavelength of electron is 0.8684 angstrom\n",
+ "answer given in the book varies due to rounding off errors\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |