14 if (p1
== symbol(NIL
))
22 // returns constant expresions on the stack
32 // is the entire expression constant?
34 if (find(p1
, p2
) == 0) {
36 //push(p1); // may need later for pushing both +a, -a
52 if (car(p1
) == symbol(MULTIPLY
)) {
58 // naive decomp if not sum or product
76 // decomp terms involving x
81 if (find(car(p3
), p2
)) {
89 // add together all constant terms
96 if (find(car(p3
), p2
) == 0)
106 negate(); // need both +a, -a for some integrals
115 // decomp factors involving x
120 if (find(car(p3
), p2
)) {
128 // multiply together all constant factors
135 if (find(car(p3
), p2
) == 0)
141 multiply_all(tos
- h
);
142 //p3 = pop(); // may need later for pushing both +a, -a