Changeset 16
- Timestamp:
- 2012-06-05T12:52:15-07:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grobner.lisp
r15 r16 2039 2039 2040 2040 (defun coerce-to-maxima (poly-type object vars) 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))) 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)))) 2052 2053 2053 2054
Note:
See TracChangeset
for help on using the changeset viewer.