Comment #1 on issue 2705 by [email protected]: integrate(cos(x)**(2*n),
(x, 0, 2*pi)) traceback
http://code.google.com/p/sympy/issues/detail?id=2705
I have a similar probleme here, I don't know if it needs a new bug report.
import sympy, sympy.abc
print sympy.__version__
0.7.1
sympy.integrate(sympy.cos(sympy.abc.x) ** sympy.abc.n, sympy.abc.x)
[...] KeyboardInterrupt after ten minutes
sympy.integrate(sympy.cos(sympy.abc.x) ** sympy.symbols('n',
integer=True), sympy.abc.x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/sympy/utilities/decorator.py",
line 24, in threaded_func
return func(expr, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/sympy/integrals/integrals.py",
line 847, in integrate
return integral.doit(deep = False)
File "/usr/lib/python2.7/dist-packages/sympy/integrals/integrals.py",
line 364, in doit
antideriv = self._eval_integral(function, xab[0])
File "/usr/lib/python2.7/dist-packages/sympy/integrals/integrals.py",
line 581, in _eval_integral
h = trigintegrate(g, x)
File "/usr/lib/python2.7/dist-packages/sympy/integrals/trigonometry.py",
line 153, in trigintegrate
res= cos_pow_integrate(m,x)
File "/usr/lib/python2.7/dist-packages/sympy/integrals/trigonometry.py",
line 238, in cos_pow_integrate
return
Rational(1,n)*sin(x)*cos(x)**(n-1)+Rational(n-1,n)*cos_pow_integrate(n-2,x)
File "/usr/lib/python2.7/dist-packages/sympy/core/cache.py", line 101, in
wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File "/usr/lib/python2.7/dist-packages/sympy/core/numbers.py", line 554,
in __new__
q = int(q)
TypeError: int() argument must be a string or a number, not 'Symbol'
Thank you.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.