Function: math-sin-raw-2
math-sin-raw-2 is a byte-compiled function defined in calc-math.el.gz.
Signature
(math-sin-raw-2 X ORGX)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
(defun math-sin-raw-2 (x orgx) ; This avoids poss of inf recursion. [F F]
(let ((xmpo2 (math-sub-float (math-pi-over-2) x)))
(cond ((Math-integer-negp (nth 1 xmpo2))
(math-neg-float (math-sin-raw-2 (math-sub-float x (math-pi))
orgx)))
((math-lessp-float (math-pi-over-4) x)
(math-cos-raw-2 xmpo2 orgx))
((math-lessp-float x (math-neg (math-pi-over-4)))
(math-neg (math-cos-raw-2 (math-add (math-pi-over-2) x) orgx)))
((math-with-extra-prec -1 (math-nearly-zerop-float x orgx))
'(float 0 0))
((math-use-emacs-fn 'sin x))
(calc-symbolic-mode (signal 'inexact-result nil))
(t (math-sin-series x 6 4 x (math-neg-float (math-sqr-float x)))))))