summaryrefslogtreecommitdiff
path: root/104/CH3/EX3.7/3_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /104/CH3/EX3.7/3_7.sce
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 '104/CH3/EX3.7/3_7.sce')
-rwxr-xr-x104/CH3/EX3.7/3_7.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/104/CH3/EX3.7/3_7.sce b/104/CH3/EX3.7/3_7.sce
new file mode 100755
index 000000000..3a2ab3ee4
--- /dev/null
+++ b/104/CH3/EX3.7/3_7.sce
@@ -0,0 +1,21 @@
+//block diagram is converted to SFG
+//mason's gain formula applied to SFG in figure 3-17
+//E as output node
+syms G1 G2 G3 G4 H1 H2
+M1=1
+L11=-G1*G2*H1
+L21=-G2*G3*H2
+L31=-G1*G2*G3
+L41=-G1*G4
+L51=-G4*H2
+delta=1-(L11+L21+L31+L41+L51)
+delta1=1-(L21+L51+L11)
+x=M1*delta1/delta
+disp(x,"E(s)/R(s)=")
+//Y as output node
+M1=G1*G2*G3
+M2=G1*G4
+delta1=1
+delta2=1
+y=(M1*delta1+M2*delta2)/delta
+disp(y,"Y(s)/R(s)=") \ No newline at end of file