Re: Mathematica have an 'Assume' type syntax/command?
- To: mathgroup at smc.vnet.net
- Subject: [mg33072] Re: Mathematica have an 'Assume' type syntax/command?
- From: bghiggins at ucdavis.edu (Brian Higgins)
- Date: Fri, 1 Mar 2002 06:51:20 -0500 (EST)
- References: <a5htib$hsu$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Flip, Try this: In[26]:=Simplify[Integrate[x^2*Sin[n*Pi*x/a]^2, {x, 0, a}], {n > 0, n \[Element] Integers}] Out[26]=1/12*a^3*(2 - 3/(n^2*Pi^2)) Cheers, Brian "Flip Flippy" <flip at safebunch.com> wrote in message news:<a5htib$hsu$1 at smc.vnet.net>... > Hi All, > > I saw this on sci.math and was wondering how an 'assume' type function > can be done in Mathematica. > > Does one exist, or is there a way to emulate one? > > Here was the problem. > > After running the following code in maple: > > assume(n>0,n,integer); > int(x^2*(sin(n*Pi*x/a))^2,x=0..a); > > Any thoughts? Thank you, Flip