diff options
author | hardythe1 | 2014-08-13 11:41:01 +0530 |
---|---|---|
committer | hardythe1 | 2014-08-13 11:41:01 +0530 |
commit | 7e82f054d405211e1e8760524da8ad7c9fd75286 (patch) | |
tree | 1790cf5a7460b48582da6c35417a85f3a1389a81 /Chemistry/Chapter_23.ipynb | |
parent | 98bff1c301dd3b8b14983037a8a483e3eae1796d (diff) | |
download | Python-Textbook-Companions-7e82f054d405211e1e8760524da8ad7c9fd75286.tar.gz Python-Textbook-Companions-7e82f054d405211e1e8760524da8ad7c9fd75286.tar.bz2 Python-Textbook-Companions-7e82f054d405211e1e8760524da8ad7c9fd75286.zip |
adding book
Diffstat (limited to 'Chemistry/Chapter_23.ipynb')
-rwxr-xr-x | Chemistry/Chapter_23.ipynb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Chemistry/Chapter_23.ipynb b/Chemistry/Chapter_23.ipynb new file mode 100755 index 00000000..c36a0d3c --- /dev/null +++ b/Chemistry/Chapter_23.ipynb @@ -0,0 +1,66 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 23:Nuclear Chemistry"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example no:23.2,Page no:994"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Variable declaration\n",
+ "NA=6.022*10**23 #avogadro number\n",
+ "c=3*10**8 #speed of light, m/s\n",
+ "p=1.007825 #mass of proton, amu\n",
+ "n=1.008665 #mass of neutron, amu\n",
+ "mI=126.9004 #atomic mass of I, amu\n",
+ "\n",
+ "#Calculation\n",
+ "pI=53*p+74*n #estimated mass of I, amu\n",
+ "deltam=mI-pI #mass defect, amu\n",
+ "deltaE=-deltam*c**2 #energy released, amu m**2/s**2\n",
+ "deltaE=deltaE/(NA*1000) #energy released in J\n",
+ "print\"Nuclear binding energy is %.2e\"%deltaE,\"J\"\n",
+ "deltaE=deltaE/127 #binding energy per nucleon, J\n",
+ "\n",
+ "#Result\n",
+ "print\"The nuclear binding energy per nucleon is :%.2e\"%deltaE,\"J/nucleon\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Nuclear binding energy is 1.73e-10 J\n",
+ "The nuclear binding energy per nucleon is :1.36e-12 J/nucleon\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |