- Timestamp:
- 2016-05-28T13:08:20-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3848 r3849 229 229 (t (reduce #'multiply-2 factors :initial-value 1)))) 230 230 231 (defgeneric divide (numerator &rest denominators) 232 (:documentation "Non-destructively divide object NUMERATOR by product of DENOMINATORS.") 233 (:method ((numerator t) &rest denominators) 234 (cond ((endp denominators) 235 (divide-by 1 numerator)) 236 (t (divide-by (copy-instance numerator) (apply #'multiply denominators)))))) 231 (defun divide (numerator &rest denominators) 232 "Non-destructively divide object NUMERATOR by product of DENOMINATORS." 233 (cond ((endp denominators) 234 (divide-by 1 numerator)) 235 (t (divide-by (copy-instance numerator) (apply #'multiply denominators)))))) 237 236 238 237 (defgeneric divides-p (object1 object2)
Note:
See TracChangeset
for help on using the changeset viewer.