Changeset 728 for branches/f4grobner
- Timestamp:
- 2015-06-08T20:34:37-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monomial.lisp
r727 r728 102 102 of variables may be specified with arguments START and END." 103 103 (declare (type monom m) (fixnum start end)) 104 (reduce #'+ m:start start :end end))104 (reduce #'+ (monom-exponents m) :start start :end end)) 105 105 106 106 (defun monom-sugar (m &aux (start 0) (end (length m))) … … 108 108 of variables may be specified with arguments START and END." 109 109 (declare (type monom m) (fixnum start end)) 110 (monom-total-degree mstart end))110 (monom-total-degree (monom-exponents m) start end)) 111 111 112 (defun monom-div (m1 m2 &aux (result (copy-seq m1)))112 (defun monom-div (m1 m2 &aux (result (copy-seq (monom-exponents m1)))) 113 113 "Divide monomial M1 by monomial M2." 114 (declare (type monom m1 m2 result)) 115 (map-into result #'- m1 m2)) 114 (declare (type monom m1 m2)) 115 (map-into result #'- m1 m2) 116 (make-monom (monom-dimension result))) 116 117 117 118 (defun monom-mul (m1 m2 &aux (result (copy-seq m1)))
Note:
See TracChangeset
for help on using the changeset viewer.