Function: math-nlfit-b-logistic-grad
math-nlfit-b-logistic-grad is a byte-compiled function defined in
calc-nlfit.el.gz.
Signature
(math-nlfit-b-logistic-grad X A C D)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-nlfit.el.gz
(defun math-nlfit-b-logistic-grad (x a c d)
(let* ((ex (calcFunc-exp (math-mul c (math-sub x d))))
(ex1 (math-add 1 ex))
(xd (math-sub x d)))
(list
(math-div
ex
(math-sqr ex1))
(math-sub
(math-div
(math-mul a (math-mul xd ex))
(math-sqr ex1))
(math-div
(math-mul 2 (math-mul a (math-mul xd (math-sqr ex))))
(math-pow ex1 3)))
(math-sub
(math-div
(math-mul 2 (math-mul a (math-mul c (math-sqr ex))))
(math-pow ex1 3))
(math-div
(math-mul a (math-mul c ex))
(math-sqr ex1))))))