summaryrefslogtreecommitdiff
path: root/1109/CH13/EX13.1/13_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1109/CH13/EX13.1/13_1.sce
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 '1109/CH13/EX13.1/13_1.sce')
-rwxr-xr-x1109/CH13/EX13.1/13_1.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1109/CH13/EX13.1/13_1.sce b/1109/CH13/EX13.1/13_1.sce
new file mode 100755
index 000000000..bca0fbe35
--- /dev/null
+++ b/1109/CH13/EX13.1/13_1.sce
@@ -0,0 +1,23 @@
+clear;
+clc;
+Z1=%i*20;Z2=%i*25;Z3=30;
+Z11=Z1+Z3; //Z11=V1/I1 when I2=0
+Z12=Z3; //Z12=V1/I2 when I1=0
+Z21=Z3; //Z21=V2/I1 when I2=0
+Z22=Z2+Z3; //Z22=V2/I2 when I1=0
+printf("(a)The z-parameters are\n");
+printf(" Z11 = %f + j(%f) ohms\n",real(Z11),imag(Z11));
+printf(" Z12 = %f ohms\n",Z12);
+printf(" Z21 = %f ohms\n",Z21);
+printf(" Z22 = %f + j(%f) ohms\n",real(Z22),imag(Z22));
+deltaz=(Z11*Z22)-(Z12*Z21);
+y11=Z22/deltaz;
+y12=-Z12/deltaz;
+y21=-Z21/deltaz;
+y22=Z11/deltaz;
+
+printf("(b)The y-parameters are\n");
+printf(" y11 = %f + j(%f) mhos\n",real(y11),imag(y11));
+printf(" y12 = %f + j(%f) mhos\n",real(y12),imag(y12));
+printf(" y21 = %f + j(%f) mhos\n",real(y21),imag(y21));
+printf(" y22 = %f + j(%f) mhos\n",real(y22),imag(y22));