[Date Index] [Thread Index] [Author Index]
matrix of coefficients ANSWER
Many thanks to all the people who replied so rapidly to my question, which was (nearly): "If varsN is a list of N variables, and if exprsM is a list of of M expressions, each one linear in the variables of varsN, what is the neatest way to extract the matrix of coefficients?" I doubt that anyone can surpass the answer by Richard Mercer: Outer[Coefficient, exprsN, varsM] Many thanks, Richard. There were other good ones too, but this one requires no foreknowledge of N or M, and uses no indices. Great!