integrate returns undefined



I meant I think the answer should be 0 not %pi.  Unless you say assume(n=m);


----- Original Message ----- 
From: "Richard Hennessy" <rvh2007 at comcast.net>
To: "Edwin Woollett" <woollett at charter.net>; "maxima mailing list" 
<maxima at math.utexas.edu>
Sent: Wednesday, September 10, 2008 10:35 AM
Subject: Re: [Maxima] integrate returns undefined


> In this case I don't think Maxima should ask anything.  The answer should 
> be
> %pi.
>
> Rich
>
> ----- Original Message ----- 
> From: "Edwin Woollett" <woollett at charter.net>
> To: "maxima mailing list" <maxima at math.utexas.edu>
> Sent: Tuesday, September 09, 2008 3:15 PM
> Subject: integrate returns undefined
>
>
>> integrate(..) returns undefined when it
>> should know the answer.
>>
>> (%i1) declare( [ m, n ], integer )$
>> (%i2) assume ( m > 0,  n > 0 )$
>> (%i3) integrate( cos(m*x)^2, x, 0, 2*%pi );
>> (%o3)                                 %pi
>> (%i4) integrate( cos(m*x)*cos(n*x), x, 0, 2*%pi  );
>> Is  n - m  positive, negative, or zero?
>>
>> zero;
>> (%o4)                              undefined
>>
>> Is this a known bug?
>>
>> Ted Woollett
>>
>> _______________________________________________
>> Maxima mailing list
>> Maxima at math.utexas.edu
>> http://www.math.utexas.edu/mailman/listinfo/maxima
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima