Re: evaluate assuming odd integers?
- To: mathgroup at smc.vnet.net
- Subject: [mg58976] Re: [mg58961] evaluate assuming odd integers?
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Tue, 26 Jul 2005 04:01:41 -0400 (EDT)
- References: <200507250512.BAA04841@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On 25 Jul 2005, at 07:12, ab at sd.com wrote: > Is there a way in Mathematica to evaluate an expression assuming some > varialbe is Odd integer, for example in below integral how can i > tell it > that n is odd integer in the Assumptions section of FullSimplify > command or > the integral itself??: > In[35]:= > Integrate[Sin[n*Pi*(z/L)], {z, 0, L}] > FullSimplify[%, n \[Element] Integers && n >= 0 && > L \[Element] Reals && L > 0 && z \[Element] Reals] > > All you *actually* need is: Simplify[Integrate[Sin[(Pi*n*z)/L], {z, 0, L}], Mod[n, 2] == 1] (2*L)/(n*Pi) Andrzej Kozlowski
- References:
- evaluate assuming odd integers?
- From: "ab@sd.com" <at2@ads.com>
- evaluate assuming odd integers?