summaryrefslogtreecommitdiff
path: root/29/CH4/EX4.4.4/exa4_4_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '29/CH4/EX4.4.4/exa4_4_4.sce')
-rwxr-xr-x29/CH4/EX4.4.4/exa4_4_4.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/29/CH4/EX4.4.4/exa4_4_4.sce b/29/CH4/EX4.4.4/exa4_4_4.sce
new file mode 100755
index 000000000..524afe6ab
--- /dev/null
+++ b/29/CH4/EX4.4.4/exa4_4_4.sce
@@ -0,0 +1,17 @@
+//Caption:transfer_function_using_mason's_gain_formula
+// example 4.4.4
+//page 67
+syms G1 G2 G3 H1;
+// 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*1;
+P2=G1*G3;
+L1=G2*(-1);
+L2=G3*(-1);
+L3=-G1*G2*H1
+D1=1;
+D2=1;
+D=1-(L1+L2+L3);
+Y=(P1*D1+P2*D2)/D;
+Y=simple(Y);
+disp(Y,"C(s)/R(s)=") \ No newline at end of file