MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to parse equations

Map[Variables , eqns] gives

{{x[1], y[1], z[1]}, {u[1], x[1], z[1]}, {u[1], z[1]}, {u[1]}}

Adriano Pascoletti
2008/8/29 Stuart Nettleton <Stuart.Nettleton at>

> Hi,
> I am a bit stuck on how to convert the following set of equations to a
> list of variables:
> eqns = {
>    x[1] + y[1] + z[1],
>    x[1] + 3 z[1] + u[1]^2,
>    z[1] - u[1] - 16,
>    u[1] - 5};
> to give..
> {{ x[1], y[1], z[1]},{x[1], z[1], u[1]},{z[1], u[1],}, {u[1]}}
> Any thoughts would be appreciated!
> Thanks,
> Stuart
> --
> UTS CRICOS Provider Code:  00099F
> DISCLAIMER: This email message and any accompanying attachments may contain
> confidential information.  If you are not the intended recipient, do not
> read, use, disseminate, distribute or copy this message or attachments.  If
> you have received this message in error, please notify the sender
> immediately and delete this message. Any views expressed in this message
> are those of the individual sender, except where the sender expressly, and
> with authority, states them to be the views the University of Technology,
> Sydney. Before opening any attachments, please check them for viruses and
> defects.

  • Prev by Date: Re: Normal Probability plot
  • Next by Date: Re: Re: Mathematica and F#
  • Previous by thread: How to parse equations
  • Next by thread: Re: How to parse equations