summaryrefslogtreecommitdiff
path: root/2681/CH1/EX1.11/Ex1_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '2681/CH1/EX1.11/Ex1_11.sce')
-rwxr-xr-x2681/CH1/EX1.11/Ex1_11.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2681/CH1/EX1.11/Ex1_11.sce b/2681/CH1/EX1.11/Ex1_11.sce
new file mode 100755
index 000000000..bafb4438f
--- /dev/null
+++ b/2681/CH1/EX1.11/Ex1_11.sce
@@ -0,0 +1,14 @@
+//find pointing vector and direction of power flow of microwave
+//given
+clc
+function w=cross_prod(E,H)//function to determine the cross product of two vector
+D=[E(:),H(:)]
+w(1)=det([[1;0;0],D])
+w(2)=det([[0;1;0],D])
+w(3)=det([[0;0;1],D])
+endfunction
+E=1*[1 0 0]//electric field towards ax
+H=2*[0 1 0]//magnetic field towards ay
+q=cross_prod(E,H)
+disp(q','the display is along az axis')//along az
+//ERROR in the book as cross product of two perpendicular vector is the third vector