From d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 10:59:42 +0530 Subject: Modified the code --- 3769/CH3/EX3.14/Ex3_14.sce | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '3769/CH3/EX3.14') 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) -- cgit