Function: math-choose-iter

math-choose-iter is a byte-compiled function defined in calc-comb.el.gz.

Signature

(math-choose-iter M N I C)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-comb.el.gz
(defun math-choose-iter (m n i c)
  (while (<= i m)
    (when (and (= (% i 5) 1) (> i 5))
      (math-working (format "choose(%d)" (1- i)) c))
    (setq c (math-quotient (math-mul c n) i))
    (setq n (1- n))
    (setq i (1+ i)))
  c)