Re: Maximize returning approximate values
- To: mathgroup at smc.vnet.net
- Subject: [mg101333] Re: Maximize returning approximate values
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 1 Jul 2009 06:36:54 -0400 (EDT)
- Organization: Uni Leipzig
- References: <h2cps7$ah5$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, NMaximize[n/n!, n] gives {1.12917, {n -> 1.46163}} and FindMaximum[n/n!, n] gives {1.12917, {n -> 1.46163}} Regards Jens Nacho wrote: > Hello. > >>From Maximize documentation in V7.0.3: > > * Maximize will return exact results if given exact input. > > I've tried to maximize n/n! without success: > > In[8]:= Maximize[n/n!, n] > Out[8]= Maximize[n/n!, n] > > But a Plot shows that the maximum is around 1.5, so I tried: > > In[9]:= Maximize[{n/n!, 0 <= n <= 3}, n] > During evaluation of In[9]:= Maximize::nint: Warning: Maximize used > numeric integration to show that the result is a global maximum. >> > Out[9]= {Root[{-#1! + Gamma[1 + #1] PolyGamma[0, 1 + #1] #1 &, > 1.46163214496836234126265954233}]/ > Root[{-#1! + Gamma[1 + #1] PolyGamma[0, 1 + #1] #1 &, > 1.46163214496836234126265954233}]!, {n -> > Root[{-#1! + Gamma[1 + #1] PolyGamma[0, 1 + #1] #1 &, > 1.46163214496836234126265954233}]}} > > > It is partially symbolic, partially numeric. > Is it a bug? > > Regards. >