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


Ignore:
Timestamp:
2016-05-28T12:36:07-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3845 r3846  
    194194          (error "Incompatible dimensions"))
    195195        (map-into exponents1 #'+ exponents1 exponents2)))
    196     self)
    197   (:method ((self term) (other number))
    198     (reinitialize-instance self :coeff (multiply (term-coeff self) other))))
     196    self))
    199197
    200198(defgeneric divide-by (self other)
     
    555553  (reinitialize-instance other :coeff (multiply self (term-coeff other))))
    556554
     555(defmethod multiply-by ((self term) (other number))
     556  (reinitialize-instance self :coeff (multiply (term-coeff self) other)))
     557
    557558(defmethod divide-by ((self term) (other number))
    558559  (reinitialize-instance self :coeff (divide (term-coeff self) other)))
Note: See TracChangeset for help on using the changeset viewer.