summaryrefslogtreecommitdiff
path: root/3793/CH6/EX6.1/exp_6_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3793/CH6/EX6.1/exp_6_1.sce')
-rw-r--r--3793/CH6/EX6.1/exp_6_1.sce17
1 files changed, 17 insertions, 0 deletions
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);