Michael Somos on Sun, 31 Oct 1999 16:34:22 -0500 (EST)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Vec() bug?

gp> Vec("a")
%1 = [0]
gp> ??Vec
Vec({x = []}):

   transforms  the  object  x  into a row vector.   The vector will be with one
component only,  except when x is a vector/matrix or a quadratic form (in which
case  the  resulting  vector  is  simply the initial object considered as a row
vector), but more importantly when x is a polynomial or a power series.  In the
case  of  a  polynomial,  the coefficients of the vector start with the leading
coefficient  of  the  polynomial,   while for power series only the significant
coefficients  are  taken  into  account,   but this time by increasing order of

   The library syntax is gtovec(x).

gp> Mat("a")
%2 = 

It seems to me that Vec("a") and Mat("a") should give similar results.
That is, producing a vector or matrix with one element. This is not the
case with  "GP/PARI CALCULATOR Version 2.0.17 (beta)". Shalom, Michael

Michael Somos <somos@grail.cba.csuohio.edu>     Cleveland State University
http://grail.cba.csuohio.edu/~somos/            Cleveland, Ohio, USA 44115