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 3800


Ignore:
Timestamp:
2016-05-27T22:30:30-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3799 r3800  
    222222(defun multiply (&rest factors)
    223223  "Non-destructively multiply list FACTORS."
    224   (reduce #'multiply-2 factors :initial-value 1))
     224  (cond ((endp factors) 1)
     225        ((endp (rest factors)) (first factors))
     226        (t (reduce #'multiply-2 factors :initial-value 1))))
    225227
    226228(defun divide (numerator &rest denominators)
Note: See TracChangeset for help on using the changeset viewer.