summaryrefslogtreecommitdiff
path: root/2975/CH30/EX30.2w/Ex30_2w.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2975/CH30/EX30.2w/Ex30_2w.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 '2975/CH30/EX30.2w/Ex30_2w.sce')
-rw-r--r--2975/CH30/EX30.2w/Ex30_2w.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2975/CH30/EX30.2w/Ex30_2w.sce b/2975/CH30/EX30.2w/Ex30_2w.sce
new file mode 100644
index 000000000..532907195
--- /dev/null
+++ b/2975/CH30/EX30.2w/Ex30_2w.sce
@@ -0,0 +1,18 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 30_2w
+
+clc;clear;
+//Given Data
+
+charge_density=2*10^-6; //Value of surface Charge density (Unit:C/m^2)
+epsilon=8.85*10^-12; //Value of electric constant (Unit: C^2/N-m^2)
+radius=1*10^-2; //Value of radius (Unit:m)
+theta=60; //Angle of flux w.r.t. normal from z axis (Unit: degree)
+
+//Calculation
+
+area=%pi*radius^2; //Calculation of the circulat Area (Unit:m^2)
+flux=charge_density*cosd(theta)*area/(2*epsilon); //Calculation of the flux (Unit:N-m^2/C)
+
+disp(flux,"The flux of the electric field through a circular area is (Unit:N-m^2/C ) ");