TIago Mendes on Mon, 11 May 2020 17:45:58 +0200


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

Re: Length of a vector


Thanks! 

A segunda, 11 de mai de 2020, 16:45, Andreas Enge <andreas.enge@inria.fr> escreveu:
Hello,

On Mon, May 11, 2020 at 04:38:05PM +0100, Tiago Mendes wrote:
> I have the following vector ,  GEN vec = mkvecn(0). I will add numbers to this
> vector and in the end i need to know the size of this vector.

you can try "???length" in GP to get all help topics related to this word.
In particular, it shows you that there is a function "length"; to get more
precise documentation, type "??length". This will also show you the library
syntax for PARI, which turns out to be "glength".

Enjoy!

Andreas