Bill Allombert on Sat, 04 Dec 2010 22:52:56 +0100


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

Re: Question regarding error()


On Fri, Nov 26, 2010 at 02:28:46PM -0500, Jeff wrote:
> PARI users,
> 
> Iâve started using PARI for class, and although I like it, it has its 
> quirks.  Can you help with this?

Maybe you are complaining about the following behaviour:

? a
%1 = a
? a=1
%2 = 1
? a=2;1/0
  ***   division by zero
? a
%3 = a

On the three possible values for %3 (a, 1  or 2), GP has always returned the first one.
However a case could be made for returning 1 instead.

Cheers,
Bill.