summaryrefslogtreecommitdiff
path: root/Working_Examples/3885/CH5/EX5.2/Ex5_2.sci
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/3885/CH5/EX5.2/Ex5_2.sci')
-rwxr-xr-xWorking_Examples/3885/CH5/EX5.2/Ex5_2.sci20
1 files changed, 20 insertions, 0 deletions
diff --git a/Working_Examples/3885/CH5/EX5.2/Ex5_2.sci b/Working_Examples/3885/CH5/EX5.2/Ex5_2.sci
new file mode 100755
index 0000000..7e9f4d9
--- /dev/null
+++ b/Working_Examples/3885/CH5/EX5.2/Ex5_2.sci
@@ -0,0 +1,20 @@
+//control systems by Nagoor Kani A
+//Edition 3
+//Year of publication 2015
+//Scilab version 6.0.0
+//operating systems windows 10
+// Example 5.2
+
+clc;
+clear;
+s=poly(0,'s')
+a=(s^6)+(2*s^5)+(8*s^4)+(12*s^3)+(20*s^2)+(16*s)+16
+b=coeff(a)
+n=length(b)
+R=routh_t(a)
+disp(R,'the routh array is;')
+ap=s^4+6*s^2+8
+r=roots(ap)
+disp(r,'the roots of auxilary polynomial;')
+disp('the system is marginally stable;')
+disp('four roots lying in imaginary axis ;')