MathGroup Archive 2000

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

Search the Archive

Re: assume an integer

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22456] Re: [mg22478] assume an integer
  • From: BobHanlon at aol.com
  • Date: Wed, 8 Mar 2000 02:21:54 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

{Cos[m*Pi], Sin[n*Pi]}

{Cos[m*Pi], Sin[n*Pi]}

Simplify[%, Element[{m, n}, Integers]]

{(-1)^m, 0}

Bob Hanlon

In a message dated 3/4/2000 3:47:37 AM, covenant at dirac.org writes:

>is it possible to have Mathematica assume a variable is an integer?  i
>can't find an
>example in the Mathematica book (book is for 3.0, but i'm using 4.0).
>
>what i'm getting at is: 
>Cos[m Pi] = (-1)^m
>Sin[n Pi] =  0
>


  • Prev by Date: Great Circle, Sphere, and satellites
  • Next by Date: Re: Signing with Inequality Constraints
  • Previous by thread: assume an integer
  • Next by thread: Re: assume an integer