MathGroup Archive 1998

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

Search the Archive

Re: how to replace a list of variables

  • To: mathgroup at
  • Subject: [mg14042] Re: how to replace a list of variables
  • From: "W. K. Bertram" <wkb at>
  • Date: Fri, 18 Sep 1998 03:50:25 -0400
  • Organization: Australian Nuclear Science and Technology Organisation
  • References: <6tovb0$>
  • Sender: owner-wri-mathgroup at

Shih-Ying Wu wrote:

> Hi, I just got emails discussing how to assign a solution to a variable.
> However, the same approach doesn't work for the following similar
> question, in which the solution is a vector.
> FindRoot[{x+y==10,x==y},{x,3},{y,3}] {{x->5,y->5}}
> {x,y}={x,y}/.%
> Thanks.
> Shih-ying Wu

but if you write,

FindRoot[{x+y == 10, x == y}, {x, 3}, {y, 3}] u = {x, y} /. %

you'll get u = {5, 5}.


  • Prev by Date: Re: ListContourPlot sometimes leaves out requested contours
  • Next by Date: NT Mathematica won't open Win95 notebooks
  • Previous by thread: Re: how to replace a list of variables
  • Next by thread: resorting coordinates after the rotations