Changeset 2319
- Timestamp:
- 2015-06-18T19:43:48-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2314 r2319 228 228 (defmethod r-lcm ((m1 monom) (m2 monom)) 229 229 "Returns least common multiple of monomials M1 and M2." 230 (with-slots ((exponents1 exponents) )230 (with-slots ((exponents1 exponents) (dimension1 dimension)) 231 231 m1 232 232 (with-slots ((exponents2 exponents)) 233 233 m2 234 234 (let* ((exponents (copy-seq exponents1)) 235 (dimension (reduce #'+ exponents)))235 (dimension dimension1)) 236 236 (map-into exponents #'max exponents1 exponents2) 237 237 (make-instance 'monom :dimension dimension :exponents exponents)))))
Note:
See TracChangeset
for help on using the changeset viewer.