MathGroup Archive 1998

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

Search the Archive

Re: how to replace a list of variables


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}.

Cheers,
   Bill



  • 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