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 3514


Ignore:
Timestamp:
2015-09-05T11:45:33-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3513 r3514  
    119119 
    120120(defgeneric poly-equalp (self other)
    121   (:documentation "POLY instances are POLY-EQUALP if they have the same
    122 order and if their terms are equal."
    123 
     121  (:documentation "Implements equality of polynomials.")
    124122  (:method ((self poly) (other poly))
    125   (and (every #'r-equalp (poly-termlist self) (poly-termlist other))
    126        (eq (poly-term-order self) (poly-term-order other))))
    127 
     123    (and (eql (poly-dimension self) (poly-dimension other))
     124         (every #'r-equalp (poly-termlist self) (poly-termlist other))
     125         (eq (poly-term-order self) (poly-term-order other)))))
    128126
    129127;; Leading term
Note: See TracChangeset for help on using the changeset viewer.