- Timestamp:
- 2015-06-17T18:51:01-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2054 r2055 132 132 (setf (elt exponents index) new-value))) 133 133 134 (defmethod ring-total-degree ((m monom) &optional (start 0) (end (dimension m)))134 (defmethod total-degree ((m monom) &optional (start 0) (end (dimension m))) 135 135 "Return the todal degree of a monomoal M. Optinally, a range 136 136 of variables may be specified with arguments START and END." … … 146 146 (monom-total-degree m start end)) 147 147 148 (defmethod m onom-mul ((m1 monom) (m2 monom)) &aux (result (copy-seq m1)))148 (defmethod 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 monom-div ((m1 monom) (m2 monom))159 (defmethod 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 (defmethod monom-divides-p ((m1 monom) (m2 monom))170 (defmethod divides-p ((m1 monom) (m2 monom)) 171 171 "Returns T if monomial M1 divides monomial M2, NIL otherwise." 172 172 (with-slots ((exponents1 exponents)) … … 176 176 (every #'<= exponents1 exponents2)))) 177 177 178 #| 179 180 (defun monom-divides-monom-lcm-p (m1 m2 m3) 181 "Returns T if monomial M1 divides MONOM-LCM(M2,M3), NIL otherwise." 182 (declare (type monom m1 m2 m3)) 178 (defmethod divides-lcm-p ((m1 monom) (m2 monom) (m3 monom)) 179 "Returns T if monomial M1 divides LCM(M2,M3), NIL otherwise." 183 180 (every #'(lambda (x y z) (<= x (max y z))) 184 181 m1 m2 m3)) 185 186 182 187 183
Note:
See TracChangeset
for help on using the changeset viewer.