summaryrefslogtreecommitdiff
path: root/29/CH4/EX4.4.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /29/CH4/EX4.4.10
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 '29/CH4/EX4.4.10')
-rwxr-xr-x29/CH4/EX4.4.10/exa4_4_10.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/29/CH4/EX4.4.10/exa4_4_10.sce b/29/CH4/EX4.4.10/exa4_4_10.sce
new file mode 100755
index 000000000..cde9b6fe2
--- /dev/null
+++ b/29/CH4/EX4.4.10/exa4_4_10.sce
@@ -0,0 +1,17 @@
+//Caption:transfer_function_using_mason's_gain_formula
+// example 4.4.10
+//page 72
+syms G1 G2 G3 G4 G5 H1 H2;
+// forward path denoted by P1,P2 and so on and loop by L1,L2 and so on
+//path factor by D1,D2 and so on and graph determinant by D
+P1=G1*G2*G3*G4;
+P2=G1*G5*G4;
+L1=-G2*H1;
+L2=-G3*H2;
+D1=1;
+D2=1;
+D=1-(L1+L2);
+D=simple(D)
+Y=(P1*D1+P2*D2)/D;
+Y=simple(Y);
+disp(Y,"C(s)/R(s)=") \ No newline at end of file