MathGroup Archive 2008

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

Search the Archive

Re: Maximize Command - Problem

On 2/25/08 at 7:34 AM, geller_gambit at (Crazy Man) wrote:

>Well, Syd sent me an email and told me to try this:(well, I forgot
>to mention that we have to define a=1;b=1;c=1;d=1;)

>>fun[x_, y_, z_] =4*(a^2 + (b^2 + c^2 +d^2)
>>(Cos[x])^2*(Cos[y])^2*(Cos[z])^2 + (b*Cos[x]*Cos[y]*Cos[z]
>+Cos[x]*Sin[y] + d*Sin[x])^2);

>And then:

>>Maximize[{fun, -Pi/2 < x < Pi/2 && -Pi/2 < y < Pi/2 && 0 < z <
>>2*Pi}, {x, y,z}]

>It displayed an error. So I modified to

>>Maximize[{fun[x, y, z], -Pi/2 < x < Pi/2 && -Pi/
>2 < y < Pi/2 && 0 < z < 2*Pi}, {x, y, z}]

>And the command runs for a while and then it displays my input. Omg,
>this is frustrating, I dont know what=C3=82=C5=BDs the problem.

Given an exact expression, Maximize tries to return an exact
expression as the solution. It is relatively easy to pose
problems where this cannot be done within given resources. Try
using NMaximize or changing the problem so that at least one of
the constants is machine precision which will cause Maximize to
use NMaximize.
To reply via email subtract one hundred and four

  • Prev by Date: Re: Deleting elements from a Table
  • Next by Date: Re: Module and Manipulate Oddity
  • Previous by thread: Re: Maximize Command - Problem
  • Next by thread: Re: Maximize Command - Problem