MathGroup Archive 2007

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

Search the Archive

Re: Simplify (-1)^((-1)^n)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76427] Re: Simplify (-1)^((-1)^n)
  • From: Peter Pein <petsie at dordos.net>
  • Date: Tue, 22 May 2007 02:45:34 -0400 (EDT)
  • References: <f2rrer$a4q$1@smc.vnet.net>

peter.clave at gmail.com schrieb:
> Hi,
> 
> I am using Mathematica 5.2.
> 
> How can I urge Mathematica on evaluate
> In[x] := Simplify[ (-1)^((-1)^n), Element[n, Integers] ]
> to
> Out[x] := -1
> ?
> 
> Many thanks for any help,
> Peter
> 
> 

Hi Peter,

I'm afraid, you have to tell Mathematica, that an integer is either even or odd:

In[1]:=
$Version
Assuming[{n, n - 1}/2 \[Element] Integers,
  Simplify[ComplexExpand[(-1)^(-1)^n]]]
Out[1]= "5.1 for Microsoft Windows (October 25, 2004)"
Out[2]= -1

Cheers,
Peter


  • Prev by Date: Re: Re: change $UserDocumentsDirectory
  • Next by Date: Re: Simplify (-1)^((-1)^n)
  • Previous by thread: Re: Simplify (-1)^((-1)^n)
  • Next by thread: Re: Re: Simplify (-1)^((-1)^n)