Yes. I want to be in SAGE and call the function in PARI that I have created. For example if it is a function that is already in PARI (say I want to use the sqrt function in PARI) then I do
gp.sqrt(Mod(4, 7)) OR gp('sqrt(Mod(4, 7))') So I want to do the same with my function. I was hoping that there is a way to do that. I guess if nothing works I can just rewrite the code in SAGE (I do not know if it will be slower or not). Alex On Apr 24, 10:25 am, John Cremona <john.crem...@gmail.com> wrote: > It works to do this: > > %gp > \r file.gp > > but then you are in a separate gp session. > > Are you hoping to read in stuff from your gp file and have the same > quantities / functions available from Sage? > > John Cremona > > On Apr 24, 1:23 am, Alex P <alexvpetr...@gmail.com> wrote: > > > Hi all, > > I was trying to use a PARI/GP script in SAGE. I tried gp('\r > > name_of_file.gp'), but SAGE said could not get the file. > > So is there any way to do this. > > > 10x in advance. > > Alex > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/sage-support > URL:http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org