MathGroup Archive 2005

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg54075] FindMinimum::nnum
  • From: "Joshua A. Solomon" <J.A.Solomon at>
  • Date: Thu, 10 Feb 2005 02:46:06 -0500 (EST)
  • Sender: owner-wri-mathgroup at

The following one-line program produces a strange error message.

FindMinimum[(2.3-FindMinimum[Sin[x y],{x,2}][[2,1,2]])^2,{y,1}][[2,1,2]]

The error message is

FindMinimum::nnum: The function value Sin[2. y] is not a number at {x} =

Eventually, the correct output (2.05 or thereabouts) is given, but how can
this code be re-written so as not to produce the error message (barring the
obvious hack of Off[FindMinimum::nnum])?

Joshua A. Solomon

  • Prev by Date: Re: precision of numbers
  • Next by Date: Re: precision of numbers
  • Previous by thread: Re: Image Geometric Correction
  • Next by thread: Re: FindMinimum::nnum