| 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 |
Sören, trap() function may help as it traps errors and allow to resume calculations. Regards, Max On Mon, Dec 10, 2012 at 8:28 PM, Sören Lennart Berg <soeren.berg@st.ovgu.de> 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