View Single Post
Old 2020-03-22, 02:45   #2
CRGreathouse's Avatar
Aug 2006

10111010010102 Posts

You can get the files from version control. Many of the functions, for example, are in src/basemath/elliptic.c.

But it's not trivial to pull the functions into Python, because the numbers aren't stored in the same format -- Python doesn't use PARI GENs. (This doesn't apply if you stick strictly to functions taking long and ulong values, and returning the same or void, but that won't apply to many elliptic functions.) You might consider using one ofto simplify this for you. If not, I suggest using gp2c to wrap the whole process from a declared long or ulong to your desired output to get at least a rough draft.
CRGreathouse is offline   Reply With Quote