MathGroup Archive 2009

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

Search the Archive

Re: Re: MaxValue

  • To: mathgroup at
  • Subject: [mg99150] Re: [mg99108] Re: [mg99084] MaxValue
  • From: "Ned Lieb" < at>
  • Date: Tue, 28 Apr 2009 04:48:23 -0400 (EDT)
  • Reply-to: at

Why don't you just use the equivalent exponent? It would probably be faster

------Original Message------
From: Bob Hanlon
To: mathgroup at
ReplyTo: hanlonr at
Sent: Apr 27, 2009 1:16 AM
Subject: [mg99150] [mg99108] Re: [mg99084] MaxValue

Round about way

(-1)^n // ComplexExpand

Cos[Pi*n] + I*Sin[Pi*n]

Simplify[(-1)^n == Cos[n*Pi], Element[n, Integers]]


MaxValue[Cos[n*Pi], n]


Bob Hanlon

---- BG <galt32 at> wrote: 

Suppose I want to find supremum of {(-1)^n: n is natural}, MaxValue
just returns the question itself.
if I ask it sup of (1+2)^n, it givs infinity, but max of (1-2)^n it
just returns the question itself.
FindMaximum and FindMinimum also can't handle (-1)^ can it be
done then?

Sent from my Verizon Wireless BlackBerry

  • Prev by Date: RowReduce::luc when using NSolve
  • Next by Date: Select and Cases Give Different Answers
  • Previous by thread: Re: MaxValue
  • Next by thread: "A very large output was generated. Here is a sample of it:"