- Timestamp:
- 2016-05-31T13:12:11-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r4017 r4021 577 577 (:method ((self t)) nil)) 578 578 579 (defmethod -> infix:before ((self poly) &optional vars)579 (defmethod ->sexp :before ((self poly) &optional vars) 580 580 "Ensures that the number of variables in VARS maches the polynomial dimension of the 581 581 polynomial SELF." 582 582 (assert (= (length vars) (poly-dimension self)))) 583 583 584 (defmethod -> infix((self poly) &optional vars)584 (defmethod ->sexp ((self poly) &optional vars) 585 585 "Converts a polynomial SELF to a sexp." 586 (cons '+ (mapcar #'(lambda (x) (-> infixx vars))586 (cons '+ (mapcar #'(lambda (x) (->sexp x vars)) 587 587 (poly-termlist self)))) 588 588 … … 590 590 "A sexp with this head is considered a list of polynomials.") 591 591 592 (defmethod -> infix((self cons) &optional vars)592 (defmethod ->sexp ((self cons) &optional vars) 593 593 (assert (eql (car self) +list-marker+)) 594 (cons +list-marker+ (mapcar #'(lambda (p) (-> infixp vars)) (cdr self))))594 (cons +list-marker+ (mapcar #'(lambda (p) (->sexp p vars)) (cdr self)))) 595 595 596 596
Note:
See TracChangeset
for help on using the changeset viewer.