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: [mg14058] Re: [mg14017] how to replace a list of variables
  • From: Sergio Terrazas <sterraza at campus.cdj.itesm.mx>
  • Date: Fri, 18 Sep 1998 03:50:39 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

>Date: Thu, 17 Sep 1998 10:41:30 -0500
>To: Shih-Ying Wu <wus at econ.lsa.umich.edu>
>From: Sergio Terrazas <sterraza at campus.cdj.itesm.mx>
>Subject: [mg14058] Re: [mg14017] how to replace a list of variables
>In-Reply-To: <199809161811.OAA02415 at smc.vnet.net.>
>
>
>Hi!
>solution=FindRoot[{x+y==10,x==y},{x,3},{y,3}]
>{x->5.,y->5.}
>solution[[1]]
>x->5.
>xx=solution[[1,2]]
>yy=solution[[2,2]]
>5.
>5.
>Cheers!
>Sergio Terrazas
>
>At 02:11 PM 9/16/98 -0400, you 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
>>
>>
>>
>>
>>



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