Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Simplification question

  • To: mathgroup at
  • Subject: [mg59092] Re: Simplification question
  • From: "David W. Cantrell" <DWCantrell at>
  • Date: Thu, 28 Jul 2005 02:27:58 -0400 (EDT)
  • References: <dc76pp$jvg$>
  • Sender: owner-wri-mathgroup at

"snoofly" <snoofly at> wrote:
> Can someone explain this to me please.
> Clear[m]
> Simplify[Sin[3 m Pi], Assumptions -> m \[Element] Integers]
> 0
> Simplify[Cos[3 m Pi], Assumptions -> m \[Element] Integers]
> Cos[3 m \[Pi]]
> I'm not sure why Mathematica cannot deduce that the second simplification
> should be (1)^m.

I presume you meant to say (-1)^m. Anyway, Peter Pein recently posted a
nice way to handle this, in sci.math.symbolic:

In[1]:= Refine[TrigFactor[Cos[3 m Pi]], Element[m, Integers]]

Out[1]= (-1)^m


  • Prev by Date: How to express a Product (special case) in Mathematica?
  • Next by Date: Re: Simplification question
  • Previous by thread: Re: Simplification question
  • Next by thread: Re: Simplification question