Function: calcFunc-arctan
calcFunc-arctan is an autoloaded and byte-compiled function defined in
calc-math.el.gz.
Signature
(calcFunc-arctan X)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
(defun calcFunc-arctan (x) ; [N N] [Public]
(cond ((eq x 0) 0)
((and (eq x 1) (eq calc-angle-mode 'deg)) 45)
((and (eq x -1) (eq calc-angle-mode 'deg)) -45)
((Math-numberp x)
(math-with-extra-prec 2
(math-from-radians (math-arctan-raw (math-float x)))))
((eq (car x) 'sdev)
(math-make-sdev (calcFunc-arctan (nth 1 x))
(math-from-radians
(math-div (nth 2 x)
(math-add 1 (math-sqr (nth 1 x)))))))
((eq (car x) 'intv)
(math-sort-intv (nth 1 x)
(calcFunc-arctan (nth 2 x))
(calcFunc-arctan (nth 3 x))))
((equal x '(var inf var-inf))
(math-quarter-circle t))
((equal x '(neg (var inf var-inf)))
(math-neg (math-quarter-circle t)))
((equal x '(var nan var-nan))
x)
(t (calc-record-why 'numberp x)
(list 'calcFunc-arctan x))))