diff options
author | Jovina Dsouza | 2014-07-07 16:34:28 +0530 |
---|---|---|
committer | Jovina Dsouza | 2014-07-07 16:34:28 +0530 |
commit | fffcc90da91b66ee607066d410b57f34024bd1de (patch) | |
tree | 7b8011d61013305e0bf7794a275706abd1fdb0d3 /Concepts_Of_Modern_Physics/Chapter_6.ipynb | |
parent | 299711403e92ffa94a643fbd960c6f879639302c (diff) | |
download | Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.gz Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.bz2 Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.zip |
adding book
Diffstat (limited to 'Concepts_Of_Modern_Physics/Chapter_6.ipynb')
-rwxr-xr-x | Concepts_Of_Modern_Physics/Chapter_6.ipynb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Concepts_Of_Modern_Physics/Chapter_6.ipynb b/Concepts_Of_Modern_Physics/Chapter_6.ipynb new file mode 100755 index 00000000..3e924e61 --- /dev/null +++ b/Concepts_Of_Modern_Physics/Chapter_6.ipynb @@ -0,0 +1,62 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chaptet 6:Quantum theory of the Hydrogen Atom"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.4,Page no:226"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Variable declaration\n",
+ "B= 0.300 #magnetic field, T\n",
+ "Lambda= 450 #wavelength, nm\n",
+ "Lambda= Lambda*(10**(-9)) #converting to m\n",
+ "e= 1.6*(10**(-19)) #charge of an electron, C\n",
+ "Me= 9.1*(10**(-31)) #mass of electron, kg\n",
+ "c= 3 *(10**8) #speed of light, m/s\n",
+ "import math\n",
+ "#Calculation\n",
+ "dLambda= e*B*(Lambda**2)/(4*(math.pi)*Me*c) #m\n",
+ "dLambda= dLambda*(10**9) #converting to nm\n",
+ "\n",
+ "#Result\n",
+ "print\"The separation between Zeeman components is: \",round(dLambda,5),\"nm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The separation between Zeeman components is: 0.00283 nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |