Ask Your Question

Revision history [back]

Whenever in doubt about the output of a function, use help or `?`` to check its documentation.

Here, you can do:

sage: help(f.roots)
sage: f.roots?

and this will display the documentation for f.roots, which documents that it returns pairs (root, multiplicity), and explains how to use an optional argument to not display the mutiplicities.

To skip the multiplicities:

f.roots(multiplicities=False)