From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1016/CH1/EX1.7/ex1_7.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 1016/CH1/EX1.7/ex1_7.sce (limited to '1016/CH1/EX1.7') 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 -- cgit