summaryrefslogtreecommitdiff
path: root/1271/CH13/EX13.21
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH13/EX13.21
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1271/CH13/EX13.21')
-rwxr-xr-x1271/CH13/EX13.21/21.txt1
-rwxr-xr-x1271/CH13/EX13.21/example13_21.sce10
2 files changed, 11 insertions, 0 deletions
diff --git a/1271/CH13/EX13.21/21.txt b/1271/CH13/EX13.21/21.txt
new file mode 100755
index 000000000..a14edce77
--- /dev/null
+++ b/1271/CH13/EX13.21/21.txt
@@ -0,0 +1 @@
+ Potential energy of molecule is -9.591258 eV. \ No newline at end of file
diff --git a/1271/CH13/EX13.21/example13_21.sce b/1271/CH13/EX13.21/example13_21.sce
new file mode 100755
index 000000000..e0031ec54
--- /dev/null
+++ b/1271/CH13/EX13.21/example13_21.sce
@@ -0,0 +1,10 @@
+clc
+// Given that
+d = 0.15e-9 // distance between K(+) and Cl(-) in m
+// Sample Problem 21 on page no. 13.32
+printf("\n # PROBLEM 21 # \n")
+printf(" Standard formula used \n")
+printf(" v = -1.6e-19 / (4 * pi * 8.85e-12 * d) \n")
+v = -1.6e-19 / (4 * %pi * 8.85e-12 * d)
+printf("\n Potential energy of molecule is %f eV.",v)
+