DRiccati:

--------------------------------------------------------------------------
   Solves the discrete matrix Riccati equation.

   Solves the matrix Riccati equation in the form

   g = [a   r]
       [q -a']

   Since version 2.
--------------------------------------------------------------------------
   Form:
   [sinf, rr] = DRiccati( g )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   g                   Input matrix 

   -------
   Outputs
   -------
   sinf                Steady-state solution
   rr                  Repeated roots 1= repeated roots

--------------------------------------------------------------------------
	References:	Franklin, G.F., J.D. Powell, M.L. Workman, Digital Control
               of Dynamic Systems, 2nd Edition, Addison-Wesley, 1990,
               pp. 435-438.
--------------------------------------------------------------------------

Children:

Math: MathUtils/Odd