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.

Ignore:
Timestamp:
2015-06-10T06:51:35-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/parse.lisp

    r1019 r1020  
    250250                     (rest poly-or-poly-list))))
    251251   (t (sort-poly-1 poly-or-poly-list order))))
     252
     253;; Return the standard basis of the monomials in n variables
     254(defun variable-basis (ring n &aux (basis (make-list n)))
     255  "Generate a list of monomials ((1 0 ... 0) (0 1 0 ... 0) ... (0 0 ... 1)
     256which correspond to linear monomials X1, X2, ... XN."
     257  (dotimes (i n basis)
     258    (setf (elt basis i) (make-variable ring n i))))
    252259
    253260(defun poly-eval-1 (ring-and-order expr vars
     
    323330
    324331
    325 ;; Return the standard basis of the monomials in n variables
    326 (defun variable-basis (ring n &aux (basis (make-list n)))
    327   "Generate a list of monomials ((1 0 ... 0) (0 1 0 ... 0) ... (0 0 ... 1)
    328 which correspond to linear monomials X1, X2, ... XN."
    329   (dotimes (i n basis)
    330     (setf (elt basis i) (make-variable ring n i))))
Note: See TracChangeset for help on using the changeset viewer.