函数 lyap #
求解连续时间 Lyapunov 方程 AP+PA’+Q=0 中的 P,其中 Q 是输入矩阵。当 Q 是对称矩阵时,P 也是对称矩阵。请注意,连续时间 Lyapunov 方程存在不同的等效定义。https://en.wikipedia.org/wiki/Lyapunov_equation
Syntax #
math.lyap(A, Q)
Parameters #
| Parameter | Type | Description |
|---|---|---|
A |
矩阵 | 数组 | 矩阵 A |
Q |
矩阵 | 数组 | 矩阵 Q |
Returns #
| Type | Description |
|---|---|
| 矩阵 | 数组 | 连续时间 Lyapunov 方程 AP+PA’=Q 的矩阵 P 解 |
Throws #
Type | Description —- | ———–
Examples #
const A = [[-2, 0], [1, -4]]
const Q = [[3, 1], [1, 3]]
const P = math.lyap(A, Q)