summaryrefslogtreecommitdiff
path: root/Chemistry_by_Raymond_Chang/Chapter_17.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:53:46 +0530
committerkinitrupti2017-05-12 18:53:46 +0530
commit6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch)
tree22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /Chemistry_by_Raymond_Chang/Chapter_17.ipynb
parentd36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff)
downloadPython-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip
Removed duplicates
Diffstat (limited to 'Chemistry_by_Raymond_Chang/Chapter_17.ipynb')
-rwxr-xr-xChemistry_by_Raymond_Chang/Chapter_17.ipynb92
1 files changed, 92 insertions, 0 deletions
diff --git a/Chemistry_by_Raymond_Chang/Chapter_17.ipynb b/Chemistry_by_Raymond_Chang/Chapter_17.ipynb
new file mode 100755
index 00000000..8debeae7
--- /dev/null
+++ b/Chemistry_by_Raymond_Chang/Chapter_17.ipynb
@@ -0,0 +1,92 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 17:Chemistry in the Atmosphere"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example no:17.1,Page no:774"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Variable declaration\n",
+ "E=498.7*10**3/(6.022*10**23) #energy in J/molecule\n",
+ "h=6.63*10**-34 #plancks constant, J s\n",
+ "\n",
+ "#Calculation\n",
+ "v=E/h #frequency of the photon, s**-1\n",
+ "lamda=3*10**8/v #wavelength in m, since v*lambda=speed of light in vacuum\n",
+ "\n",
+ "#Variable declaration\n",
+ "print\"The maximum wavelength of the photon which can dissociate an O2 molecule is :\",round(lamda*10**9),\"nm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum wavelength of the photon which can dissociate an O2 molecule is : 240.0 nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example no:17.3,Page no:792"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Variable declaration\n",
+ "Rninitial=1 #initial mass of Rn, g\n",
+ "\n",
+ "#Calculation\n",
+ "Rnfinal=Rninitial*0.5**10 #final mass of Rn, g\n",
+ "\n",
+ "#Result\n",
+ "print\"The amount of Rn left after 10 half lives is :%.1e\"%Rnfinal,\"g\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The amount of Rn left after 10 half lives is :9.8e-04 g\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file