summaryrefslogtreecommitdiff
path: root/2912/CH1/EX1.3/Ex1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2912/CH1/EX1.3/Ex1_3.sce')
-rwxr-xr-x2912/CH1/EX1.3/Ex1_3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2912/CH1/EX1.3/Ex1_3.sce b/2912/CH1/EX1.3/Ex1_3.sce
new file mode 100755
index 000000000..9e7da8707
--- /dev/null
+++ b/2912/CH1/EX1.3/Ex1_3.sce
@@ -0,0 +1,17 @@
+//chapter 1
+//example 1.3
+//calculate potential energy
+//page 15
+clear;
+clc;
+//given
+r=2; //in angstrom(distance)
+e=1.6E-19; // in C (charge of electron)
+E_o= 8.85E-12;// absolute premittivity
+//calculate
+r=2*1E-10; // since r is in angstrom
+V=-e^2/(4*%pi*E_o*r); // calculate potential
+printf('\nThe potential energy is \tV=%3.3E J',V);
+V=V/e; // changing to eV
+printf('\nIn electron-Volt,\tV=%.2f eV',V);
+// Note: the answer in the book is wrong due to calculation mistake