Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.4K Views
|
6 Replies
|
5 Total Likes
View groups...
Share
Share this post:

[?] Eliminate the variable X# on all the equations?

Posted 7 years ago
POSTED BY: jose caballero
6 Replies

OK, I see! Then try (using my definition of vars from above):

Coefficient[#, vars] &@*First /@ system

or likewise (using the new v11.3):

Curry[Coefficient][vars]@*First /@ system
POSTED BY: Henrik Schachner

How about:

x[n_] := ToExpression["x" <> ToString[n]]
vars = Array[x, 22];
Clear[x];
Solve[system, vars]
POSTED BY: Henrik Schachner
POSTED BY: Marco Thiel

Dear Marco,

glad you like my snippet of code! At the moment I am attending some boring conference, and your reply gives me the first sense of achievement for today ...

Best regard from Austria -- Henrik

POSTED BY: Henrik Schachner

Cool! Very nice use of the new Curry!

POSTED BY: Marco Thiel
Posted 7 years ago

it worked to set up the x answers in a organize pattern from 1 to 22 but i need to set the 22 equations in a coefficient matrix form, do you have a way to eliminate the x on each equation and also set it up as a 22x22 matrix?

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