Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Problem with parametric minimization

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90264] Re: Problem with parametric minimization
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Fri, 4 Jul 2008 03:55:31 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <g4fhkl$9gs$1@smc.vnet.net> <g4flqh$c93$1@smc.vnet.net> <g4i962$3e9$1@smc.vnet.net>

Stephan Heckmueller wrote:
> Hi,
> unfortunately I forgot to insert spaces between 
> the constants and the variable in my previous posting.
> But as I said, it's the example from the mathematica 
> documentation only copy-pasted.
> None of the alternatives work though. I'm using version 
> 5.2. Might that be a problem?

Possible. It works fine on my system (64-bit Intel Mac OS X 1.5.4 
Mathematica 6.0.2)

In[1]:= Minimize[a*x^2 + b*x + c, x]

Out[1]= {Piecewise[{{c, (b == 0 && a == 0) || (b == 0 && a > 0)},
        {(-b^2 + 4*a*c)/(4*a), (b > 0 && a > 0) || (b < 0 &&
        a > 0)}},
      -Infinity],
    {x -> Piecewise[{{0, (b == 0 && a == 0) || (b == 0 && a > 0)},
            {-(b/(2*a)), (b > 0 && a > 0) || (b < 0 && a > 0)}},
          Indeterminate]}}

In[2]:= $Version

Out[2]= "6.0 for Mac OS X x86 (64-bit) (February 7, 2008)"

Regards,
-- Jean-Marc

> Thanks,
> Stephan
> 
> Jens-Peer Kuska wrote:
> 
>> Hi,
>>
>> try:
>>
>> Minimize[a*x^2 + b*x + c, x]
>>
>> Regards
>>    Jens
>>
>> Stephan Heckmueller wrote:
>>> Hello,
>>> I have a problem with with the examples for using the
>>> Minimize function given in the documentation on wolfram.com:
>>>
>>> When trying:
>>>         
>>> Minimize[ax^2+bx+c,x]
>>>
>>> I receive the following error:
>>>
>>> Minimize::objv:
>>> The objective function c+bx+ax^2 contains a nonconstant
>>> expression c independent of variables (x).
>>>
>>> Is there something wrong with the command or the
>>> documentation?
>>>
>>> Thanks.
>>>
>>>
> 
> 



  • Prev by Date: Re: Anomaly? or at least a surprise.
  • Next by Date: Re: Anomaly? or at least a surprise.
  • Previous by thread: Re: Problem with parametric minimization
  • Next by thread: Re: Re: Problem with parametric minimization