- Timestamp:
- 2015-06-09T11:51:26-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monomial.lisp
r873 r874 159 159 (every #'= (monom-exponents m1) (monom-exponents m2))) 160 160 161 (defun monom-lcm (m1 m2 &aux (result (copy-seq uencem1)))161 (defun monom-lcm (m1 m2 &aux (result (copy-seq m1))) 162 162 "Returns least common multiple of monomials M1 and M2." 163 163 (map-into result #'max m1 m2)) 164 164 165 (defun monom-gcd (m1 m2 &aux (result (copy-seq uencem1)))165 (defun monom-gcd (m1 m2 &aux (result (copy-seq m1))) 166 166 "Returns greatest common divisor of monomials M1 and M2." 167 167 (map-into result #'min m1 m2)) … … 171 171 (plusp (monom-elt m k))) 172 172 173 (defmacro monom-map (fun m &rest ml &aux (result `(copy-seq uence,m)))173 (defmacro monom-map (fun m &rest ml &aux (result `(copy-seq ,m))) 174 174 `(map-into ,result ,fun ,m ,@ml)) 175 175
Note:
See TracChangeset
for help on using the changeset viewer.