Ask Your Question

gabplr's profile - activity

2020-10-26 11:13:37 +0200 received badge  Popular Question (source)
2014-10-15 09:17:26 +0200 received badge  Student (source)
2014-10-08 11:23:52 +0200 asked a question 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?