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