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 377 for branches/f4grobner


Ignore:
Timestamp:
2015-06-06T17:59:29-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/term.lisp

    r186 r377  
    7777                         (term-coeff term)))
    7878          p))
     79
     80(defun term-mul (ring term1 term2)
     81  "Returns the product of the terms TERM1 and TERM2,
     82or NIL when the product is 0. This definition takes care of divisors of 0
     83in 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.