MathGroup Archive 2009

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

Search the Archive

Re: MaxValue

  • To: mathgroup at
  • Subject: [mg99108] Re: [mg99084] MaxValue
  • From: Bob Hanlon <hanlonr at>
  • Date: Mon, 27 Apr 2009 01:16:47 -0400 (EDT)
  • Reply-to: hanlonr at

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?

  • Prev by Date: Re: representing the dihedral group
  • Next by Date: Re: MaxValue
  • Previous by thread: Re: MaxValue
  • Next by thread: Re: MaxValue