1 // get the coefficient of x^n in polynomial p(x)
13 push(cadr(p1
)); // 1st arg, p
16 push(caddr(p1
)); // 2nd arg, x
19 push(cadddr(p1
)); // 3rd arg, n
26 if (N
== symbol(NIL
)) { // only 2 args?
31 push(P
); // divide p by x^n
37 push(X
); // keep the constant part
41 //-----------------------------------------------------------------------------
43 // Put polynomial coefficients on the stack
49 // Output: Returns number of coefficients on stack
51 // tos-n Coefficient of x^0
53 // tos-1 Coefficient of x^(n-1)
55 //-----------------------------------------------------------------------------
86 if (equal(p1
, zero
)) {