MathGroup Archive 2006

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

Search the Archive

Re: x=2;Composition[f,FindMinimum][x+1,{x,a}]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68302] Re: x=2;Composition[f,FindMinimum][x+1,{x,a}]
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Tue, 1 Aug 2006 06:59:15 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <eake8e$qu9$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Chris Chiasson wrote:
> The above command crashes my kernel on Windows XP and Linux. Anybody else?
> 
x = 2; Composition[f, FindMinimum][x + 1, {x, a}]

The above one crashes the kernel too. Now, you would not get any result 
whatsoever, since this is "a" that must be set, not "x".

x = 2; Composition[FindMinimum][x + 1, {x, a}]
  FindMinimum::"srect" : "Value (a) in search specification ({x, a}) is 
not a number or array of numbers.
FindMinimum[x + 1, {x, a}]

This works better,

a = 2; Composition[f, FindMinimum][x + 1, {x, a}]

  FindMinimum::"lstol" : "The line search decreased the step size to 
within tolerance specified by AccuracyGoal and PrecisionGoal but was 
unable to find a sufficient decrease in the function. You may need more 
than (MachinePrecision) digits of working precision to meet these 
tolerances.

f[{-1.1012745173913992*^16, {x -> -1.1012745173913992*^16}}]

HTH,
Jean-Marc


  • Prev by Date: Re: Using implicit information about row indices
  • Next by Date: Re: need to make a special function
  • Previous by thread: Re: x=2;Composition[f,FindMinimum][x+1,{x,a}]
  • Next by thread: Re: x=2;Composition[f,FindMinimum][x+1,{x,a}]