Message Boards Message Boards

Transforming CoefficitenList[] output into set of equations to use in Solve[]

Posted 4 days ago

How do I transform the result of CoefficientList[] into a set of equations, which I can solve for example with Solve[]. See attached file for the following example.

Attachments:
POSTED BY: Guido Nierhauve

Hi Guido! Try taking the dot product with the corresponding variable powers list:

CoefficientList[1 + 6 x - x^4, x]

gives

{1, 6, 0, 0, -1}

and

{1, 6, 0, 0, -1} . Array[x^(#-1)&, 5]

or

{1, 6, 0, 0, -1} . Table[x^n, {n,0,4}]

gives

1 + 6 x - x^4

back.

POSTED BY: Sotiris Michos
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract