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

New issue 1332 by Comer.Duncan: problem with eigenvalue example
http://code.google.com/p/sympy/issues/detail?id=1332

I am using isympy on my Debian etch system.I have tried running the example
where one specifies a matrix and constructs the characteristic polynomial.
  The result is given in the form:


f = Poly(x**3 - 8*x**2 + 17*x - 10, x)

When I   from sympy.polynomials import roots and try

r= roots(f,x)

I get a failure:

Traceback (most recent call last):
   File "<console>", line 1, in ?
   File "/home/comer/sympy-0.6.3/sympy/polynomials/roots_.py", line 284, in
roots
     f = Polynomial(f, var=var, order=None)
   File "/home/comer/sympy-0.6.3/sympy/polynomials/base.py", line 127, in
__new__
     obj.coeffs = sympy2coefficients(sympy_expr, var, order)
   File "/home/comer/sympy-0.6.3/sympy/polynomials/base.py", line 794, in
sympy2coefficients
     raise PolynomialException("%s is not a polynomial!"
PolynomialException: Poly(x**3 - 8*x**2 + 17*x - 10, x) is not a polynomial!

However, if first I set g =  x**3 -8*x**2 +17*x -10  and then try

r = roots(g,x)  I get the predicted answer.

It thus seems that the assignment of Poly( x**3 -8*x**2 +17*x -10) is the
problem.  What am I missing or is there a bug?

Thanks.

Comer

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