diff options
author | hardythe1 | 2015-01-28 14:31:21 +0530 |
---|---|---|
committer | hardythe1 | 2015-01-28 14:31:21 +0530 |
commit | 53f72e6790ff23b43c8f6a0b69d6386940671429 (patch) | |
tree | 7745af6dbf2f5b2972b23f9f5a7a19c695a27321 /Elements_of_Physical_Chemistry/Chapter13.ipynb | |
parent | 7b78be04fe05bf240417e22f74b3fc22e7a77d19 (diff) | |
download | Python-Textbook-Companions-53f72e6790ff23b43c8f6a0b69d6386940671429.tar.gz Python-Textbook-Companions-53f72e6790ff23b43c8f6a0b69d6386940671429.tar.bz2 Python-Textbook-Companions-53f72e6790ff23b43c8f6a0b69d6386940671429.zip |
added books
Diffstat (limited to 'Elements_of_Physical_Chemistry/Chapter13.ipynb')
-rwxr-xr-x | Elements_of_Physical_Chemistry/Chapter13.ipynb | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/Elements_of_Physical_Chemistry/Chapter13.ipynb b/Elements_of_Physical_Chemistry/Chapter13.ipynb new file mode 100755 index 00000000..4a426e50 --- /dev/null +++ b/Elements_of_Physical_Chemistry/Chapter13.ipynb @@ -0,0 +1,97 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 13 - Atomic structure"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example I2 - Pg 302"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the probability of finding the electron and the chance that the electron would be found\n",
+ "#Initialization of variables\n",
+ "import math\n",
+ "dv=1 #pm^3\n",
+ "a0=52.9 #pm\n",
+ "#calculations\n",
+ "Probability=dv/(math.pi*a0*a0*a0)\n",
+ "#results\n",
+ "print '%s %.1e' %(\"probability of finding electron = \",Probability)\n",
+ "print '%s %d %s' %(\"\\n Chance that electron would be found is one in\",1./Probability,\"times\")\n",
+ "#The answer is a bit different due to rounding off error in textbook"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "probability of finding electron = 2.2e-06\n",
+ "\n",
+ " Chance that electron would be found is one in 465068 times\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example I3 - Pg 304"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the probability of finding the electron\n",
+ "#Initialization of variables\n",
+ "import math\n",
+ "dr=1 #pm\n",
+ "r=52.9 #pm\n",
+ "#calculations\n",
+ "Probability=4*math.pow(math.e,(-2)) *dr/r\n",
+ "#results\n",
+ "print '%s %.1f' %(\"About 1 inspection in \",1./Probability)\n",
+ "#The answer is a bit different due to rounding off error in textbook"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "About 1 inspection in 97.7\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |