lyap
lyap(A, Q)
Input: A, Q · Output: no output
What it is
Solves the continuous Lyapunov equation A X + X A' + Q = 0 for X, with A and Q real n×n. X is symmetric when Q is, and positive semidefinite when Q is and A is stable (all eigenvalues in the open left half-plane), which is the controllability Gramian of A, B for Q = B*B'. Same algorithm and cost as sylvester(A, A', -Q). Errors: non-square A, a Q of a different size, complex input, and any pair of eigenvalues of A with l1 + l2 = 0 (for example poles on the imaginary axis), where the solution is not unique.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
lyap(A, Q) | A —not documented yetQ —not documented yet | not documented yet | — |
Examples
No documentation example calls this form yet. The Core maths chapter is where one belongs.