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