MathGroup Archive 2007

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

Search the Archive

Re: minimum of a function


On 4/14/07 at 1:15 AM, Sven-Philip.Krueger at phys.uni-goettingen.de
(Sven Krueger) wrote:

>I search the minimum of a function fmin := FindMinimum[f[x], {x, 0}]
>Evaluate[fmin]

>I get out for example {2.4, {x -> 0.2}}

>Is it possible to use the result x=0.2 afterwards? I would like to
>fix x after getting out the value of x at different results of fmin.

Yes, it is possible to use the result. For example, consider:

In[1]:=
min = {2.4, {x -> 0.2}};
x^2 - 1 /. Last@min

Out[2]=
-0.96

Or

In[3]:=
2 x/.Last@min

Out[3]=
0.4

--
To reply via email subtract one hundred and four


  • Prev by Date: How to Eliminate
  • Next by Date: Re: Spurious Line
  • Previous by thread: Re: minimum of a function
  • Next by thread: Re: minimum of a function