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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3829 r3844  
    195195        (map-into exponents1 #'+ exponents1 exponents2)))
    196196    self)
    197   (:method ((self number) (other term))
    198     (reinitialize-instance other :coeff (multiply self (term-coeff other))))
    199197  (:method ((self term) (other number))
    200198    (reinitialize-instance self :coeff (multiply (term-coeff self) other))))
     
    556554              exponents coeff))))
    557555
     556(defmethod multiply-by ((self number) (other term))
     557  (reinitialize-instance other :coeff (multiply self (term-coeff other))))
     558
    558559(defun make-term-constant (dimension &optional (coeff 1))
    559560  (make-instance 'term :dimension dimension :coeff coeff))
Note: See TracChangeset for help on using the changeset viewer.