summaryrefslogtreecommitdiff
path: root/1016/CH1/EX1.7/ex1_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1016/CH1/EX1.7/ex1_7.sce
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 '1016/CH1/EX1.7/ex1_7.sce')
-rwxr-xr-x1016/CH1/EX1.7/ex1_7.sce15
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