Hi,

I really liked being able to break down a factorization using the list
method. Apparently this is not available in the current calculus
package. I would like it to be added. I do not understand how the list
method for the factorization of Polynomial_integer_dense is
implemented or how to find out.

{{{
list(factor(2*y^2+2))
///
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/server2/sage_notebook/worksheets/timothy/code/9.py",
line 4, in <module>
    exec compile(ur'list(factor(Integer(2)*y**Integer(2)+Integer(2)))'
+ '\n', '', 'single')
  File "/home/server2/", line 1, in <module>

TypeError: 'SymbolicArithmetic' object is not iterable
}}}

{{{
g.<x> = PolynomialRing(ZZ)
list(factor(3*x^2+9*x))
///
[(3, 1), (x, 1), (x + 3, 1)]
}}}

{{{
list(factor(2*x^2+8*x))
///
[(2, 1), (x, 1), (x + 4, 1)]
}}}

{{{
list(factor(10000*x^2+900*x))
///
[(100, 1), (x, 1), (100*x + 9, 1)]
}}}

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to