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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3584 r3585  
    228228      (every #'<= exponents1 exponents2))))
    229229
    230 (defmethod monom-divides-lcm-p ((m1 monom) (m2 monom) (m3 monom))
    231   "Returns T if monomial M1 divides LCM(M2,M3), NIL otherwise."
    232   (every #'(lambda (x y z) (<= x (max y z)))
    233          m1 m2 m3))
    234 
    235 (defmethod monom-lcm-divides-lcm-p ((m1 monom) (m2 monom) (m3 monom) (m4 monom))
    236   "Returns T if monomial MONOM-LCM(M1,M2) divides MONOM-LCM(M3,M4), NIL otherwise."
    237   (declare (type monom m1 m2 m3 m4))
     230(defgeneric divides-lcm-p (object1 object2 object3)
     231  (:documentation "Returns T if OBJECT1 divides LCM(OBJECT2,OBJECT3), NIL otherwise."
     232  (:method ((m1 monom) (m2 monom) (m3 monom))
     233    "Returns T if monomial M1 divides LCM(M2,M3), NIL otherwise."
     234    (every #'(lambda (x y z) (<= x (max y z)))
     235           m1 m2 m3)))
     236
     237(defgeneric lcm-divides-lcm-p ((m1 monom) (m2 monom) (m3 monom) (m4 monom))
     238  "Returns T if monomial LCM(M1,M2) divides LCM(M3,M4), NIL otherwise."
    238239  (every #'(lambda (x y z w) (<= (max x y) (max z w)))
    239240         m1 m2 m3 m4))
Note: See TracChangeset for help on using the changeset viewer.