Changeset 4026 for branches/f4grobner
- Timestamp:
- 2016-05-31T15:27:21-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r4025 r4026 616 616 self 617 617 (assert (= (length vars) (length exponents)) 618 (vars exponents)618 nil 619 619 "Variables ~A and exponents ~A must have the same length." vars exponents))) 620 620 (:method ((self monom) &optional vars) … … 627 627 (t (list `(expt ,var ,power))))) 628 628 vars (coerce exponents 'list)))) 629 (print m)630 629 (cond ((endp m) 1) 631 630 ((endp (cdr m)) (car m)) … … 638 637 self 639 638 (let ((m (call-next-method))) 640 (print m) 641 (cond ;;((= coeff 1) m) 642 ;;((eql (car m) '*) (list* '* coeff (cdr m))) 639 (cond ((= coeff 1) m) 640 ((eql (car m) '*) (list* '* coeff (cdr m))) 643 641 (t 644 642 (list* '* coeff m)))
Note:
See TracChangeset
for help on using the changeset viewer.