getting the coefficient matrix

Messages in english

Modérateur : xcasadmin

jocaps
Messages : 120
Inscription : lun. avr. 17, 2017 4:32 pm

getting the coefficient matrix

Message par jocaps » ven. févr. 08, 2019 10:32 am

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

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: getting the coefficient matrix

Message par parisse » ven. févr. 08, 2019 12:09 pm

Hi,

The command name is syst2mat

Répondre