summaryrefslogtreecommitdiff
path: root/3769/CH2/EX2.17/Ex2_17.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 10:59:42 +0530
committerprashantsinalkar2018-02-03 10:59:42 +0530
commitd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (patch)
tree612077a22c8142c0ae754ec11882a4e7d5dc25a4 /3769/CH2/EX2.17/Ex2_17.sce
parentf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (diff)
downloadScilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.gz
Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.bz2
Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.zip
Modified the code
Diffstat (limited to '3769/CH2/EX2.17/Ex2_17.sce')
-rw-r--r--3769/CH2/EX2.17/Ex2_17.sce9
1 files changed, 5 insertions, 4 deletions
diff --git a/3769/CH2/EX2.17/Ex2_17.sce b/3769/CH2/EX2.17/Ex2_17.sce
index c98cea389..9a994c787 100644
--- a/3769/CH2/EX2.17/Ex2_17.sce
+++ b/3769/CH2/EX2.17/Ex2_17.sce
@@ -1,14 +1,15 @@
+
clear
//Given
-p=2*10**-8
-m=9*10**9
-r=1.0
+p=2*10**-8// dipole moment coulomb-meter
+m=9*10**9// constant
+r=1.0// distance m
//Calculation
//
b=3*cos(60*3.14/180.0)**2+1
a=p*sqrt(b)
-E=(m*a)/r**3
+E=(m*a)/r**3// electric field intensity
//Result
printf("\n Magnitude of electric intensity is %0.1f N/C",E)