close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 3906


Ignore:
Timestamp:
2016-05-29T14:48:43-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3905 r3906  
    567567  (cons '+ (mapcar #'(lambda (x) (->infix x vars))
    568568                   (poly-termlist self))))
    569  
    570569
    571570(defparameter +list-marker+ :[
    572571  "A sexp with this head is considered a list of polynomials.")
     572
     573(defmethod ->infix ((self cons) &optional vars)
     574  (assert (eql (car self) +list-marker+))
     575  (cons '+ (mapcar #'(lambda (p) (->infix p vars)) (cdr self))))
     576
    573577
    574578(defun poly-eval (expr vars order)
Note: See TracChangeset for help on using the changeset viewer.