Function: calcFunc-cosh
calcFunc-cosh is an autoloaded and byte-compiled function defined in
calc-math.el.gz.
Signature
(calcFunc-cosh X)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
(defun calcFunc-cosh (x) ; [N N] [Public]
(cond ((eq x 0) 1)
(math-expand-formulas
(math-normalize
(list '/ (list '+ (list 'calcFunc-exp x)
(list 'calcFunc-exp (list 'neg x))) 2)))
((Math-numberp x)
(if calc-symbolic-mode (signal 'inexact-result nil))
(math-with-extra-prec 2
(let ((expx (math-exp-raw (math-float x))))
(math-mul (math-add expx (math-div 1 expx)) '(float 5 -1)))))
((eq (car-safe x) 'sdev)
(math-make-sdev (calcFunc-cosh (nth 1 x))
(math-mul (nth 2 x)
(calcFunc-sinh (nth 1 x)))))
((and (eq (car x) 'intv) (math-intv-constp x))
(setq x (math-abs x))
(math-sort-intv (nth 1 x)
(calcFunc-cosh (nth 2 x))
(calcFunc-cosh (nth 3 x))))
((or (equal x '(var inf var-inf))
(equal x '(neg (var inf var-inf)))
(equal x '(var nan var-nan)))
(math-abs x))
(t (calc-record-why 'numberp x)
(list 'calcFunc-cosh x))))