Routh Hurwitz
|
03-10-2016, 05:00 AM
Post: #1
|
|||
|
|||
Routh Hurwitz
Does anyone have a program that can do Routh Hurwitz matrix?
|
|||
03-10-2016, 09:37 PM
Post: #2
|
|||
|
|||
RE: Routh Hurwitz | |||
03-11-2016, 03:37 AM
(This post was last modified: 03-11-2016 04:35 AM by Han.)
Post: #3
|
|||
|
|||
RE: Routh Hurwitz
Let \( p(z) = a_0 z^n + a_1 z^{n-1} + \dotsm + a_{n-1} z + a_n \) then using HM({ \( a_0, a_1, \dotsm, a_{n-1}, a_n \) }) would produce
\[ \begin{pmatrix} a_1 & a_3 & a_5 & \dots & \dots & \dots & 0 & 0 & 0 \\ a_0 & a_2 & a_4 & & & & \vdots & \vdots & \vdots \\ 0 & a_1 & a_3 & & & & \vdots & \vdots & \vdots \\ \vdots & a_0 & a_2 & \ddots & & & 0 & \vdots & \vdots \\ \vdots & 0 & a_1 & & \ddots & & a_n & \vdots & \vdots \\ \vdots & \vdots & a_0 & & & \ddots & a_{n-1} & 0 & \vdots \\ \vdots & \vdots & 0 & & & & a_{n-2} & a_n & \vdots \\ \vdots & \vdots & \vdots & & & & a_{n-3} & a_{n-1} & 0 \\ 0 & 0 & 0 & \dots & \dots & \dots & a_{n-4} & a_{n-2} & a_n \end{pmatrix} \] The source code for the HM() program: Code: // Compute Hurwitz matrix of p(z) Graph 3D | QPI | SolveSys |
|||
03-11-2016, 04:03 AM
(This post was last modified: 03-11-2016 04:06 AM by Han.)
Post: #4
|
|||
|
|||
RE: Routh Hurwitz
And here's a CAS version of the program above, with an extra modification that allows one to compute either the Hurwitz matrix, or the submatrix corresponding to the minors.
Usage: hurwitz({a0,a1,a2,...,an}, s) where s is the size of the submatrix (leading principal minor). If \( s=n \), then the entire matrix is produced. Otherwise, \( s \)-th minor is returned. Code: #cas Graph 3D | QPI | SolveSys |
|||
03-11-2016, 08:09 PM
Post: #5
|
|||
|
|||
RE: Routh Hurwitz
Thanks for posting both solutions Han. This is very instructive.
Brad |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)