Re: Assigning solutions found by FindRoot
- To: mathgroup at smc.vnet.net
- Subject: [mg9446] Re: Assigning solutions found by FindRoot
- From: hans.steffani at e-technik.tu-chemnitz.de (Hans Steffani)
- Date: Thu, 6 Nov 1997 02:39:56 -0500
- Organization: University of Technology Chemnitz, FRG
- Sender: owner-wri-mathgroup at wolfram.com
Christian Zemlin <chr at itb.biologie.hu-berlin.de> writes:
>Hello everybody,
>I use FindRoot to solve systems of around ten equations and I would like
>to use the results for further computation. Therefore, I need a
>function that assigns the computed solution to the variables. For
>example:
>In[1] := FindRoot[{x == y, x + y == 2}, {x, 0}, {y, 0}] Out[1] := {x ->
>1., y -> 1.}
>In[2] := **Command I am looking for ** Out[2] := ** Now, x is set to 1
>and y is set to 1 **
Something like
res = FindRoot[ ... ];
x = x/.res
y = y/.res
?
h.f.s.
[cc,fup]
--
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
mailto:hans.steffani at e-technik.tu-chemnitz.de
http://www.tu-chemnitz.de/~hfst/