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


Ignore:
Timestamp:
2015-06-21T09:26:30-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2818 r2819  
    167167
    168168(defmethod r/ ((m1 monom) (m2 monom))
    169   "Divide monomial M1 by monomial M2."
    170   (with-slots ((exponents1 exponents) (dimension1 dimension))
    171       m1
    172     (with-slots ((exponents2 exponents))
    173         m2
    174       (let* ((exponents (copy-seq exponents1))
    175              (dimension dimension1))
    176         (map-into exponents #'- exponents1 exponents2)
    177         (make-instance 'monom :dimension dimension :exponents exponents)))))
     169  "Non-destructively divide monomial M1 by monomial M2."
     170  (divide-by (monom-clone m1) (monom-clone m2)))
    178171
    179172(defmethod r-divides-p ((m1 monom) (m2 monom))
Note: See TracChangeset for help on using the changeset viewer.