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


Ignore:
Timestamp:
2015-09-05T17:08:55-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3585 r3586  
    233233    "Returns T if monomial M1 divides LCM(M2,M3), NIL otherwise."
    234234    (every #'(lambda (x y z) (<= x (max y z)))
    235            m1 m2 m3)))
     235           exponents1 exponents2 exponents3)))
    236236
    237237(defgeneric lcm-divides-lcm-p ((m1 monom) (m2 monom) (m3 monom) (m4 monom))
    238238  "Returns T if monomial LCM(M1,M2) divides LCM(M3,M4), NIL otherwise."
    239   (every #'(lambda (x y z w) (<= (max x y) (max z w)))
    240          m1 m2 m3 m4))
     239  (with-slots ((exponents1 exponents))
     240      m1
     241    (with-slots ((exponents2 exponents))
     242        m2
     243      (with-slots ((exponents3 exponents))
     244          m3
     245        (every #'(lambda (x y z w) (<= (max x y) (max z w)))
     246               m1 m2 m3)))))
    241247         
    242248(defmethod monom-lcm-equal-lcm-p ((m1 monom) (m2 monom) (m3 monom) (m4 monom))
Note: See TracChangeset for help on using the changeset viewer.