Changeset 1809
- Timestamp:
- 2015-06-15T12:50:28-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/mx-grobner.lisp
r1808 r1809 372 372 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 373 373 374 (defmacro define-unop ((maxima-name fun-name &key (env :ring-and-order))374 (defmacro define-unop ((maxima-name fun-name (&rest args) &key (env :ring-and-order)) 375 375 &optional 376 376 (documentation nil documentation-supplied-p) … … 381 381 (:ring 'ring)))) 382 382 "Define a MAXIMA-level unary operator MAXIMA-NAME corresponding to unary function FUN-NAME." 383 `(defmfun ,maxima-name ( pvars)383 `(defmfun ,maxima-name (,@args vars) 384 384 ,@(when documentation-supplied-p (list documentation)) 385 (with-ring-and-order ((vars) :polynomials ( p) :value-type :polynomial)386 (,fun-name ,env-arg p))))385 (with-ring-and-order ((vars) :polynomials (,@args) :value-type :polynomial) 386 (,fun-name ,env-arg ,@args p)))) 387 387 388 388 (defmacro define-binop ((maxima-name fun-name)
Note:
See TracChangeset
for help on using the changeset viewer.