Function: math-to-radians

math-to-radians is an autoloaded and byte-compiled function defined in calc-math.el.gz.

Signature

(math-to-radians A)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
;;;; Transcendental functions.

;; All of these functions are defined on the complex plane.
;; (Branch cuts, etc. follow Steele's Common Lisp book.)

;; Most functions increase calc-internal-prec by 2 digits, then round
;; down afterward.  "-raw" functions use the current precision, require
;; their arguments to be in float (or complex float) format, and always
;; work in radians (where applicable).

(defun math-to-radians (a)   ; [N N]
  (cond ((eq (car-safe a) 'hms)
	 (math-from-hms a 'rad))
	((and (not math-simplifying-units)
              (memq calc-angle-mode '(deg hms)))
	 (math-mul a (math-pi-over-180)))
	(t a)))