- Timestamp:
- 2015-06-21T09:26:30-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2818 r2819 167 167 168 168 (defmethod r/ ((m1 monom) (m2 monom)) 169 "Divide monomial M1 by monomial M2." 170 (with-slots ((exponents1 exponents) (dimension1 dimension)) 171 m1 172 (with-slots ((exponents2 exponents)) 173 m2 174 (let* ((exponents (copy-seq exponents1)) 175 (dimension dimension1)) 176 (map-into exponents #'- exponents1 exponents2) 177 (make-instance 'monom :dimension dimension :exponents exponents))))) 169 "Non-destructively divide monomial M1 by monomial M2." 170 (divide-by (monom-clone m1) (monom-clone m2))) 178 171 179 172 (defmethod r-divides-p ((m1 monom) (m2 monom))
Note:
See TracChangeset
for help on using the changeset viewer.