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


Ignore:
Timestamp:
2015-09-05T21:59:48-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3667 r3668  
    554554  (setf (term-coeff self) (multiply-by (term-coeff self) (term-coeff other))))
    555555
    556 (defmethod multiply-by :before ((self term) (other monom))
     556(defmethod multiply-by :before ((self term) (other number))
    557557  "Destructively multiply terms SELF and OTHER and store the result into SELF.
    558558It returns SELF."
    559   (call-next-method))
     559  (setf (term-coeff self) (multiply-by (term-coeff self) other)))
     560
    560561
    561562(defmethod multiply-by :before ((self term) other)
Note: See TracChangeset for help on using the changeset viewer.