Changeset 377 for branches/f4grobner
- Timestamp:
- 2015-06-06T17:59:29-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/term.lisp
r186 r377 77 77 (term-coeff term))) 78 78 p)) 79 80 (defun term-mul (ring term1 term2) 81 "Returns the product of the terms TERM1 and TERM2, 82 or NIL when the product is 0. This definition takes care of divisors of 0 83 in the coefficient ring." 84 (let ((c (funcall (ring-mul ring) (term-coeff term1) (term-coeff term2)))) 85 (unless (funcall (ring-zerop ring) c) 86 (list (make-term (monom-mul (term-monom term1) (term-monom term2)) c)))))
Note:
See TracChangeset
for help on using the changeset viewer.