Re: Re: Annoying Maximize behaviour

*To*: mathgroup at smc.vnet.net*Subject*: [mg64135] Re: Re: Annoying Maximize behaviour*From*: Bhuvanesh <lalu_bhatt at yahoo.com>*Date*: Thu, 2 Feb 2006 00:06:30 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Pratik Desai wrote: > I was quite surprised that the following worked > Maximize[Exp[-x^2]*Sin[x],x]//N > >>{0.396653, {x -> 0.653271}} Yes, it just calls NMaximize. It's the same for Integrate, Sum, and other such functions. For example: In[1]:= Sum[Exp[-k]*Sin[k^2], {k,1,Infinity}] 2 Sin[k ] Out[1]= Sum[-------, {k, 1, Infinity}] k E In[2]:= N[%] NIntegrate::ncvb: NIntegrate failed to converge to prescribed accuracy after 7 recursive bisections in k near k = 22.3143. Out[2]= 0.218384 Bhuvanesh, Wolfram Research.