Page 1 sur 1

getting the coefficient matrix

Publié : ven. févr. 08, 2019 10:32 am
par jocaps
Hi,

Is there an efficient way of getting the coefficient matrix of a system of linear equations eqns with variable vars?
I want something like:

Code : Tout sélectionner

get_coeff_matrix(eqns,vars)
I know I could just loop through the vars and ask for coefficients but I think this is not very efficient (for instance in maple there is a command called "GenerateMatrix" that does this).

Jose

Re: getting the coefficient matrix

Publié : ven. févr. 08, 2019 12:09 pm
par parisse
Hi,

The command name is syst2mat