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 3568 for branches


Ignore:
Timestamp:
2015-09-05T16:50:05-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3567 r3568  
    289289  (:documentation "Returns GCD of objects OBJECT1 and OBJECT2")
    290290  (:method ((m1 monom) (m2 monom))
    291   "Returns greatest common divisor of monomials M1 and M2."
    292   (with-slots ((exponents1 exponents))
    293       m1
    294     (with-slots ((exponents2 exponents))
    295         m2
    296       (let* ((exponents (copy-seq exponents1)))
    297         (map-into exponents #'min exponents1 exponents2)
    298         (make-instance 'monom :exponents exponents)))))
     291    "Returns greatest common divisor of monomials M1 and M2."
     292    (with-slots ((exponents1 exponents))
     293        m1
     294      (with-slots ((exponents2 exponents))
     295          m2
     296        (let* ((exponents (copy-seq exponents1)))
     297          (map-into exponents #'min exponents1 exponents2)
     298          (make-instance 'monom :exponents exponents))))))
    299299
    300300(defmethod monom-depends-p ((m monom) k)
Note: See TracChangeset for help on using the changeset viewer.