From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 46/CH14/EX14.2/Example14_2.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 46/CH14/EX14.2/Example14_2.sce (limited to '46/CH14/EX14.2') 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 -- cgit