Karim Belabas on Mon, 21 Sep 2015 09:08:20 +0200


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

Re: discriminant of quad


* Kevin Ryde [2015-09-20 13:58]:
> On reading most of the docs I couldn't tell the best way to get back the
> discriminant of a t_QUAD.
> 
> The closest I found was charpoly() after some dividing.  In the code I
> see poldisc(w) does it for complex and quad, or w.disc member func for
> quad.  Are they meant for use that way?

Yes.

I made the mistake of renaming disc -> poldisc a long time ago, even
though it had applied e.g. to t_QUADs or t_QF[IR] since the dawn of time.

w.disc was added comparatively recentely (circa 1997...).

But I see none of these two are documented, I'll fix that.

Thanks !

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