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


Ignore:
Timestamp:
2015-06-17T19:28:14-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2078 r2079  
    222222
    223223
    224 (defun monom-equal-p (m1 m2)
     224(defmethod equal-p ((m1 monom) (m2 monom))
    225225  "Returns T if two monomials M1 and M2 are equal."
    226   (declare (type monom m1 m2))
    227   (every #'= m1 m2))
     226  (with-slots (exponents1 exponents)
     227      m1
     228    (with-slots (exponents2 exponents)
     229        m2
     230      (every #'= exponents1 exponents2))))
    228231
    229232(defun monom-lcm (m1 m2 &aux (result (copy-seq m1)))
Note: See TracChangeset for help on using the changeset viewer.