Richard Fateman writes:
>I haven't tried it, but presumably (sqcont 2) returns a list
>beginninng (1 ....) . Maxima doesn't know how to simplify or
>display such a list, and that is where the error comes from.
>
>You might write
>(defun $sqcont (n) (cons '((mlist)) (sqcont n)))
>
>and see if that does the job. (if sqcont returns a list of numbers, it should)
Actually, it doesn't seem to, but I might have introduced the definition
incorrectly. I put the above line in a file named sqcont.lisp and then
executed load("sqcont.lisp"); in Maxima. However, Raymond Toy's answer to
CY's question about lispstructure(a*b/(c*d));, namely:
>I usually just do something like:
>(%i4) a*b/(c*d)$
>(%i5) :lisp $%o4
>((MTIMES SIMP) $A $B ((MEXPT SIMP) $C -1) ((MEXPT SIMP) $D -1))
seemed to work for this:
(C1) :lisp (sqcont 2)
(1 2)
So, Richard's diagnosis of the problem was correct.
--
Ignorantly,
Allan Adler
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.