summaryrefslogtreecommitdiff
path: root/104/CH3/EX3.11/3_11.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.11/3_11.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.11/3_11.sce')
-rwxr-xr-x104/CH3/EX3.11/3_11.sce38
1 files changed, 38 insertions, 0 deletions
diff --git a/104/CH3/EX3.11/3_11.sce b/104/CH3/EX3.11/3_11.sce
new file mode 100755
index 000000000..9725c3597
--- /dev/null
+++ b/104/CH3/EX3.11/3_11.sce
@@ -0,0 +1,38 @@
+//applying gain formula to state diagram in figure 3-23(b)
+//r(t),x1(t),x2(t) and x3(t) are input nodes
+//y(t) is output node
+//superposition principle holds good
+
+syms s a0 a1 a2 a3 r x1 x2 x3
+//r(t) as input node and y(t) as output node
+M1=0
+delta1=1
+L11=-a0*a3
+delta=1-(L11)
+a=(M1*delta1)/delta
+y1=a*r
+disp(y1,"y1(t)=")
+
+//x1(t) as input node and y(t) as output node
+M1=1
+delta1=1
+b=(M1*delta1)/delta
+y2=b*x1
+disp(y2,"y2(t)=")
+
+//x2(t) as input node and y(t) as output node
+M1=0
+delta1=1
+c=(M1*delta1)/delta
+y3=c*x2
+disp(y3,"y3(t)=")
+
+//x3(t) as input node and y(t) as output node
+M1=a0
+delta1=1
+d=(M1*delta1)/delta
+y4=d*x3
+disp(y4,"y4(t)=")
+
+disp(y1+y2+y3+y4,"y(t)=")
+