On Mon, Jul 21, 2008 at 8:19 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> sage: var("y z")
> (y, z)
> sage: 2*x*y*z + x*y**2 + x*z**2 + y*x**2 + y*z**2 + z*x**2 + z*y**2
> y*z^2 + x*z^2 + y^2*z + 2*x*y*z + x^2*z + x*y^2 + x^2*y
> sage: %time factor(_)
> CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
> Wall time: 0.01 s
> (y + x)*(z + x)*(z + y)
>
>
> so factor() factorizes a symbolic expression. However:
>
> sage: factor??
>
> gives:
>
> def factor(n, proof=None, int_=False, algorithm='pari', verbose=0, **kwds):
>    """
>    Returns the factorization of the integer n as a sorted list of
>    tuples (p,e).
>
>    INPUT:
>        n -- an nonzero integer
>        proof -- bool or None (default: None)
> ...
>
> Which suggests that factor only factorizes integers, which is
> apparently not true. I am using sage 3.0.5.

I attached a patch with an improved docstring here:

http://trac.sagemath.org/sage_trac/ticket/3695

Please review. Also, what is the easiest way to get to the trac from
sagemath.org? I don't remember the address, and it takes me like 5
clicks to get there. I think the page for developers should be more
developers friendly, no? :)

Ondrej

--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to