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


Ignore:
Timestamp:
2015-06-17T19:02:21-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2063 r2064  
    140140    (reduce #'+ exponents :start start :end end)))
    141141
     142#|
     143
    142144(defmethod sugar ((m monom) &aux (start 0) (end (dimension m)))
    143145  "Return the sugar of a monomial M. Optinally, a range
    144146of variables may be specified with arguments START and END."
    145147  (declare (type fixnum start end))
    146   (total-degree m start end))
     148  (with-slots (exponents)
     149      m
     150    (total-degree exponents start end)))
    147151
    148152(defmethod ring-mul ((m1 monom) (m2 monom))  &aux (result (copy-seq m1)))
Note: See TracChangeset for help on using the changeset viewer.