- Timestamp:
- 2016-05-31T12:03:18-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3876 r4009 623 623 (:method ((self term) &optional vars) 624 624 "Convert a term SELF to infix form, using variable VARS to build the representation." 625 (declare (ignore vars)) 625 626 (with-slots (exponents coeff) 626 627 self 627 (list* '* coeff 628 (mapcan #'(lambda (var power) 629 (cond ((= power 0) nil) 630 ((= power 1) (list var)) 631 (t (list `(expt ,var ,power))))) 632 vars (coerce exponents 'list)))))) 628 (let ((m (call-next-method))) 629 (cond ((= coeff 1) m) 630 (t (setf (cdr m) (cons coeff (cdr m))))) 631 m))))
Note:
See TracChangeset
for help on using the changeset viewer.