Function: math-compute-irr

math-compute-irr is a byte-compiled function defined in calc-fin.el.gz.

Signature

(math-compute-irr VECS FUNC)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-fin.el.gz
(defun math-compute-irr (vecs func)
  (let* ((flat (math-flatten-many-vecs vecs))
	 (root (math-find-root (list func
				     '(var DUMMY var-DUMMY)
				     flat)
			       '(var DUMMY var-DUMMY)
			       '(intv 3 (float 1 -4) 1)
			       t)))
    (if (math-vectorp root)
	(nth 1 root)
      root)))