Ask Your Question

Revision history [back]

Extracting a matrix from expressions

Suppose I have a vector depending on symbolic parameters, say v=vector([a-b, b-c, c-a]). How to extract the matrix naturally associated with the vector v ? I mean the matrix M

1 -1 0
0 1 -1
1 0 -1

since vector([a, b, c]) * M == v. In fact I need the equivalent to the Maple command GenerateMatrix.

Extracting a matrix from linear expressions

Suppose I have a vector depending on symbolic parameters, say v=vector([a-b, b-c, c-a]). How to extract the matrix naturally associated with the vector v ? I mean the matrix M

1 -1 0
0 1 -1
1 0 -1

since vector([a, b, c]) * M == v. In fact I need the equivalent to the Maple command GenerateMatrix.