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 3656 for branches/f4grobner


Ignore:
Timestamp:
2015-09-05T21:26:21-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3655 r3656  
    143143  (:documentation "The second leading term of a polynomial, or NIL for a polynomial with at most one term."))
    144144
     145(defgeneric leading-monomial (object)
     146  (:method ((self poly))
     147    (change-class (copy-instance (leading-term self)) 'monom))
     148  (:documentation "The leading monomial of a polynomial, or NIL for zero polynomial."))
     149
     150(defgeneric second-leading-monomial (object)
     151  (:method ((self poly))
     152    (change-class (copy-instance (second-leading-term self)) 'monom))
     153  (:documentation "The leading monomial of a polynomial, or NIL for zero polynomial."))
     154
     155
     156
    145157(defgeneric leading-coefficient (object)
    146158  (:method ((self poly))
    147159    (term-coeff (leading-term self)))
    148160  (:documentation "The leading coefficient of a polynomial. It signals error for a zero polynomial."))
    149 
    150161
    151162(defgeneric second-leading-coefficient (object)
Note: See TracChangeset for help on using the changeset viewer.