- Timestamp:
- 2015-06-15T12:46:25-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/mx-grobner.lisp
r1806 r1807 373 373 374 374 (defmacro define-unop ((maxima-name fun-name &key (env :ring-and-order)) 375 &optional (documentation nil documentation-supplied-p)) 375 &optional 376 (documentation nil documentation-supplied-p) 377 &aux 378 ;; The argument passed as first arg 379 (env-arg (ecase env 380 (:ring-and-order 'ring-and-order) 381 (:ring 'ring)))) 376 382 "Define a MAXIMA-level unary operator MAXIMA-NAME corresponding to unary function FUN-NAME." 377 383 `(defmfun ,maxima-name (p vars) 378 384 ,@(when documentation-supplied-p (list documentation)) 379 385 (with-ring-and-order ((vars) :polynomials (p) :value-type :polynomial) 380 (,fun-name ring-and-orderp))))386 (,fun-name ,env-arg p)))) 381 387 382 388 (defmacro define-binop ((maxima-name fun-name)
Note:
See TracChangeset
for help on using the changeset viewer.