Re: Forcing a parameter to be integer when using 'Integrate'
- To: mathgroup at smc.vnet.net
- Subject: [mg67590] Re: Forcing a parameter to be integer when using 'Integrate'
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sat, 1 Jul 2006 05:12:37 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 6/30/06 at 4:14 AM, i.e.linington at sussex.ac.uk (Ian Linington) wrote: >I would like to solve the integral: >>Integrate[E^((n*I)*x)/Sqrt[1 + a^2*Sin[x]^2], {x,0,2*Pi}] >with n integer and a real and positive. The problem is that I don't >know how to tell Mathematica about these conditions on a and n. >If I explicitly assign an integer value for n (i.e. 4 in this >example), Mathematica solves the integral: >>Integrate[E^((4*I)*x)/Sqrt[1 + a^2*Sin[x]^2], {x,0,2*Pi}] >(with a few conditions) and gives the output There are a variety of ways to get Mathematica to suppress generation of assumptions. Probably what you want is to use Assuming or Assumptions, i.e. Assuming[{Element[n,Integers] a>0}, Integrate[... or Integrate[...., Assumptions->{Element[n, Integers], a>0}] Note, I am assuming usage of Mathematica version 5.2 here. The function Assuming was not introduced until version 5. -- To reply via email subtract one hundred and four