Re: Re: MaxValue
- To: mathgroup at smc.vnet.net
- Subject: [mg99150] Re: [mg99108] Re: [mg99084] MaxValue
- From: "Ned Lieb" <okty.gy.ned at gmail.com>
- Date: Tue, 28 Apr 2009 04:48:23 -0400 (EDT)
- Reply-to: okty.gy.ned at gmail.com
Why don't you just use the equivalent exponent? It would probably be faster ------Original Message------ From: Bob Hanlon To: mathgroup at smc.vnet.net ReplyTo: hanlonr at cox.net 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]] 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? Sent from my Verizon Wireless BlackBerry