diff options
Diffstat (limited to '257/CH8/EX8.2/example_8_2.sce')
-rw-r--r-- | 257/CH8/EX8.2/example_8_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/257/CH8/EX8.2/example_8_2.sce b/257/CH8/EX8.2/example_8_2.sce new file mode 100644 index 000000000..1dd56abae --- /dev/null +++ b/257/CH8/EX8.2/example_8_2.sce @@ -0,0 +1,16 @@ +s=%s;
+P=s^3+6*s^2+11*s+6;
+routh=routh_t(P)
+disp(routh)
+r=coeff(P)
+n=length(r)
+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
\ No newline at end of file |