summaryrefslogtreecommitdiff
path: root/3769/CH3/EX3.14
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH3/EX3.14')
-rw-r--r--3769/CH3/EX3.14/Ex3_14.sce13
1 files changed, 7 insertions, 6 deletions
diff --git a/3769/CH3/EX3.14/Ex3_14.sce b/3769/CH3/EX3.14/Ex3_14.sce
index 2e6b8247d..a17fcfde3 100644
--- a/3769/CH3/EX3.14/Ex3_14.sce
+++ b/3769/CH3/EX3.14/Ex3_14.sce
@@ -1,12 +1,13 @@
+
clear
//Given
-m=9*10**9
-q=1.6*10**-19
-r=10**-10
+m=9*10**9// constant
+q=1.6*10**-19// charge C
+r=10**-10// distance m
//Calculation
-U=m*q**2/r
-K=U/2.0
+U=m*q**2/r// potential energy
+K=U/2.0// Kinetic energy
//Result
-printf("\n Kinetic energy is %0.3f J",K)
+printf("\n Kinetic energy is %e J",K)