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.4/exp_6_4.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 3793/CH6/EX6.4/exp_6_4.sce (limited to '3793/CH6/EX6.4/exp_6_4.sce') diff --git a/3793/CH6/EX6.4/exp_6_4.sce b/3793/CH6/EX6.4/exp_6_4.sce new file mode 100644 index 000000000..82907e511 --- /dev/null +++ b/3793/CH6/EX6.4/exp_6_4.sce @@ -0,0 +1,18 @@ +clear; +clc; +y=[4 3 6;2 8 5;1 5 9]; +nbus=3; +l11=4; +disp(y(1,2)); +u12=(1/l11)*y(1,2); +u13=(1/l11)*y(1,3); +l21=2; +l22=y(2,2)-(l21*u12); +u23=(1/l22)*(y(2,3)-(l21*u13)); +l31=1; +l32=y(3,2)-(l31*u12); +l21=2; +l33=y(3,3)-(l31*u13)-(l32*u23); +Yb=[l11 u12 u13; l21 l22 u23;l31 l32 l33]; +mprintf("matrix for table of factor is\n") +disp(Yb); -- cgit