- Timestamp:
- 2016-06-06T13:02:31-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r4337 r4338 622 622 623 623 624 (defun poly-eval (expr vars order )624 (defun poly-eval (expr vars order &optional (coefficient-ring 'rational-field)) 625 625 "Evaluate Lisp form EXPR to a polynomial or a list of polynomials in 626 626 variables VARS. Return the resulting polynomial or list of … … 638 638 (let ((pos (position expr vars :test #'equalp))) 639 639 (make-poly-variable (length vars) pos))) 640 ((integerp expr) 641 (make-poly-constant (length vars) (make-instance 'integer-ring :value expr))) 642 ((rationalp expr) 640 ((numberp expr) 643 641 (make-poly-constant (length vars) (make-instance 'rational-field :value expr))) 644 642 ((eq (car expr) +list-marker+)
Note:
See TracChangeset
for help on using the changeset viewer.