summaryrefslogtreecommitdiff
path: root/3773/CH4/EX4.1
diff options
context:
space:
mode:
Diffstat (limited to '3773/CH4/EX4.1')
-rw-r--r--3773/CH4/EX4.1/Ex4_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3773/CH4/EX4.1/Ex4_1.sce b/3773/CH4/EX4.1/Ex4_1.sce
new file mode 100644
index 000000000..aaf28c96d
--- /dev/null
+++ b/3773/CH4/EX4.1/Ex4_1.sce
@@ -0,0 +1,17 @@
+//Chapter 4: Radiation
+//Example 4-4.1
+clc;
+
+//Variable Initialization
+theta = 30 //Angle of radiation (degrees)
+epsilon_0 = 8.854e-12 //Permittivity of free space (F/m)
+I_dl = 10 //Current in length dl (A-m)
+r = 100e3 //Distance of point from origin (m)
+
+//Calculation
+E_mag = (I_dl*sin(theta*%pi/180))/(4*%pi*epsilon_0) //Magnitude of Electric field vector (V/m)
+H_mag = (I_dl*sin(theta*%pi/180))/(4) //Magnitude of Magnetic field vector (T)
+
+//Result
+disp(E_mag,"The magnitude of E vector in V/m ")
+mprintf("\nThe magnitude of H vector is %.3f /pi T", H_mag)