summaryrefslogtreecommitdiff
path: root/2210/CH2/EX2.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2210/CH2/EX2.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2210/CH2/EX2.5')
-rwxr-xr-x2210/CH2/EX2.5/2_5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2210/CH2/EX2.5/2_5.sce b/2210/CH2/EX2.5/2_5.sce
new file mode 100755
index 000000000..0fd313f7e
--- /dev/null
+++ b/2210/CH2/EX2.5/2_5.sce
@@ -0,0 +1,13 @@
+//Chapter 2, Problem 5
+clc
+f=1.6*10^6 //frequency in hertz
+Zoc_mag=900 //magnitude in ohm of open circuit impedance
+Zoc_ang=-30 //angle in degree of open circuit impedance
+Zsc_mag=400 //magnitude in ohm of short circuit impedance
+Zsc_ang=-10 //angle in degree of short circuit impedance
+
+//calculation of charactersitics impedance
+Z0_mag=sqrt(Zoc_mag*Zsc_mag)
+Z0_ang=Zoc_ang-Zsc_ang
+
+printf("Z0 (magnitude) = %d ohm\n Z0(angle) = %d degree",Z0_mag,Z0_ang)