summaryrefslogtreecommitdiff
path: root/46/CH14/EX14.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /46/CH14/EX14.2
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 '46/CH14/EX14.2')
-rwxr-xr-x46/CH14/EX14.2/Example14_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/46/CH14/EX14.2/Example14_2.sce b/46/CH14/EX14.2/Example14_2.sce
new file mode 100755
index 000000000..183ea422e
--- /dev/null
+++ b/46/CH14/EX14.2/Example14_2.sce
@@ -0,0 +1,18 @@
+//Example 14.2
+clear;
+clc
+h=poly([2,4,5,3,1],'s','coeff');
+r=routh_t(h)
+//Since there is no change in sign in the first column, there are no roots having positive real parts, and the system is stable.
+y=coeff(h);
+n=length(y);
+c=0;
+for i=1:n
+if (r(i,1)<0)
+c=c+1;
+end
+end
+if(c>=1)
+printf("system is unstable")
+else ("system is stable")
+end \ No newline at end of file