Function: math-exp-series
math-exp-series is a byte-compiled function defined in
calc-math.el.gz.
Signature
(math-exp-series SUM NFAC N XPOW X)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
(defun math-exp-series (sum nfac n xpow x)
(math-working "exp" sum)
(let* ((nextx (math-mul-float xpow x))
(nextsum (math-add-float sum (math-div-float nextx
(math-float nfac)))))
(if (math-nearly-equal-float sum nextsum)
sum
(math-exp-series nextsum (math-mul nfac n) (1+ n) nextx x))))