Bill Allombert on Sun, 26 Nov 2006 23:33:29 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: PARI |
On Sun, Nov 26, 2006 at 01:37:44PM -0800, Tom Gettys wrote: > Thank you very much for your response Bill. So, just to be clear, there is > no way to compose a multiline script within PARI, and no way to modify one > that I read in from a file, correct? Well things are never so black and white. You can certainly edit multiline commands and functions inside GP (enclose them between { }) but there are no easy way to save them between GP session so it is more convenient to use an external editor. You can recall a command using the history and a function text using ?myfunction (where myfunction is the name of your function). You can also use the system() command to launch an editor from inside GP. > Also, I presume that after file is > read using the \r command PARI starts to execute the script immediately > (that is, there is no GO or RUN command). Yes, but obviously you can enclose your script in a function, this way you script will start when the function is executed, rather than when the script is run. For example: start()= { \\Your program here } Load it and then run start() when you want to run it. Cheers, Bill.