MathGroup Archive 2005

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

Search the Archive

FindMinimum::nnum

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

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} =
{2.}.

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])?

js
-- 
Joshua A. Solomon
http://www.staff.city.ac.uk/~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