diff options
Diffstat (limited to '1016/CH1/EX1.7')
-rwxr-xr-x | 1016/CH1/EX1.7/ex1_7.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1016/CH1/EX1.7/ex1_7.sce b/1016/CH1/EX1.7/ex1_7.sce new file mode 100755 index 000000000..5678ba5b3 --- /dev/null +++ b/1016/CH1/EX1.7/ex1_7.sce @@ -0,0 +1,15 @@ +clc;clear;
+//Example 1.7
+//Calculation of the total energy
+
+//given values
+r=0.528*10^-10;//radius of the orbit in m
+q=-1.6*10^-19;//charge on electron in C
+Q=1.6*10^-19;//charge on Hydrogen nucleus in C
+Eo=8.854*10^-12;//permittivity in free space in F/m
+
+//calculation
+E=(q*Q)/(8*3.14*Eo*r);//
+disp(E,'The total energy(in J) is');
+E1=E/(1.6*10^-19);//
+disp(E1,'The total energy(in eV) is')
\ No newline at end of file |