Changeset 4048 for branches/f4grobner
- Timestamp:
- 2016-05-31T17:09:58-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/division.lisp
r1965 r4048 45 45 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 46 46 47 (defun grobner-op (ring-and-order c1 c2 m f g 48 &aux 49 (ring (ro-ring ring-and-order))) 47 (defun grobner-op (c1 c2 m f g) 50 48 "Returns C2*F-C1*M*G, where F and G are polynomials M is a monomial. 51 49 Assume that the leading terms will cancel." … … 53 51 (type monom m) 54 52 (type poly f g)) 55 #+grobner-check( funcall (ring-zerop ring)56 (funcall (ring-sub ring)57 (funcall (ring-mul ring) c2 (poly-lcf))58 (funcall (ring-mul ring) c1 (poly-lcg))))53 #+grobner-check(universal-zerop 54 (subtract 55 (multiply c2 (leading-coefficient f)) 56 (multiply c1 (leading-coefficient g)))) 59 57 #+grobner-check(monom-equal-p (poly-lm f) (monom-mul m (poly-lm g))) 60 58 ;; Note that below we can drop the leading terms of f ang g for the
Note:
See TracChangeset
for help on using the changeset viewer.