summaryrefslogtreecommitdiff
path: root/3739/CH2/EX2.6/EX2_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3739/CH2/EX2.6/EX2_6.sce')
-rw-r--r--3739/CH2/EX2.6/EX2_6.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3739/CH2/EX2.6/EX2_6.sce b/3739/CH2/EX2.6/EX2_6.sce
new file mode 100644
index 000000000..cde94a5a2
--- /dev/null
+++ b/3739/CH2/EX2.6/EX2_6.sce
@@ -0,0 +1,19 @@
+//Chapter 2, Example 2.6, page 38
+clc
+
+//Initialisation
+W=100*10**-12 //power in watt
+pi=3.14 //pi
+no=120*pi
+
+//Calculation
+Em=sqrt(2*no*W) //effective value of E
+Ee=Em/sqrt(2) //effective value of E
+Hm=sqrt((2*10**-10)/(no)) //effective value of H
+He=Hm/sqrt(2) //effective value of H
+
+//Result
+printf("Em = %.1f uV/m",(Em*10**6))
+printf("\nEe = %.1f uV/m",(Ee*10**6))
+printf("\nHm = %.3f uA/m",(Hm*10**6))
+printf("\nHe = %.2f uA/m",(He*10**6))