summaryrefslogtreecommitdiff
path: root/1427/CH19/EX19.7/19_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH19/EX19.7/19_7.sce')
-rw-r--r--1427/CH19/EX19.7/19_7.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1427/CH19/EX19.7/19_7.sce b/1427/CH19/EX19.7/19_7.sce
new file mode 100644
index 000000000..2d37a7457
--- /dev/null
+++ b/1427/CH19/EX19.7/19_7.sce
@@ -0,0 +1,10 @@
+//ques-19.7
+//Calculating ionization energy of sodium atom
+clc
+w=242;//wavelength (in nm)
+c=3*10^8;//speed of light (in m/s)
+h=6.626*10^-34;//(in Js)
+Na=6.023*10^23;//(in atom/mol)
+IE=(h*c)/(w*10^-9);//IE in J/atom
+IE=IE*Na;//IE in J/mol
+printf("The ionization energy of sodium atom is %d kJ.",IE/1000);