Changeset 3557 for branches/f4grobner
- Timestamp:
- 2015-09-05T16:42:37-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3556 r3557 213 213 (universal-multiply-by (copy-instance object1) (copy-instance object2)))) 214 214 215 (defgeneric multiply (&rest factors) 216 (:documentation "Non-destructively divide object NUMERATOR by product of DENOMINATORS.") 217 (:method ((numerator monom) &rest denominators) 218 (reduce #'multiply-2 factors))) 219 220 (defgeneric divide (numerator &rest denominators) 221 (:documentation "Non-destructively divide object NUMERATOR by product of DENOMINATORS.") 222 (:method ((numerator monom) &rest denominators) 223 (divide-by (copy-instance numerator) (reduce #'multiply-2 denominators)))) 215 (defun multiply (&rest factors) 216 "Non-destructively multiply list FACTORS." 217 (reduce #'multiply-2 factors)) 218 219 (defun divide (numerator &rest denominators) 220 "Non-destructively divide object NUMERATOR by product of DENOMINATORS." 221 (divide-by (copy-instance numerator) (reduce #'multiply-2 denominators))) 224 222 225 223 (defmethod monom-divides-p ((m1 monom) (m2 monom))
Note:
See TracChangeset
for help on using the changeset viewer.