Qurak

CoefficientArrays

Disponible

Returns sparse arrays of polynomial coefficients indexed by total degree.

CoefficientArrays[polys, vars]
CoefficientArrays[{a + x - y - z == 0, b + x + 2y + z == 0}, {x, y, z}] → {SparseArray[Automatic, {2}, 0, {1, {{0, 2}, {{1}, {2}}}, {0 + a, 0 + b}}], SparseArray[Automatic, {2, 3}, 0, {1, {{0, 3, 6}, {{1}, {2}, {3}, {1}, {2}, {3}}}, {1, -1, -1, 1, 2, 1}}]}CoefficientArrays[2x + 3y + 4z + 5, {x, y, z}] → {5, SparseArray[Automatic, {3}, 0, {1, {{0, 3}, {{1}, {2}, {3}}}, {2, 3, 4}}]}CoefficientArrays[{2x + 3y + 4z + 5, 6x + 7y + 8z + 9}, {x, y, z}] → {SparseArray[Automatic, {2}, 0, {1, {{0, 2}, {{1}, {2}}}, {0 + 5, 0 + 9}}], SparseArray[Automatic, {2, 3}, 0, {1, {{0, 3, 6}, {{1}, {2}, {3}, {1}, {2}, {3}}}, {2, 3, 4, 6, 7, 8}}]}

Thèmes

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP