math_matrix
Compute matrix and linear algebra operations: eigenvalues, eigenvectors, determinant, inverse, rref, rank, nullspace, charpoly, transpose, solve linear systems, SVD, LU, QR, diagonalize, and Jordan form.
Instructions
矩阵与线性代数运算。
matrix: 矩阵,格式 '[[a,b],[c,d]]' 或 '[a,b;c,d]'。 operation: 支持的运算: eigenvalues — 特征值 eigenvectors — 特征向量 determinant — 行列式 inverse — 逆矩阵 rref — 简化行阶梯形 rank — 秩 nullspace — 零空间 charpoly — 特征多项式 transpose — 转置 solve_linear — 解线性方程组 Ax=b(需 vector 参数) svd — 奇异值分解 lu — LU 分解 qr — QR 分解 diagonalize — 对角化 jordan — Jordan 标准形 vector: 线性方程组右侧向量,格式 '[a,b,c]',仅 solve_linear 需要。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes | ||
| operation | No | eigenvalues | |
| vector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |