Function: math-tan-raw
math-tan-raw is an autoloaded and byte-compiled function defined in
calc-math.el.gz.
Signature
(math-tan-raw X)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
(defun math-tan-raw (x) ; [N N]
(cond ((eq (car x) 'cplx)
(let* ((x (math-mul x '(float 2 0)))
(expx (math-exp-raw (nth 2 x)))
(expmx (math-div-float '(float 1 0) expx))
(sc (math-sin-cos-raw (nth 1 x)))
(d (math-add-float (cdr sc)
(math-mul-float (math-add-float expx expmx)
'(float 5 -1)))))
(and (not (eq (nth 1 d) 0))
(list 'cplx
(math-div-float (car sc) d)
(math-div-float (math-mul-float (math-sub-float expx
expmx)
'(float 5 -1)) d)))))
((eq (car x) 'polar)
(math-polar (math-tan-raw (math-complex x))))
(t
(let ((sc (math-sin-cos-raw x)))
(if (eq (nth 1 (cdr sc)) 0)
(math-div (car sc) 0)
(math-div-float (car sc) (cdr sc)))))))