[sage-support] Re: loading a PARI script into SAGE

2010-04-25 Thread Alex P
Actually it does not seem to work, I get -- | Sage Version 4.3.4, Release Date: 2010-03-19 | | Type notebook() for the GUI, and license() for information.|

Re: [sage-support] Re: loading a PARI script into SAGE

2010-04-25 Thread Robert Bradshaw
On Apr 24, 2010, at 11:32 PM, Alex P wrote: Actually it does not seem to work, I get -- | Sage Version 4.3.4, Release Date: 2010-03-19 | | Type notebook() for the GUI, and license() for information.

[sage-support] Re: loading a PARI script into SAGE

2010-04-24 Thread John Cremona
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

[sage-support] Re: loading a PARI script into SAGE

2010-04-24 Thread Alex P
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

[sage-support] Re: loading a PARI script into SAGE

2010-04-24 Thread Alex P
To William Stein: Great thanks. To John Cremona: Sorry about that, won't happen again. On Apr 24, 3:10 pm, William Stein wst...@gmail.com wrote: On Fri, Apr 23, 2010 at 5:23 PM, Alex P alexvpetr...@gmail.com wrote: Hi all, I was trying to use a PARI/GP script in SAGE. I tried gp('\r