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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3844 r3845  
    211211          (error "divide-by: Negative power would result."))
    212212        (map-into exponents1 #'- exponents1 exponents2)))
    213   self)
    214   (:method ((self term) (other number))
    215     (reinitialize-instance self :coeff (divide (term-coeff self) other))))
     213  self))
    216214
    217215(defmethod copy-instance :around ((object monom)  &rest initargs &key &allow-other-keys)
     
    557555  (reinitialize-instance other :coeff (multiply self (term-coeff other))))
    558556
     557(defmethod divide-by ((self term) (other number))
     558  (reinitialize-instance self :coeff (divide (term-coeff self) other)))
     559
    559560(defun make-term-constant (dimension &optional (coeff 1))
    560561  (make-instance 'term :dimension dimension :coeff coeff))
Note: See TracChangeset for help on using the changeset viewer.