- Timestamp:
- 2015-06-17T15:57:29-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2032 r2034 146 146 (monom-total-degree m start end)) 147 147 148 (def un monom-div (m1 m2 &aux (result (copy-seq m1)))148 (defmethod ring-div ((m1 monom) (m2 monom)) 149 149 "Divide monomial M1 by monomial M2." 150 (declare (type monom m1 m2 result)) 151 (map-into result #'- m1 m2)) 152 150 (with-slots (exponents1 exponents) 151 m1 152 (with-slots (exponents2 exponents2) 153 m2 154 (let* ((exponents (copy-seq exponents1)) 155 (dim (reduce #+ exponents))) 156 (map-into result #'- exponents1 exponents2) 157 (make-instance 'monom :dim dim :exponents exponents))))) 158 159 #| 153 160 (defun monom-mul (m1 m2 &aux (result (copy-seq m1))) 154 161 "Multiply monomial M1 by monomial M2."
Note:
See TracChangeset
for help on using the changeset viewer.