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


Ignore:
Timestamp:
2015-09-05T16:42:37-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3556 r3557  
    213213    (universal-multiply-by (copy-instance object1) (copy-instance object2))))
    214214
    215 (defgeneric multiply (&rest factors)
    216   (:documentation "Non-destructively divide object NUMERATOR by product of DENOMINATORS.")
    217   (:method ((numerator monom) &rest denominators)
    218     (reduce #'multiply-2 factors)))
    219 
    220 (defgeneric divide (numerator &rest denominators)
    221   (:documentation "Non-destructively divide object NUMERATOR by product of DENOMINATORS.")
    222   (:method ((numerator monom) &rest denominators)
    223     (divide-by (copy-instance numerator) (reduce #'multiply-2 denominators))))
     215(defun multiply (&rest factors)
     216  "Non-destructively multiply list FACTORS."
     217  (reduce #'multiply-2 factors))
     218
     219(defun divide (numerator &rest denominators)
     220  "Non-destructively divide object NUMERATOR by product of DENOMINATORS."
     221  (divide-by (copy-instance numerator) (reduce #'multiply-2 denominators)))
    224222
    225223(defmethod monom-divides-p ((m1 monom) (m2 monom))
Note: See TracChangeset for help on using the changeset viewer.