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


Ignore:
Timestamp:
2016-05-27T23:44:21-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3807 r3808  
    191191          (error "Incompatible dimensions"))
    192192        (map-into exponents1 #'+ exponents1 exponents2)))
    193     self))
     193    self)
     194  (:method ((self number) (other term))
     195    (reinitialize-instance other :coeff (multiply self (term-coeff other)))))
    194196
    195197(defgeneric divide-by (self other)
     
    206208          (error "divide-by: Negative power would result."))
    207209        (map-into exponents1 #'- exponents1 exponents2)))
    208   self))
     210  self)
     211  (:method ((self term) (other number))
     212    (reinitialize-instance self :coeff (multiply (term-coeff self) other))))
    209213
    210214(defmethod copy-instance :around ((object monom)  &rest initargs &key &allow-other-keys)
Note: See TracChangeset for help on using the changeset viewer.