summaryrefslogtreecommitdiff
path: root/Chemistry_by_R_Chang/17-Chemistry_in_the_atmosphere.ipynb
blob: 770ca3385c86ab96ff489e67ddea2027f5966150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"cells": [
 {
		   "cell_type": "markdown",
	   "metadata": {},
	   "source": [
       "# Chapter 17: Chemistry in the atmosphere"
	   ]
	},
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.1: computation_of_wavelength_of_a_photon_from_energy.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//computation of wavelength of a photon from energy\n",
"\n",
"clear;\n",
"clc;\n",
"\n",
"printf('\t Example 17.1\n');\n",
"\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",
"v=E/h;//frequency of the photon, s^-1\n",
"lambda=3*10^8/v;//wavelength in m, since v*lambda=speed of light in vacuum\n",
"\n",
"printf('\t the maximum wavelength of the photon which can dissociate an O2 molecule is : %4.0f nm\n',lambda*10^9);\n",
"\n",
"//End"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.3: Radioactive_decay_and_half_life.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//Radioactive decay and half life\n",
"\n",
"clear;\n",
"clc;\n",
"\n",
"printf('\t Example 17.3\n');\n",
"\n",
"Rninitial=1;//initial mass of Rn, g\n",
"\n",
"Rnfinal=Rninitial*0.5^10;//final mass of Rn, g\n",
"\n",
"printf('\t the amount of Rn left after 10 half lives is : %4.1f *10^-4 g\n',Rnfinal*10^4);\n",
"\n",
"//End"
   ]
   }
],
"metadata": {
		  "kernelspec": {
		   "display_name": "Scilab",
		   "language": "scilab",
		   "name": "scilab"
		  },
		  "language_info": {
		   "file_extension": ".sce",
		   "help_links": [
			{
			 "text": "MetaKernel Magics",
			 "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
			}
		   ],
		   "mimetype": "text/x-octave",
		   "name": "scilab",
		   "version": "0.7.1"
		  }
		 },
		 "nbformat": 4,
		 "nbformat_minor": 0
}