Errors in the testsuite



On 3/30/10 3:01 PM, Dieter Kaiser wrote:
> I get errors in testsuite with the current CVS version. The error is
> triggered in the routine res after a call from the routine unitcir.
>
> This is a trace for the functions unitcir and res for one example:
>
> (%i8) integrate(1/(2+cos(x)),x,0,%pi);
>   0: (UNITCIR
>       ((MTIMES SIMP) 2
>        ((MEXPT SIMP)
>         ((MPLUS SIMP) 1 ((MTIMES SIMP RATSIMP) 4 YY)
>          ((MEXPT SIMP RATSIMP) YY 2))
>         -1))
>       YY)
>     1: (RES 2
>             ((MPLUS SIMP) 1 ((MTIMES SIMP RATSIMP) 4 YY)
>              ((MEXPT SIMP RATSIMP) YY 2))
>             #<FUNCTION (LAMBDA #) {B20D885}> #<FUNCTION (LAMBDA #)
> {B20D9ED}>)
> Maxima encountered a Lisp error:
>
>  The value $NEG is not of type LIST.
>   
Although I sometimes forget to run the testsuite, I did run the
testsuite before checking in this change.  I ran it again and cmucl and
clozure cl both handle the integrals just fine.

The backtrace above seems to indicate that the error is in RES.  But RES
doesn't call region or region1.  

Can you run it again but start maxima with the -g flag so you get dumped
into the Lisp debugger?  That will produce a better backtrace and
perhaps also give the offending source line.

Sorry for the trouble,

Ray