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: [mg14040] Re: [mg14017] how to replace a list of variables
  • From: "Kevin J. McCann" <kevinmccann at Home.com>
  • Date: Fri, 18 Sep 1998 03:50:23 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:=FindRoot[{x+y==10,x==y},{x,3},{y,3}]  Out[1]:= {x->5.,y->5.}

In[2]:={x,y}/.%
Out[2]:={5.,5.}


Kevin


-----Original Message-----
From: Shih-Ying Wu <wus at econ.lsa.umich.edu> To: mathgroup at smc.vnet.net
Subject: [mg14040] [mg14017] how to replace a list of variables


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



  • Prev by Date: Re: EPS format problems
  • Next by Date: Re: how to replace a list of variables
  • Previous by thread: Re: how to replace a list of variables
  • Next by thread: Re: how to replace a list of variables