Function: calcFunc-syd
calcFunc-syd is an autoloaded and byte-compiled function defined in
calc-fin.el.gz.
Signature
(calcFunc-syd COST SALVAGE LIFE PERIOD)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-fin.el.gz
(defun calcFunc-syd (cost salvage life period)
(or (math-realp cost) math-expand-formulas
(math-reject-arg cost 'realp))
(or (math-realp salvage) math-expand-formulas
(math-reject-arg salvage 'realp))
(or (math-realp life) math-expand-formulas
(math-reject-arg life 'realp))
(if (math-zerop life) (math-reject-arg life 'nonzerop))
(or (math-realp period) math-expand-formulas
(math-reject-arg period 'realp))
(if (or (Math-lessp life period) (not (math-posp period)))
0
(math-div (math-mul (math-sub cost salvage)
(math-add (math-sub life period) 1))
(math-div (math-mul life (math-add life 1)) 2))))