Karim Belabas on Fri, 28 May 2010 19:30:54 +0200


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

Re: primitive_part(tchebi)


* Sam Steingold [2010-05-28 19:22]:
> it appears that primitive_part(tchebi(6,),&c) sets c to NULL (instead of 1).
> primitive_part(legendre(6,),&c) works correctly,

This is the intended result and the library documentation (pari-stable)
is incorrect. :-(

The documentation in the testing branch (2.4.*) is generally (more
precise and) more accurate; here, it correctly states :

\fun{GEN}{primitive_part}{GEN x, GEN *c} sets \kbd{c} to \kbd{content(x)}
and returns the primitive part \kbd{x} / \kbd{c}. A trivial content is
set to \kbd{NULL}.

Best wishes,

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`