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

• To: mathgroup at smc.vnet.net
• Subject: [mg76436] Re: [mg76401] Simplify (-1)^((-1)^n)
• From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
• Date: Tue, 22 May 2007 02:50:16 -0400 (EDT)
• References: <200705211005.GAA10167@smc.vnet.net>

```On 21 May 2007, at 19:05, peter.clave at gmail.com wrote:

> 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
>
>

Well, you can't really (without adding this simplification as a
TransformationFunction or doing something essentially equivalent).
However, it can do this:

Simplify[(-1)^((-1)^n), Element[n, Integers] && Mod[n, 2] == #] & /
@ {0, 1}
{-1, -1}

which in practice ought to be enough.

Andrzej Kozlowski

```

• Prev by Date: Re: Weird result in Mathematica 6
• Next by Date: Re: Wolfram Research 2+12 degree-of-freedom gamepad?
• Previous by thread: Simplify (-1)^((-1)^n)
• Next by thread: Re: Simplify (-1)^((-1)^n)