Karim Belabas on Mon, 08 Aug 2016 12:36:35 +0200


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

Re: GP reference cards


* Jeroen Demeyer [2016-08-08 09:34]:
> On 2016-08-06 20:40, Karim Belabas wrote:
> > N.B. All non-deprecated GP functions
> 
> Speaking of deprecation, is there a machine-readable way of determining
> whether a given GP function is deprecated? I think we talked about this at
> the PARI atelier. It would be useful to add some flag to pari.desc for
> deprecated functions.

Yes, the current situation is a little awkward. The following script
produces the list of obsolete defaults and functions with master
(it doesn't in 2.8.0: misses 2 or 3 functions).

##########
#!/usr/bin/perl
use PARI::822;

my (%funcs);
my ($TOP) = $ENV{PARIDIR};   # you may want to change this line...
PARI::822::read(\%funcs, "$TOP/src/desc/pari.desc");
for (keys %funcs) { 
  print "$_\n" if (substr($funcs{$_}->{Doc},0,120) =~ /(deprecated|obsolete)/i);
}
##########

Sorting the output, I get:

_def_compatible
_def_strictmatch
bernvec
bezout
bezoutres
bnrconductorofchar
ellbil
ellpow
factornf
global
listcreate
listkill
matalgtobasis
matbasistoalg
plotlinetype
plotpointsize
plotpointtype
polred
polredord
poltchebi
rnfpolred
rnfpolredabs
sizedigit
trap


Cheers,

    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]
`