MathGroup Archive 2000

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

Search the Archive

Re: assume an integer

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22450] Re: assume an integer
  • From: Brian Higgins <bghiggins at ucdavis.edu>
  • Date: Wed, 8 Mar 2000 02:21:50 -0500 (EST)
  • References: <89qgh4$ah5@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <89qgh4$ah5 at smc.vnet.net>,
  Peter Jay Salzman <covenant at dirac.org> wrote:
> 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
>

Pete,

Try

Simplify[Cos[m Pi], Element[m, Integers]]

Brian
>


Sent via Deja.com http://www.deja.com/
Before you buy.


  • Prev by Date: Question to subscript
  • Next by Date: magnification issue
  • Previous by thread: Re: assume an integer
  • Next by thread: Re: assume an integer