close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 1807 for branches/f4grobner


Ignore:
Timestamp:
2015-06-15T12:46:25-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/mx-grobner.lisp

    r1806 r1807  
    373373
    374374(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))))
    376382  "Define a MAXIMA-level unary operator MAXIMA-NAME corresponding to unary function FUN-NAME."
    377383  `(defmfun ,maxima-name (p vars)
    378384     ,@(when documentation-supplied-p (list documentation))
    379385     (with-ring-and-order ((vars) :polynomials (p) :value-type :polynomial)
    380        (,fun-name ring-and-order p))))
     386       (,fun-name ,env-arg p))))
    381387
    382388(defmacro define-binop ((maxima-name fun-name)
Note: See TracChangeset for help on using the changeset viewer.