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


Ignore:
Timestamp:
2015-06-19T10:58:07-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/term.lisp

    r2424 r2477  
    8787    result))
    8888
     89(defmethod multiply-by ((self term) (other monom))
     90  "Returns the product of the terms TERM1 and TERM2,
     91or NIL when the product is 0. This definition takes care of divisors of 0
     92in the coefficient ring."
     93  (let ((result (change-class (call-next-method) 'term)))
     94    (setf (r-coeff self) (multiply-by (r-coeff self) (r-coeff other)))
     95    result))
     96
    8997#|
    9098
Note: See TracChangeset for help on using the changeset viewer.