ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 08 Oct 2014 11:23:52 +0200Vector over a polynomial ringhttps://ask.sagemath.org/question/24434/vector-over-a-polynomial-ring/In Sage 6.3 (both command line and notebook), I tried to define a vector over Q[X] as follows
R = PolynomialRing(QQ,'x')
X = polygen(R)
a, b = X^4-1, X-1
vec = vector(R,[a, b])
This produces an error
TypeError: not a constant polynomial
By contrast, the following works:
sage: vec = vector(R,[[a],[b]])
sage: vec
(x^4 - 1, x - 1)
Is this a bug or could someone explain me why?gabplrWed, 08 Oct 2014 11:23:52 +0200https://ask.sagemath.org/question/24434/