Bill Allombert on Fri, 22 Nov 2002 20:55:09 +0100


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

Re: trap() help


> 1) Which section should I see (note ?? above)
> 2) I wanna trap all pari errors, but at the same time I don't wanna
> trap ^C.  Is it possible?

I do not believe so...

> 3) If it's not, I wanna trap just the following error:
> 
> ? galoisinit(x^3-1)
>   ***   galoisinit: field not Galois or Galois group not weakly super solvable.

In this case there is a work-around:

install(galoisconj4,"GDGD1,L,D0,L,");

and use
galoisconj4 instead of galoisinit.
galoisconj4 output an integer when galoisinit fails.

Cheers,
Bill.