From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3793/CH6/EX6.1/exp_6_1.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 3793/CH6/EX6.1/exp_6_1.sce (limited to '3793/CH6/EX6.1/exp_6_1.sce') diff --git a/3793/CH6/EX6.1/exp_6_1.sce b/3793/CH6/EX6.1/exp_6_1.sce new file mode 100644 index 000000000..8ada421e5 --- /dev/null +++ b/3793/CH6/EX6.1/exp_6_1.sce @@ -0,0 +1,17 @@ +clear; +clc; +A=[-1 0 0; 0 0 -1; 1 -1 0; 0 -1 1; -1 0 1]; +B=(A'); +z=diag([.05;.10;.5;.40;.25]); +y=pinv(z); +Yb=(B*y*A); +mprintf("Ybus matrix without coupling\n"); +disp(Yb); + +//case2 +z1=[.05 0 0 0 0; 0 .10 0 0 0; 0 0 .5 0 0; 0 0 0 .4 .2;0 0 0 .2 .25]; +y1=pinv(z1); +Y1b=B*y1*A; +mprintf("\nYbus matrix with coupling\n"); +disp(Y1b); +Zb=pinv(Y1b); -- cgit