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 3126


Ignore:
Timestamp:
2015-06-22T10:11:44-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3123 r3126  
    6060
    6161(defun alist->poly (alist &aux (poly (make-instance 'poly)))
    62   "It reads polynomial from an alist formatted as ( ... (exponents . coeff) ...)."
     62  "It reads polynomial from an alist formatted as ( ... (exponents . coeff) ...).
     63It can be used to enter simple polynomials by hand, e.g the polynomial
     64in two variables, X and Y, given in standard notation as:
     65
     66      3*X^2*Y^3+2*Y+7
     67
     68can be entered as
     69(ALIST->POLY '(((2 3) . 3) ((0 1) . 2) ((0 0) . 7))).
     70
     71NOTE: The primary use is for low-level debugging of the package."
    6372  (dolist (x alist poly)
    6473    (insert-item poly (make-instance 'term :exponents (car x) :coeff (cdr x)))))
Note: See TracChangeset for help on using the changeset viewer.