Re: Problem with parametric minimization

*To*: mathgroup at smc.vnet.net*Subject*: [mg90369] Re: Problem with parametric minimization*From*: Stephan Heckmueller <stephan.heckmueller at gmx.net>*Date*: Tue, 8 Jul 2008 02:21:53 -0400 (EDT)*References*: <g4fhkl$9gs$1@smc.vnet.net> <g4flqh$c93$1@smc.vnet.net> <g4i962$3e9$1@smc.vnet.net> <g4kl80$lqc$1@smc.vnet.net>

Hi, it seems to be a problem of Mathematica 5.2 (at least). With 6.0.2 it works fine. Thanks. Jean-Marc Gulliet wrote: > 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. >>>> >>>> >> >>