Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Perform an assigment

  • To: mathgroup at
  • Subject: [mg43879] Re: Perform an assigment
  • From: Jens-Peer Kuska <kuska at>
  • Date: Fri, 10 Oct 2003 03:05:47 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <bm2u1n$6qd$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


don't do this use the rules returned by als Solve[] functions
to replace the values of the symbolic variables in certain expressions.

{a, b, c} /. Solve[{a == 1, b == 2, c == 3}, {a, b, c}][[1]]

But if you insist to make assignments, something like

Set @@@ Transpose[{{a, b, c}, {a, b, c} /. 
        Solve[{a == 1, b == 2, c == 3}, {a, b, c}][[1]]}]

will do that.


paulocct at wrote:
> Hi all,
> I want to solve a system of equations and to assign the values
> calculated to the variables of the system automatically, What should I
> do?. What command should I use?
> Thanks a lot,
> Paulo Carmona
> University of Quindio
> Colombia

  • Prev by Date: Re: Graphics3D Edgeless Polygons
  • Next by Date: Re: piecewise definition of a function
  • Previous by thread: Re: Perform an assigment
  • Next by thread: RE: Perform an assigment