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


Ignore:
Timestamp:
2016-06-01T10:28:08-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r4093 r4095  
    244244
    245245(defun divide (numerator &rest denominators)
    246   "Non-destructively divide object NUMERATOR by product of DENOMINATORS."
     246  "Successively divides NUMERATOR by elements of DENOMINATORS."
    247247  (cond ((endp denominators)
    248248         (unary-inverse numerator))
    249         (t (divide-by (copy-instance numerator) (apply #'multiply denominators)))))
     249        (t (reduce #'divide-by denominators :initial-value numerator))))
    250250
    251251(defgeneric divides-p (object1 object2)
Note: See TracChangeset for help on using the changeset viewer.