MathGroup Archive 1998

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

Search the Archive

Re: Assuming n is even

  • To:
  • Subject: [mg10303] Re: Assuming n is even
  • From: Paul Abbott <>
  • Date: Mon, 5 Jan 1998 03:47:22 -0500
  • Organization: University of Western Australia
  • References: <68l3e7$>

Rod Pinna wrote:

> Hopefully this isn't a FAQ.
> Is it possible to get Mathematica (3.0) to assume that n is an even
> number for  an indefinite integral?

Good to see a posting from the University of Western Australia!  It is a
FAQ but the answer is, briefly, no.  A recent and related question was:

>I want to make an assignment T = k/omega and somehow cause Mathematica
>to know that k is an integer.  How do I do this?

In my opinion, the best way to is using pattern-matching and replacement
rules (see The Mathematica Journal 2(4): 31).  E.g., for n integral, we

	{Cos[(n_)*Pi] -> (-1)^n, Sin[(n_)*Pi] -> 0}; 

Please post your integral so that perhaps readers can make other

Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia            Nedlands WA  6907  AUSTRALIA                   

            God IS a weakly left-handed dice player

  • Prev by Date: Re: Parametric & nonlinear equations system
  • Next by Date: Re: Customizing Mathematica - keyboard
  • Prev by thread: Assuming n is even
  • Next by thread: Re: Re: Assuming n is even