Status: Accepted
Owner: plaes800
Labels: Type-Defect Priority-Medium Integration Solvers

New issue 1417 by plaes800: integrate(2**x - 2*x, x) gives traceback
http://code.google.com/p/sympy/issues/detail?id=1417

In [45]: integrate(2**x - 2*x, x)
---------------------------------------------------------------------------
SymbolsError                              Traceback (most recent call last)

/home/plaes/code/sympy/<ipython console> in <module>()

/home/plaes/code/sympy/sympy/utilities/decorator.pyc in
threaded_decorator(expr, *args, **kwargs)
      53                     return Add(*[ func(f, *args, **kwargs) for f in
expr.args ])
      54                 else:
---> 55                     return func(expr, *args, **kwargs)
      56
      57         threaded_decorator.__doc__  = func.__doc__

/home/plaes/code/sympy/sympy/integrals/integrals.pyc in integrate(*args,
**kwargs)
     393
     394     if isinstance(integral, Integral):
--> 395         return integral.doit()
     396     else:
     397         return integral

/home/plaes/code/sympy/sympy/integrals/integrals.pyc in doit(self, **hints)
     132
     133         for x,ab in self.limits:
--> 134             antideriv = self._eval_integral(function, x)
     135
     136             if antideriv is None:

/home/plaes/code/sympy/sympy/integrals/integrals.pyc in
_eval_integral(self, f, x)
     289             #        poly(x)

     290             if g.is_fraction(x):
--> 291                 parts.append(coeff * ratint(g, x))
     292                 continue
     293

/home/plaes/code/sympy/sympy/integrals/rationaltools.pyc in ratint(f, x,
**flags)
      41     result, p = poly_div(p, q)
      42
---> 43     g, h = ratint_ratpart(p, q, x)
      44
      45     P, Q = h.as_numer_denom()

/home/plaes/code/sympy/sympy/integrals/rationaltools.pyc in
ratint_ratpart(f, g, x)
     122     H = f - A.diff()*v + A*poly_div(u.diff()*v, u)[0] - B*u
     123
--> 124     result = solve(H.coeffs, symbols)
     125
     126     A = A.subs(result)

/home/plaes/code/sympy/sympy/solvers/solvers.pyc in solve(f, *symbols,  
**flags)
     255                     g = g.lhs - g.rhs
     256
--> 257                 poly = g.as_poly(*symbols)
     258
     259                 if poly is not None:

/home/plaes/code/sympy/sympy/core/basic.pyc in as_poly(self, *symbols,  
**flags)
     876                     symbols = sorted(self.atoms(Symbol))
     877
--> 878             return Poly(self, *symbols, **flags)
     879         except PolynomialError:
     880             return None

/home/plaes/code/sympy/sympy/polys/polynomial.pyc in __new__(cls, poly,
*symbols, **flags)
     298                     return poly
     299             else:
--> 300                 raise SymbolsError("No symbols were given")
     301
     302         stamp = frozenset(symbols)

SymbolsError: No symbols were given


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to