summaryrefslogtreecommitdiff
path: root/1151/CH1/EX1.45/example45.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1151/CH1/EX1.45/example45.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 '1151/CH1/EX1.45/example45.sce')
-rwxr-xr-x1151/CH1/EX1.45/example45.sce1
1 files changed, 1 insertions, 0 deletions
diff --git a/1151/CH1/EX1.45/example45.sce b/1151/CH1/EX1.45/example45.sce
new file mode 100755
index 000000000..ae68be815
--- /dev/null
+++ b/1151/CH1/EX1.45/example45.sce
@@ -0,0 +1 @@
+printf("//to find transfer function using mason gain formula\n syms G1 G2 G3 G4 H1 H2 \n //gains of forward paths\n P1=G1*G2*G3;//forward path1 gain\n P2=-G1*G4;//forward path2 gain\n //gain of individual loops\nL1=-G1*G2*H1;\nL2=-G2*G3*H2;\nL3=-G1*G2*G3;\nL4=G1*G4;\nL5=G4*H2;\n//NO TWO NON TOUCHING LOOPS ARE THERE\nd1=1;\nd2=1;\nd=1-(L1+L2+L3+L4+L5);\nG=(P1*d1+P2*d2)/d;\ntransfer function C/R=G")