- Timestamp:
- 2016-05-31T18:01:24-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r4036 r4053 54 54 "MAKE-POLY-VARIABLE" 55 55 "MAKE-POLY-CONSTANT" 56 "MAKE-ZERO-FOR" 57 "MAKE-UNIT-FOR" 56 58 "UNIVERSAL-EXPT" 57 59 "UNIVERSAL-EQUALP" … … 607 609 (let ((m (mapcar #'(lambda (x) (->sexp x vars)) 608 610 (poly-termlist self)))) 609 (con s((endp m) 0)611 (cond ((endp m) 0) 610 612 ((endp (cdr m)) (car m)) 611 613 (t (cons '+ m))))) … … 670 672 (otherwise 671 673 (error "Cannot evaluate as polynomial: ~A" expr))))))) 674 675 (defgeneric make-zero-for (self) 676 (:method ((self poly)) 677 (make-instance 'poly :dimension (poly-dimension self)))) 678 679 (defgeneric make-unit-for (self) 680 (:method ((self poly)) 681 (make-poly-constant (poly-dimension self) 1))) 682
Note:
See TracChangeset
for help on using the changeset viewer.