[Rd] pari/gp interface
r.hankin at noc.soton.ac.uk
Tue Jul 25 11:08:32 CEST 2006
I'm developing an R package that
needs to execute some code written in pari/gp.
I've used this before from an R package (elliptic) but the interface
basic: the R function creates a string such as the following:
string <- echo ' ellwp ([ 2+0*I , 0+2*I ], 1+0*I )' | gp -q
returns the output from gp which then needs to be text processed
to "i", etc).
I don't think this approach would work under Windows.
Does anyone have any experience of calling pari/gp from R?
Or any ideas for a more portable method than the one above?
PARI/GP is a widely used computer algebra system designed for fast
in number theory. It is freely available at
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
More information about the R-devel