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 3317


Ignore:
Timestamp:
2015-06-23T10:01:33-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3315 r3317  
    9595        (setf (slot-value self 'exponents)
    9696              (make-array (list dimension) :initial-element (if exponent-supplied-p exponent 0)
    97                           :element-type 'exponent))))
    98       (t 
    99        (error "Initarg DIMENSION must be supplied if EXPONENT is supplied.")))))
     97                          :element-type 'exponent)))
     98       (t 
     99        (error "Initarg DIMENSION must be supplied if EXPONENT is supplied."))))))
     100
     101(defmethod monom-dimension ((m monom))
     102  (length (monom-exponents m)))
    100103
    101104(defmethod r-equalp ((m1 monom) (m2 monom))
Note: See TracChangeset for help on using the changeset viewer.