Re: Possible simple bug in NMaximize
- To: mathgroup at smc.vnet.net
- Subject: [mg71070] Re: Possible simple bug in NMaximize
- From: "harlekin" <mark_kaldewey at arcor.de>
- Date: Wed, 8 Nov 2006 06:03:36 -0500 (EST)
- References: <eimqps$cfl$1@smc.vnet.net>
That works at Version 5.1: NMaximize[Integrate[-t^3, {t, 0, x}], x] or NMaximize[NIntegrate[-t^3, {t, 0, x}], x] OK, it's not exactly your problem, but the real problem is Integrate/NIntegrate, i think. Maybe that helps... Nick Grishin schrieb: > (* does not work *) > func = Hold[NIntegrate[t^3, {t, x, 0}]]; > NMaximize[func, x] > > (* works *) > func = Hold[NIntegrate[t^3, {t, 0, x}]]; > NMinimize[func, x] > > $Version > 5.2 for Microsoft Windows (June 20, 2005)