Re: evaluate assuming odd integers?
- To: mathgroup at smc.vnet.net
- Subject: [mg58994] Re: [mg58961] evaluate assuming odd integers?
- From: "David Park" <djmp at earthlink.net>
- Date: Tue, 26 Jul 2005 04:02:14 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Perhaps there is a simpler method, but the following works.
Integrate[Sin[n*Pi*(z/L)], {z, 0, L}]
% /. n -> 2*k + 1
Simplify[%, k \[Element] Integers]
Simplify[% /. {k -> (1/2)*(-1 + n)}]
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: ab at sd.com [mailto:at2 at ads.com]
To: mathgroup at smc.vnet.net
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]