#13187: Minpoly and charpoly don't check their arguments correctly
------------------------------+---------------------------------------------
Reporter: Snark | Owner: jason, was
Type: defect | Status: new
Priority: minor | Milestone: sage-5.1
Component: linear algebra | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
------------------------------+---------------------------------------------
The following fails in sage (likewise with charpoly):
{{{
k=CyclotomicField(10)
U=matrix(k, 1,1,[1])
var('t')
U.minpoly(t)
}}}
The error is in a call that the function makes to PolynomialRing :
{{{
TypeError: invalid input (Cyclotomic Field of order 10 and degree 4, t,
None) to PolynomialRing function; please see the docstring for that
function
}}}
Strangely, if you use :
{{{
k=CyclotomicField(10)
U=matrix(k, 1,1,[1])
var('t')
U.minpoly('t')
}}}
everything is fine.
In any case, I would expect charpoly/minpoly to complain themselves if I
don't call them correctly (which isn't clear at all!) -- it's definitely
not normal (and upsetting for newbies) that another function reacts.
This is with sage-5.1.beta6.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13187>
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 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/sage-trac?hl=en.