summaryrefslogtreecommitdiff
path: root/2210/CH2/EX2.8/2_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2210/CH2/EX2.8/2_8.sce')
-rwxr-xr-x2210/CH2/EX2.8/2_8.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2210/CH2/EX2.8/2_8.sce b/2210/CH2/EX2.8/2_8.sce
new file mode 100755
index 000000000..3cb82c4cb
--- /dev/null
+++ b/2210/CH2/EX2.8/2_8.sce
@@ -0,0 +1,17 @@
+//Chapter 2, Problem 8
+clc
+Z0=50 //characteristic impedance in ohm
+//load impedance in ohm
+Zl1=50
+Zl2=0
+Zl3=75
+
+//calculation of reflection coefficient
+ref1=(Zl1-Z0)/(Zl1+Z0)
+ref2=1
+ref3=(Zl2-Z0)/(Zl2+Z0)
+ref4=(Zl3-Z0)/(Zl3+Z0)
+printf("(a) with Zl = 50, reflection coefficient is \n magnitude = %f \n angle = %d degree\n\n",ref1,ref1)
+printf("(b) with Zl = open circuit , reflection coefficient is \n magnitude = %f \n angle = %d degree\n\n",ref2,angle=0)
+printf("(c) with Zl = short circuit, reflection coefficient is \n magnitude = %f \n angle = %d degree\n\n",ref3,angle2=0)
+printf("(d) with Zl = 75, reflection coefficient is \n magnitude = %f \n angle = %d degree\n\n",ref4,angle3=0)