Changeset 17
- Timestamp:
- 2012-06-05T12:53:09-07:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grobner.lisp
r16 r17 2039 2039 2040 2040 (defun coerce-to-maxima (poly-type object vars) 2041 ($ratdisrep 2042 (case poly-type 2043 (:polynomial 2044 `(,(maxima-head) ,@(mapcar #'(lambda (term) (coerce-to-maxima :term term vars)) (poly-termlist object)))) 2045 (:poly-list 2046 `((mlist) ,@(mapcar #'(lambda (p) (coerce-to-maxima :polynomial p vars)) object))) 2047 (:term 2048 `((mtimes) ,(term-coeff object) 2049 ,@(mapcar #'(lambda (var power) `((mexpt) ,var ,power)) 2050 vars (monom-exponents (term-monom object))))) 2051 (otherwise 2052 object)))) 2041 (case poly-type 2042 (:polynomial 2043 `(,(maxima-head) ,@(mapcar #'(lambda (term) (coerce-to-maxima :term term vars)) (poly-termlist object)))) 2044 (:poly-list 2045 `((mlist) ,@(mapcar #'(lambda (p) (coerce-to-maxima :polynomial p vars)) object))) 2046 (:term 2047 `((mtimes) ,(term-coeff object) 2048 ,@(mapcar #'(lambda (var power) `((mexpt) ,var ,power)) 2049 vars (monom-exponents (term-monom object))))) 2050 (otherwise 2051 object))) 2053 2052 2054 2053
Note:
See TracChangeset
for help on using the changeset viewer.