blob: e0031ec54557146d427a0784684c4f3f65ae5bfb (
plain)
1
2
3
4
5
6
7
8
9
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)
|