#20967: Make behavior of charpoly in Rational consistent with other instances of
charpoly
--------------------------------------+-----------------------
Reporter: klui | Type: defect
Status: new | Priority: trivial
Milestone: sage-7.3 | Component: algebra
Keywords: rational, charpoly | Merged in:
Authors: Kevin Lui | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------+-----------------------
Currently, charpoly in Rational does not have a default var.
{{{
sage: a = QQ(2); a.charpoly()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-1-b2bd5f519d4e> in <module>()
----> 1 a = QQ(Integer(2)); a.charpoly()
TypeError: charpoly() takes exactly one argument (0 given)
}}}
Over other rings, it does have a default var.
{{{
sage: K.<a> = NumberField(x^2-2); a.charpoly()
x^2 - 2
}}}
--
Ticket URL: <https://trac.sagemath.org/ticket/20967>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.