summaryrefslogtreecommitdiff
path: root/Chemistry/Chapter_23.ipynb
diff options
context:
space:
mode:
authorhardythe12014-08-13 11:41:01 +0530
committerhardythe12014-08-13 11:41:01 +0530
commit728bf707ac994b2cf05a32d8985d5ea27536cf34 (patch)
tree5530b1509900ca8d6d21384e33036f50734de927 /Chemistry/Chapter_23.ipynb
parentf3e94078a83634b4353ab0cd2de3b0e204a48ac7 (diff)
downloadPython-Textbook-Companions-728bf707ac994b2cf05a32d8985d5ea27536cf34.tar.gz
Python-Textbook-Companions-728bf707ac994b2cf05a32d8985d5ea27536cf34.tar.bz2
Python-Textbook-Companions-728bf707ac994b2cf05a32d8985d5ea27536cf34.zip
adding book
Diffstat (limited to 'Chemistry/Chapter_23.ipynb')
-rwxr-xr-xChemistry/Chapter_23.ipynb66
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