Changeset 2043 for branches/f4grobner
- Timestamp:
- 2015-06-17T18:19:37-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/ring.lisp
r2042 r2043 130 130 131 131 132 (defgeneric total-degree (object)) 133 (defmethod ring-divides-p (object1 object2)) 132 (defgeneric total-degree (object) 133 (:method ((object integer)) 134 (error "Integer has no degree"))) 134 135 135 (defgeneric sugar (object)) 136 (defmethod ring-divides-p (object1 object2) 137 (:method ((object1 integer) (object2 integer)) 138 (zerop (remainder object2 object1)))) 136 139 140 (defgeneric sugar (object) 141 (:method ((object integer)) 0)) 142
Note:
See TracChangeset
for help on using the changeset viewer.