Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: MaxValue

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

Round about way

(-1)^n // ComplexExpand

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

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

True

MaxValue[Cos[n*Pi], n]

1


Bob Hanlon

---- BG <galt32 at gmail.com> 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)^n...how 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