Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Integration

New issue 3700 by [email protected]: integration of cos(n*(x-phi))*cos(n*x) from x=-pi..pi does not work
http://code.google.com/p/sympy/issues/detail?id=3700

from sympy import *
r, x, phi = symbols('r x phi')
n = symbols('n', integer=True, positive=True)
r/pi*integrate(cos(n*(x-phi))*cos(n*x), (x, -pi, pi))

The integrate method is not able to evaluate the above integral for positive n's. If I substitute n with positive integers then integrate is able to perform the integration.

The expected output of the above integral is

r * cos(n*phi)

I would like to fix this if it's not too difficult. Where should I look at in the sympy code ?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to