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


Ignore:
Timestamp:
2015-06-08T20:40:20-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monomial.lisp

    r732 r733  
    147147  "Returns T if monomial MONOM-LCM(M1,M2) equals MONOM-LCM(M3,M4), NIL otherwise."
    148148  (declare (type monom m1 m2 m3 m4))
    149   (every #'(lambda (x y z w) (declare (type exponent x y z w)) (= (max x y) (max z w))) m1 m2 m3 m4))
     149  (every #'(lambda (x y z w) (declare (type exponent x y z w)) (= (max x y) (max z w)))
     150         (monom-exponents m1)
     151         (monom-exponents m2)
     152         (monom-exponents m3)
     153         (monom-exponents m4)))
    150154
    151155(defun monom-divisible-by-p (m1 m2)
    152156  "Returns T if monomial M1 is divisible by monomial M2, NIL otherwise."
    153157  (declare (type monom m1 m2))
    154    (every #'>= m1 m2))
     158   (every #'>= (monom-exponents m1) (monom-exponents m2)))
    155159
    156160(defun monom-rel-prime-p (m1 m2)
Note: See TracChangeset for help on using the changeset viewer.