Hongyi Zhao on Sat, 14 Jan 2023 14:32:02 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Programmatically obtain a complete list of commands and keywords for updating the PARI/GP third-party IDE tools. |
On Sat, Jan 14, 2023 at 8:45 PM Charles Greathouse <crgreathouse@gmail.com> wrote: > > I think you need to make (./Configure && make -j gp) to get pari.desc. It should be in the src/desc directory. > > The 822 files won’t work without pari.desc, that’s where they get their information. Thank you for pointing this out. I confirmed that you are absolutely correct: $ apt-cache pkgnames |grep ^pari | xargs -n1 sudo apt build-dep -y $ git clone https://pari.math.u-bordeaux.fr/git/pari.git pari.math.u-bordeaux.fr/git/pari.git $ cd pari.math.u-bordeaux.fr/git/pari.git $ sudo apt install bison $ ./Configure $ make -j 44 all $ sudo make install $ ln -sfr misc/gprc.dft $HOME/.gprc $ find -type f -name 'pari.desc' ./src/desc/pari.desc $ find -type f -name '822.pm' ./src/desc/PARI/822.pm Best, Zhao > On Fri, Jan 13, 2023 at 9:52 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote: >> >> On Sat, Jan 14, 2023 at 2:11 AM Bill Allombert >> <Bill.Allombert@math.u-bordeaux.fr> wrote: >> > >> > On Fri, Jan 13, 2023 at 05:35:02PM +0100, Gottfried Helms wrote: >> > > Am 10.01.2023 um 01:46 schrieb Hongyi Zhao: >> > > > Hi here, >> > > > >> > > > I'm not sure whether there is an elegant way in PARI/GP, which can let >> > > > me programmatically obtain a complete list of commands and keywords >> > > > for updating the PARI/GP third-party IDE tools, such as pari-gp-lang >> > > > [1]. >> > > > >> > > > Any tips would be appreciated. >> > > > >> > > > [1] https://github.com/DavidAyotte/pari-gp-lang/issues/3 >> > > > >> > > > Regards, >> > > > Zhao >> > > > >> > > Hmm, don't know whether such a thing is meant: >> > > >> > > - - - - - - - - - - - - >> > > >> > > I've a small set of subroutines which provide from >> > > a new version of GP the commands plus simple helptext >> > > ("?Euler") as a text file like this: >> > > ============================================================================ >> > > Catalan=Catalan(): Catalan's number with current precision. >> > > Col(x, {n}): transforms the object x into a column vector of dimension n. >> > > Colrev(x, {n}): transforms the object x into a column vector of dimension n in reverse order with respect to Col(x, {n}). Empty vector if x is omitted. >> > > Euler=Euler(): Euler's constant with current precision. >> > > I=I(): square root of -1. >> > > List({x=[]}): transforms the vector or list x into a list. Empty list if x is omitted. >> > > ... >> > > znorder(x,{o}): order of the integermod x in (Z/nZ)*. Optional o represents a multiple of the order of the element. >> > > znprimroot(n): returns a primitive root of n when it exists. >> > > znstar(n,{flag=0}): 3-component vector v = [no,cyc0,gen], giving the structure of the abelian group (Z/nZ)^*; no is the order (i.e. eulerphi(n)), cyc is a vector of cyclic components, and gen is a vector giving the corresponding generators. >> > > ============================================================================ >> > >> > Note: the PARI installation includes a file pari.desc that includes all this data >> > in RFC822 format. We also provide a perl module to read it PARI/822.pm >> >> I downloaded the source distribution from here [1], and then performed >> the following check: >> >> $ tar -zxvf pari.tgz >> $ cd pari-2.15.2 >> $ find -type f -name 'pari.desc' >> $ find -type f -name '822.pm' >> ./src/desc/PARI/822.pm >> >> As you can see, there is no the file pari.desc at all. >> >> [1] https://pari.math.u-bordeaux.fr/pub/pari/unix/pari.tgz >> >> > Cheers, >> > Bill >> >> Best, >> Zhao >>