Re: Incorporating Pari into a C program
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <[email protected]> |
On 2025-05-17 09:48, Gordon Royle wrote: > Hi Pari Users > > I do a lot of things with graph polynomials and their roots and for > that I use GP a lot, but only in a naïve way – essentially just > calling polrootsreal on billions of polynomials (using a Perl script > to actually format the relevant GP commands). > > Now I need to do something different and although I have tried to read > the manual, I am lost. > > What I need is a C function that will operate as a “plugin” to an > existing C program (not written by me). > The other answers helped with your request to call pari lib functions from C code. PARI allows for external C functions to be called from within GP as well (the other direction). In case you ever need that, here is a simple example of making cgal lib functions available in GP: https://github.com/Hermann-SW/cgal4gp Regards, Hermann.