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 2818


Ignore:
Timestamp:
2015-06-21T09:25:58-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2817 r2818  
    152152  self)
    153153
     154(defmethod divide-by ((self monom) (other monom))
     155  (with-slots ((exponents1 exponents) (dimension1 dimension))
     156      self
     157    (with-slots ((exponents2 exponents) (dimension2 dimension))
     158        other
     159      (unless (= dimension1 dimension2)
     160        (error "Incompatible dimensions: ~A and ~A.~%" dimension1 dimension2))
     161      (map-into exponents1 #'- exponents1 exponents2)))
     162  self)
     163
    154164(defmethod r* ((m1 monom) (m2 monom))
    155165  "Non-destructively multiply monomial M1 by M2."
Note: See TracChangeset for help on using the changeset viewer.