summaryrefslogtreecommitdiff
path: root/3523/CH2/EX2.8.5/Ex2_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3523/CH2/EX2.8.5/Ex2_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3523/CH2/EX2.8.5/Ex2_5.sce')
-rw-r--r--3523/CH2/EX2.8.5/Ex2_5.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3523/CH2/EX2.8.5/Ex2_5.sce b/3523/CH2/EX2.8.5/Ex2_5.sce
new file mode 100644
index 000000000..79e6390bb
--- /dev/null
+++ b/3523/CH2/EX2.8.5/Ex2_5.sce
@@ -0,0 +1,30 @@
+//Example 5 // Ch 2
+clc;
+clear;
+close;
+// given data :
+R=0.25; // in meter sphere radius
+R1=0.75;//gap b/w two spheres in meters
+S=1; // in meter is equal to R1+R2
+S1=0.067; // in meter
+S2=0.0048;
+S3=0.01795;
+S4=0.00128;
+Epsilon_o=8.85*1e-12;
+Q1 = %pi*Epsilon_o;
+
+Q=Q1/(2*%pi*Epsilon_o);
+Qp=S1*Q;
+Qpp=S2*Q;
+F1=Q/R^2+Qp/(R-S1)^2+Qpp/(R-S1)^2;
+
+Qs=0.25*Q;
+Qsp=0.01795*Q;
+Qspp=0.00128*Q;
+F2=Qs/(R1-S1)^2+Qsp/(R1-S1)^2+Qspp/(R1-S1)^2
+
+E=F1+F2
+
+printf("Max field at surface is %e V/m",E)
+// NOTE: answer in the book is wrong as Q = Q1/2*%pi*Epsilon_o
+