- Timestamp:
- 2015-06-10T20:33:30-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/division.lisp
r491 r1176 44 44 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 45 45 46 (defun grobner-op (ring c1 c2 m f g) 46 (defun grobner-op (ring-and-order c1 c2 m f g 47 &aux 48 (ring (ro-ring ring-and-order))) 47 49 "Returns C2*F-C1*M*G, where F and G are polynomials M is a monomial. 48 50 Assume that the leading terms will cancel." … … 53 55 #+grobner-check(monom-equal-p (poly-lm f) (monom-mul m (poly-lm g))) 54 56 ;; Note that we can drop the leading terms of f ang g 55 (poly-sub ring 57 (poly-sub ring-and-order 56 58 (scalar-times-poly-1 ring c2 f) 57 59 (scalar-times-poly-1 ring c1 (monom-times-poly m g)))) … … 182 184 case in rings which are not fields. The exact division operator 183 185 is assumed to be provided by the RING structure of the 184 COEFFICIENT-RING package."186 lCOEFFICIENT-RING package." 185 187 (mapc #'(lambda (term) 186 188 (setf (term-coeff term) (funcall (ring-div ring) (term-coeff term) c)))
Note:
See TracChangeset
for help on using the changeset viewer.