diff options
Diffstat (limited to '1271/CH13/EX13.21/example13_21.sce')
-rwxr-xr-x | 1271/CH13/EX13.21/example13_21.sce | 10 |
1 files changed, 10 insertions, 0 deletions
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) + |