Changeset 4382
- Timestamp:
- 2016-06-06T19:58:39-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/ring.lisp
r4381 r4382 108 108 returned as the value of this function.") 109 109 (:method ((summand t) &rest more-summands) 110 "The default implementation of ADD." 110 111 (reduce #'add-to more-summands :initial-value (copy-instance summand)))) 111 112 … … 116 117 this function.") 117 118 (:method ((minuend t) &rest subtrahends) 119 "The default implementation of SUBTRACT." 118 120 (cond ((endp subtrahends) (unary-minus (copy-instance minuend))) 119 121 (t (reduce #'subtract-from subtrahends :initial-value (copy-instance minuend)))))) … … 124 126 Instead, a copy of factor should be made and returned as the value of this function.") 125 127 (:method ((factor t) &rest more-factors) 128 "The default implementation of MULTIPLY." 126 129 (reduce #'multiply-by more-factors :initial-value (copy-instance factor)))) 127 130 … … 130 133 should not modify the NUMERATOR. Instead, a copy of factor should be made and returned as the value of this function.") 131 134 (:method ((numerator t) &rest denominators) 135 "The default implementation of DIVIDE." 132 136 (cond ((endp denominators) 133 137 (unary-inverse (copy-instance numerator)))
Note:
See TracChangeset
for help on using the changeset viewer.