Changeset 2063
- Timestamp:
- 2015-06-17T19:00:41-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2055 r2063 144 144 of variables may be specified with arguments START and END." 145 145 (declare (type fixnum start end)) 146 ( monom-total-degree m start end))147 148 (defmethod mul ((m1 monom) (m2 monom)) &aux (result (copy-seq m1)))146 (total-degree m start end)) 147 148 (defmethod ring-mul ((m1 monom) (m2 monom)) &aux (result (copy-seq m1))) 149 149 "Multiply monomial M1 by monomial M2." 150 150 (with-slots ((exponents1 exponents)) … … 157 157 (make-instance 'monom :dim dim :exponents exponents))))) 158 158 159 (defmethod div ((m1 monom) (m2 monom))159 (defmethod ring-div ((m1 monom) (m2 monom)) 160 160 "Divide monomial M1 by monomial M2." 161 161 (with-slots ((exponents1 exponents)) … … 168 168 (make-instance 'monom :dim dim :exponents exponents))))) 169 169 170 #| 170 171 (defmethod divides-p ((m1 monom) (m2 monom)) 171 172 "Returns T if monomial M1 divides monomial M2, NIL otherwise." … … 176 177 (every #'<= exponents1 exponents2)))) 177 178 179 180 178 181 (defmethod divides-lcm-p ((m1 monom) (m2 monom) (m3 monom)) 179 182 "Returns T if monomial M1 divides LCM(M2,M3), NIL otherwise." 180 183 (every #'(lambda (x y z) (<= x (max y z))) 181 184 m1 m2 m3)) 185 186 182 187 183 188
Note:
See TracChangeset
for help on using the changeset viewer.