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
|
- To: SÃren Lennart Berg <soeren.berg@st.ovgu.de>
- Subject: Re: Prevent PARI from determining program
- From: Max Alekseyev <maxale@gmail.com>
- Date: Mon, 10 Dec 2012 19:36:18 +0300
- Cc: "pari-users@pari.math.u-bordeaux.fr" <pari-users@pari.math.u-bordeaux.fr>
- Delivery-date: Mon, 10 Dec 2012 17:36:26 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=O7zl01pXGmU7f2tq8yxh0bUluAYIFDIFxddn9Pv2BIg=; b=vK/1S+kUwkvu5zucreBTSZWBCAai/g+QH21sAOsPs0N8g6fkMzQ6m6kE6yCvBIpB7G hpZJbpo7Y8ju0Bgp4xqVjtH1kY64MV0wZT0F/82MUV6Pbi1OhljEhJRKArD8ac5k+1wp M+zU4Ug1EFpx8Dd0Yc9oNTubRTz+7ZxXWD+Yq7gr36EOKVDGle8Zzu2GiWcYvm8UKl3x oDOCfVnWSa2fPmNUlu3QQPEbzbqLZiKGB43hiw0lAm76ibYfxi2vlc2C+h4dNgDWF4iI P3l99v4/sd56qxksdRbh9NmyISl0RI/W7SaernUILHefgXnikPCGl+fa/su4t2ICLanz wQug==
- In-reply-to: <A24B1EF8-8662-4A5D-A2E6-ACA85CDBE82C@st.ovgu.de>
- References: <A24B1EF8-8662-4A5D-A2E6-ACA85CDBE82C@st.ovgu.de>
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