Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: FindMinimum::nnum

  • To: mathgroup at
  • Subject: [mg54114] Re: FindMinimum::nnum
  • From: "Valeri Astanoff" <astanoff at>
  • Date: Fri, 11 Feb 2005 03:33:27 -0500 (EST)
  • References: <cuf3pm$gds$>
  • Sender: owner-wri-mathgroup at

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