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 4277


Ignore:
Timestamp:
2016-06-04T21:08:42-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r4276 r4277  
    673673          (error "Cannot evaluate as polynomial: ~A" expr)))))))
    674674
    675 (defgeneric make-zero-for (self)
    676   (:method ((self number)) 0)
    677   (:method ((self poly))
    678     (make-instance 'poly :dimension (poly-dimension self))))
    679 
    680 (defgeneric make-unit-for (self)
    681   (:method ((self number)) 1)
    682   (:method ((self poly))
    683     (make-poly-constant (poly-dimension self) 1)))
     675(defmethod make-zero-for ((self poly))
     676  (make-instance 'poly :dimension (poly-dimension self)))
     677
     678(defmethod make-unit-for ((self poly))
     679  (make-poly-constant (poly-dimension self) 1))
    684680
    685681(defgeneric poly-reverse (self)
Note: See TracChangeset for help on using the changeset viewer.