summaryrefslogtreecommitdiff
path: root/3769/CH2/EX2.15/Ex2_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH2/EX2.15/Ex2_15.sce')
-rw-r--r--3769/CH2/EX2.15/Ex2_15.sce13
1 files changed, 7 insertions, 6 deletions
diff --git a/3769/CH2/EX2.15/Ex2_15.sce b/3769/CH2/EX2.15/Ex2_15.sce
index bc9ff475a..74800b7b6 100644
--- a/3769/CH2/EX2.15/Ex2_15.sce
+++ b/3769/CH2/EX2.15/Ex2_15.sce
@@ -1,13 +1,14 @@
+
clear
//Given
-q=2*10**-6
-a=0.1
-m=9*10**9
-r=0.5
+q=2*10**-6// charge C
+a=0.1// dipole length m
+m=9*10**9// constant
+r=0.5// distance m
//Calculation
-p=q*a
-E=m*p/r**3
+p=q*a // finding potential
+E=m*p/r**3// electric field intensity
//Result
printf("\n Electric field intensity is %0.3f *10**4 N/C",E*10**-4)