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 3528


Ignore:
Timestamp:
2015-09-05T15:13:02-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3527 r3528  
    148148  (:documentation "The leading coefficient of a polynomial. It signals error for a zero polynomial."))
    149149
    150 ;; Second coefficient
     150;; Leading monomial
     151(defgeneric poly-leading-monomial (object)
     152  (:method ((self poly))
     153    (car (poly-leading-term self)))
     154  (:documentation "The leading monomial of a polynomial. It signals error for a zero polynomial."))
     155
     156;; Second leading coefficient
    151157(defgeneric second-leading-coefficient (object)
    152158  (:method ((self poly))
    153159    (cdr (poly-second-leading-term self)))
    154160  (:documentation "The second leading coefficient of a polynomial. It
     161  signals error for a polynomial with at most one term."))
     162
     163;; Second leading coefficient
     164(defgeneric second-leading-monomial (object)
     165  (:method ((self poly))
     166    (car (poly-second-leading-term self)))
     167  (:documentation "The second leading monomial of a polynomial. It
    155168  signals error for a polynomial with at most one term."))
    156169
Note: See TracChangeset for help on using the changeset viewer.