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