- Timestamp:
- 2015-06-09T11:47:42-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monomial.lisp
r868 r869 138 138 (defun monom-divides-p (m1 m2) 139 139 "Returns T if monomial M1 divides monomial M2, NIL otherwise." 140 (declare (type monom m1 m2))141 140 (every #'<= (monom-exponents m1) (monom-exponents m2))) 142 141 143 142 (defun monom-divides-monom-lcm-p (m1 m2 m3) 144 143 "Returns T if monomial M1 divides MONOM-LCM(M2,M3), NIL otherwise." 145 (declare (type monom m1 m2 m3))146 144 (every #'(lambda (x y z) (declare (type exponent x y z)) (<= x (max y z))) 147 (monom-exponents m1) 148 (monom-exponents m2) 149 (monom-exponents m3))) 145 m1 m2 m3)) 150 146 151 147 (defun monom-lcm-divides-monom-lcm-p (m1 m2 m3 m4) 152 148 "Returns T if monomial MONOM-LCM(M1,M2) divides MONOM-LCM(M3,M4), NIL otherwise." 153 149 (declare (type monom m1 m2 m3 m4)) 154 (every #'(lambda (x y z w) (declare (type exponent x y z w)) (<= (max x y) (max z w))) 155 (monom-exponents m1) 156 (monom-exponents m2) 157 (monom-exponents m3) 158 (monom-exponents m4))) 150 (every #'(lambda (x y z w) (<= (max x y) (max z w))) 151 m1 m2 m3 m4)) 152 159 153 160 154 (defun monom-lcm-equal-monom-lcm-p (m1 m2 m3 m4) 161 155 "Returns T if monomial MONOM-LCM(M1,M2) equals MONOM-LCM(M3,M4), NIL otherwise." 162 (declare (type monom m1 m2 m3 m4)) 163 (every #'(lambda (x y z w) (declare (type exponent x y z w)) (= (max x y) (max z w))) 164 (monom-exponents m1) 165 (monom-exponents m2) 166 (monom-exponents m3) 167 (monom-exponents m4))) 156 (every #'(lambda (x y z w) (= (max x y) (max z w))) 157 m1 m2 m3 m4)) 158 168 159 169 160 (defun monom-divisible-by-p (m1 m2) 170 161 "Returns T if monomial M1 is divisible by monomial M2, NIL otherwise." 171 (declare (type monom m1 m2)) 172 (every #'>= (monom-exponents m1) (monom-exponents m2))) 162 (every #'>= m1 m2)) 173 163 174 164 (defun monom-rel-prime-p (m1 m2)
Note:
See TracChangeset
for help on using the changeset viewer.