summaryrefslogtreecommitdiff
path: root/2975/CH30
diff options
context:
space:
mode:
Diffstat (limited to '2975/CH30')
-rw-r--r--2975/CH30/EX30.1w/Ex30_1w.sce16
-rw-r--r--2975/CH30/EX30.2w/Ex30_2w.sce18
-rw-r--r--2975/CH30/EX30.5w/Ex30_5w.sce22
-rw-r--r--2975/CH30/EX30.6w/Ex30_6w.sce16
4 files changed, 72 insertions, 0 deletions
diff --git a/2975/CH30/EX30.1w/Ex30_1w.sce b/2975/CH30/EX30.1w/Ex30_1w.sce
new file mode 100644
index 000000000..3d908f737
--- /dev/null
+++ b/2975/CH30/EX30.1w/Ex30_1w.sce
@@ -0,0 +1,16 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 30_1w
+
+clc;clear;
+//Given Data
+
+elec_field=100; //Magnitude of Electric field (Unit: N/C)
+edge=10*10^-2; //Value of the edge of the square (Unit:m)
+theta=0; //As the normal to the area points along the electric field , angle is zero (Unit : degree)
+
+//Calculation
+
+flux=elec_field*edge^2*cosd(theta); //Calculation of the flux of this field through a plane square area in Y-Z plane (Unit: N-m^2/C)
+
+disp(flux,"The flux of this field through a plane square area in Y-Z plane is (Unit: N-m^2/C)")
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 ) ");
diff --git a/2975/CH30/EX30.5w/Ex30_5w.sce b/2975/CH30/EX30.5w/Ex30_5w.sce
new file mode 100644
index 000000000..65a06b188
--- /dev/null
+++ b/2975/CH30/EX30.5w/Ex30_5w.sce
@@ -0,0 +1,22 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 30_5w
+
+clc;clear;
+//Given Data
+
+linear_charge_density=4*10^-4; //Value of linear charge density (Unit:C/m)
+dipole_distance=2*10^-3; //Distance between dipole (Unit:m)
+dipole_charge=2*10^-8; //Charge on the electric dipole (Unit: C)
+distance=2*10^-2; //Distance between dipole and line charge (Unit:m)
+k=9*10^9; //Value of the coulomb constant (Unit: N-m^2/C^2)
+
+//Calculation
+
+electric_field_negative=2*k*linear_charge_density/distance; //Calculation of the electric field on the negative charge (Unit:N/C)
+electric_field_positive=2*k*linear_charge_density/(distance+dipole_distance); //Calculation of the electric field on the positive charge (Unit:N/C)
+force_negative=dipole_charge*electric_field_negative; //Calculation of force on negative charge of the dipole(Unit:N)
+force_positive=dipole_charge*electric_field_positive; //Calculation of force on positive charge of the dipole(Unit:N)
+net_force=force_negative-force_positive; //Calculation of net force on the dipole (Unit:N)
+disp(net_force,"The net force on the dipole towards the line of charge is (Unit:N)");
+
diff --git a/2975/CH30/EX30.6w/Ex30_6w.sce b/2975/CH30/EX30.6w/Ex30_6w.sce
new file mode 100644
index 000000000..c75449660
--- /dev/null
+++ b/2975/CH30/EX30.6w/Ex30_6w.sce
@@ -0,0 +1,16 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 30_6w
+
+clc;clear;
+//Given Data
+
+k=9*10^9; //Value of the coulomb constant (Unit: N-m^2/C^2)
+A=100; //Value of A (Unit:V/m^2)
+a=20*10^-2; //Value of the radius of sphere (Unit: m)
+
+//Calculation
+
+charge=A*a^3/k; //Calculation of charge contained in the sphere (Unit:C)
+
+disp(charge,"The charge contained in a sphere is (Unit:C)");