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 3092 for branches


Ignore:
Timestamp:
2015-06-21T23:23:42-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3091 r3092  
    5454            (poly-term-order self) (poly-term-order other)))
    5555    self))
     56
     57(defun alist->poly (alist &aux (make-instance 'poly))
     58  "Read a polynomial from an alist formatted as ( ... (exponents . coeff) ...).
     59Returns an object of clas POLY."
     60  (dolist (x alist)
     61    (insert-item p (make-instance 'term :exponents (car x) :coeff (cdr x))))
     62
    5663
    5764(defmethod r-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.