MathGroup Archive 2000

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

Search the Archive

Re: assume an integer

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22449] Re: assume an integer
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 8 Mar 2000 02:21:49 -0500 (EST)
  • References: <89qgh4$ah5@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Peter,
We can't do this globally, but we do  have

Simplify[{Cos[m Pi],
Sin[m Pi] }, {m \[Element] Integers}] // InputForm

{(-1)^m, 0}



Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


"Peter Jay Salzman" <covenant at dirac.org> wrote in message
news:89qgh4$ah5 at smc.vnet.net...
> hi all
>
> 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
>
> etc.   thanks!
> pete
>
>



  • Prev by Date: Re: Re: Rearranging a tensor
  • Next by Date: Re: Importing LaTex files
  • Previous by thread: Re: assume an integer
  • Next by thread: Mandelbrot set