Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: how to replace a list of variables

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

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