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 728 for branches


Ignore:
Timestamp:
2015-06-08T20:34:37-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monomial.lisp

    r727 r728  
    102102of variables may be specified with arguments START and END."
    103103  (declare (type monom m) (fixnum start end))
    104   (reduce #'+ m :start start :end end))
     104  (reduce #'+ (monom-exponents m) :start start :end end))
    105105
    106106(defun monom-sugar (m &aux (start 0) (end (length m)))
     
    108108of variables may be specified with arguments START and END."
    109109  (declare (type monom m) (fixnum start end))
    110   (monom-total-degree m start end))
     110  (monom-total-degree (monom-exponents m) start end))
    111111
    112 (defun monom-div (m1 m2 &aux (result (copy-seq m1)))
     112(defun monom-div (m1 m2 &aux (result (copy-seq (monom-exponents m1))))
    113113  "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)))
    116117
    117118(defun monom-mul (m1 m2  &aux (result (copy-seq m1)))
Note: See TracChangeset for help on using the changeset viewer.