summaryrefslogtreecommitdiff
path: root/104/CH6/EX6.2/6_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '104/CH6/EX6.2/6_2.sce')
-rwxr-xr-x104/CH6/EX6.2/6_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/104/CH6/EX6.2/6_2.sce b/104/CH6/EX6.2/6_2.sce
new file mode 100755
index 000000000..c38b2d71e
--- /dev/null
+++ b/104/CH6/EX6.2/6_2.sce
@@ -0,0 +1,18 @@
+//rouths tabulations to determine stability
+s=%s;
+m=s^3-4*s^2+s+6;
+disp(m)
+r=coeff(m)
+n=length(r)
+routh=routh_t(m) //This Function generates the Routh table
+disp(routh,"rouths tabulation=")
+c=0;
+for i=1:n
+if (routh(i,1)<0)
+c=c+1;
+ end
+ end
+ if(c>=1)
+ printf("system is unstable")
+ else printf("system is stable")
+ end