summaryrefslogtreecommitdiff
path: root/3769/CH2/EX2.18/Ex2_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH2/EX2.18/Ex2_18.sce')
-rw-r--r--3769/CH2/EX2.18/Ex2_18.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3769/CH2/EX2.18/Ex2_18.sce b/3769/CH2/EX2.18/Ex2_18.sce
new file mode 100644
index 000000000..9c59022d3
--- /dev/null
+++ b/3769/CH2/EX2.18/Ex2_18.sce
@@ -0,0 +1,12 @@
+clear
+//Given
+p=5*10**-8
+m=9*10**9
+r=0.15
+
+//Calculation
+E=m*2*p/r**3
+E1=m*p/r**3
+
+printf("\n (i) Electric field along AB is %0.2f *10**5 N/C",E*10**-5)
+printf("\n (ii) Electric field along BA is %0.2f *10**5 N/C",E1*10**-5)