MathGroup Archive 2008

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

Search the Archive

Maximize command - trigonometric function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85072] Maximize command - trigonometric function
  • From: Crazy Man <geller_gambit at hotmail.com>
  • Date: Sun, 27 Jan 2008 05:43:35 -0500 (EST)

Hi all.

I am trying to use Maximize function to find the maximum of a trigonometric function of 7 variables. But it´s not working. I will show what I am doing.

First I define

B = (2*1*Cos(t1)*Cos(t2)*Cos(t3)*Cos(t4)*Cos(t5)*Cos(t6)*Cos(t7));

Then I try

Maximize[{B, -Ï?/2 
  â?¤ t1 â?¤ Ï?/2 && -Ï?/2 â?¤ t2 â?¤ Ï?/2 && -Ï?/2 â?¤ t3 â?¤ 
      Ï?/2 && -Ï?/2 â?¤ t4 â?¤ Ï?/2 && -Ï?/2 â?¤ t5 â?¤ 
      Ï?/2 && -Ï?/2 â?¤ t6 â?¤ Ï?/2 && 0 â?¤ t7 â?¤ 2*Ï?}, {t1, t2, t3, t4, t5, t6, t7}]

It displays the following error
(Maximize::"objv" "The 
    objective function 2Cos^7(t1t2t3t4t5t6t7) contains a nonconstant expression (Cos^7) independent of variables {t1,t2,t3,t4,t5,t6,t7}")


So, what I need is to maximize the function B, with t1,t2,t3,t4,t5,t6 varying from -Ï?/2 to Ï?/2 and t7 varying from 0 to 2Ï?.

I hope someone can help me

Thx a lot!


  • Prev by Date: Re: Sticky Animations Anyone?
  • Next by Date: Re: Better way to write this
  • Previous by thread: Re: Shortcut for Changing the Active Notebook in Windows version of
  • Next by thread: Re: Maximize command - trigonometric function