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


Ignore:
Timestamp:
2015-06-08T20:41:47-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monomial.lisp

    r735 r736  
    170170  (every #'= (monom-exponents m1) (monom-exponents m2)))
    171171
    172 (defun monom-lcm (m1 m2 &aux (result (copy-seq m1)))
     172(defun monom-lcm (m1 m2 &aux (result (copy-structure m1)))
    173173  "Returns least common multiple of monomials M1 and M2."
    174174  (declare (type monom m1 m2))
    175   (map-into result #'max m1 m2))
     175  (map-into (monom-exponents result) #'max
     176            (monom-exponents m1)
     177            (monom-exponents m2)))
    176178
    177179(defun monom-gcd (m1 m2 &aux (result (copy-seq m1)))
Note: See TracChangeset for help on using the changeset viewer.