>>>>> "Robert" == Robert Dodier <robert.dodier at gmail.com> writes:
Robert> On 2/1/07, Barton Willis <willisb at unk.edu> wrote:
>> 156*x^7+4808*x^6-182041*x^5-1266489*x^4+43104271*x^3+29839285*x^2-2542327662*x+7826952672
>>
>> (%i8) factor(%);
>> Maxima encountered a Lisp error:
>> Error in MACSYMA-TOP-LEVEL [or a callee]: Bind stack overflow.
Robert> CMUCL 0.19a + Maxima 5.9.1 says "NIL is not of type FIXNUM" here.
Robert> A fixnum overflow or an integer that's not a fixnum? Just guessing.
Robert> Here's a partial stack trace --
Robert> 0: (POINTERGP NIL #:|x1627|)
Robert> 1: (PDEGREE (#:|x1627| 7 156 6 4808 ...) NIL)
Robert> 2: (PDEGREE 2 (#:|x1627| 7 156 6 4808 ...) NIL)[:EXTERNAL]
Robert> 3: (PFACTORALG1 (#:|x1627| 7 156 6 4808 ...) (NIL) 0)
Robert> 4: (PFACTORALG1 3 (#:|x1627| 7 156 6 4808 ...) (NIL) 0)[:EXTERNAL]
Robert> 5: (NALGFAC (#:|x1627| 7 156 6 4808 ...) (NIL))
Robert> 6: (FACT5 #<unavailable-arg>)
Robert> 7: (FACTOR72 (#:|x1627| 7 156 6 4808 ...))
I looked through the backtrace a bit, and it some confusion in fact5.
The second arg to nalgfac is supposed to be a list of the variable(s)
in the polynomial, but it is passed '(nil). Because of this, the
third arg to pdegree is NIL, instead of the variable in the
polynomial.
At least that's what seems to be the problem. I don't understand the
factorization algorithm, so I can't really say more.
Ray