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 2319


Ignore:
Timestamp:
2015-06-18T19:43:48-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2314 r2319  
    228228(defmethod r-lcm ((m1 monom) (m2 monom))
    229229  "Returns least common multiple of monomials M1 and M2."
    230   (with-slots ((exponents1 exponents))
     230  (with-slots ((exponents1 exponents) (dimension1 dimension))
    231231      m1
    232232    (with-slots ((exponents2 exponents))
    233233        m2
    234234      (let* ((exponents (copy-seq exponents1))
    235              (dimension (reduce #'+ exponents)))
     235             (dimension dimension1))
    236236        (map-into exponents #'max exponents1 exponents2)
    237237        (make-instance 'monom :dimension dimension :exponents exponents)))))
Note: See TracChangeset for help on using the changeset viewer.