Max Alekseyev on Mon, 10 Dec 2012 17:36:26 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Prevent PARI from determining program

trap() function may help as it traps errors and allow to resume calculations.

On Mon, Dec 10, 2012 at 8:28 PM, SÃren Lennart Berg
<> wrote:
> Hi,
> the program I'm working on essentially runs a huge for loop. This means millions or even billions of
> loop cycles. In every iteration PARI is used to compute different things, for example
> polynomial roots, resultants and more. However, in rare cases PARI might crash due to
> faulty arguments(causing division by zero for example), a too small PARI stack or bugs.
> Unfortunately PARI then determines the program. Is there a way to avoid this behaviour?
> Can I reinitialise the PARI system and keep going? If the program crashes all computations
> would be in vain.
> best regards,
> SÃren