Vectors and integer exponentiation

Martin Becker <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
Hello,

In GP (tested with versions 2.15.0 and 2.13.1), the expression

    2^[4,6,8]

evaluates to a vector of floating point numbers, while

    [2^n|n<-[4,6,8]]

evaluates to a vector of integers.

I would have expected integers in the first case, too,
or perhaps a type error if exponentiation was not meant to
auto-unbox vectors.  Is this a bug?

Greetings,
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.