Changeset 3845 for branches/f4grobner
- Timestamp:
- 2016-05-28T12:33:22-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3844 r3845 211 211 (error "divide-by: Negative power would result.")) 212 212 (map-into exponents1 #'- exponents1 exponents2))) 213 self) 214 (:method ((self term) (other number)) 215 (reinitialize-instance self :coeff (divide (term-coeff self) other)))) 213 self)) 216 214 217 215 (defmethod copy-instance :around ((object monom) &rest initargs &key &allow-other-keys) … … 557 555 (reinitialize-instance other :coeff (multiply self (term-coeff other)))) 558 556 557 (defmethod divide-by ((self term) (other number)) 558 (reinitialize-instance self :coeff (divide (term-coeff self) other))) 559 559 560 (defun make-term-constant (dimension &optional (coeff 1)) 560 561 (make-instance 'term :dimension dimension :coeff coeff))
Note:
See TracChangeset
for help on using the changeset viewer.