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 1789 for branches/f4grobner


Ignore:
Timestamp:
2015-06-15T11:34:24-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1788 r1789  
    409409     (poly->maxima
    410410      ,value-type
    411       (symbol-macrolet ((,ring-and-order-var ,(find-ring-and-order-by-name))
    412                         (,ring-var (ro-ring ring-and-order)))
    413         (let ,(let ((args nil))
    414                    (dolist (p polynomials args)
    415                      (setf args (cons `(,p (maxima->poly ,p ,vars ,ring-and-order-var)) args)))
    416                    (dolist (p poly-lists args)
    417                      (setf args (cons `(,p (maxima->poly-list ,p ,vars ,ring-and-order-var)) args)))
    418                    (dolist (p poly-list-lists args)
    419                      (setf args (cons `(,p (maxima->poly-list-list ,p ,vars ,ring-and-order-var)) args))))
    420           . ,body))
     411      (let ((,ring-and-order-var ,(find-ring-and-order-by-name)))
     412        ;; Define a shorthand to RING
     413        (symbol-macrolet (,ring-var (ro-ring ring-and-order))
     414          (let ,(let ((args nil))
     415                     (dolist (p polynomials args)
     416                       (setf args (cons `(,p (maxima->poly ,p ,vars ,ring-and-order-var)) args)))
     417                     (dolist (p poly-lists args)
     418                       (setf args (cons `(,p (maxima->poly-list ,p ,vars ,ring-and-order-var)) args)))
     419                     (dolist (p poly-list-lists args)
     420                       (setf args (cons `(,p (maxima->poly-list-list ,p ,vars ,ring-and-order-var)) args))))
     421            . ,body)))
    421422      ,(if new-vars-supplied-p
    422423           `(append ,vars ,new-vars)
Note: See TracChangeset for help on using the changeset viewer.