close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 2043 for branches/f4grobner


Ignore:
Timestamp:
2015-06-17T18:19:37-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/ring.lisp

    r2042 r2043  
    130130
    131131
    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")))
    134135
    135 (defgeneric sugar (object))
     136(defmethod ring-divides-p (object1 object2)
     137  (:method ((object1 integer) (object2 integer))
     138    (zerop (remainder object2 object1))))
    136139
     140(defgeneric sugar (object)
     141  (:method ((object integer)) 0))
     142
Note: See TracChangeset for help on using the changeset viewer.