summaryrefslogtreecommitdiff
path: root/3648/CH16/EX16.10/Ex16_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH16/EX16.10/Ex16_10.sce')
-rw-r--r--3648/CH16/EX16.10/Ex16_10.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3648/CH16/EX16.10/Ex16_10.sce b/3648/CH16/EX16.10/Ex16_10.sce
new file mode 100644
index 000000000..ebdc42c1e
--- /dev/null
+++ b/3648/CH16/EX16.10/Ex16_10.sce
@@ -0,0 +1,15 @@
+//Example 16_10
+clc();
+clear;
+//To find the absolute potential and how much energy is needed to pull the electrons from atom
+k=9*10^9 //Units in N meter^2/C^2
+q=1.6*10^-19 //Units in C
+r=5.3*10^-11 //Units in meters
+v=(k*q)/r //Units in V
+printf("The absolute potential is V=%.1f V\n",v)
+Vinfinity=0 //Units in V
+deltaV=Vinfinity-v //Units in V
+work=-q*deltaV //Units in J
+printf("The energy that is required is W=")
+disp(work)
+printf("J")