MathGroup Archive 2005

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

Search the Archive

Re: FindMinimum::nnum


You have to prevent the inner FindMinimum to evaluate, should the
argument be not numeric :

In[1]:= ClearAll[f,x,y];

In[2]:= f[y_?NumericQ] := x /. Last@FindMinimum[Sin[x y],{x,2}]

In[3]:= FindMinimum[(2.3-f[y])^2,{y,1}]

Out[3]= {1.29512*^-18, {y -> 2.04886}}


  • Prev by Date: Algebraic Symbol Manipulation
  • Next by Date: Re: List Partition
  • Previous by thread: Re: FindMinimum::nnum
  • Next by thread: PrimePowerQ