comparison lisp/float-sup.el @ 444:576fb035e263 r21-2-37

Import from CVS: tag r21-2-37
author cvs
date Mon, 13 Aug 2007 11:36:19 +0200
parents 41ff10fd062f
children 308d34e9f07d
comparison
equal deleted inserted replaced
443:a8296e22da4e 444:576fb035e263
36 ;; XEmacs change 36 ;; XEmacs change
37 (or (featurep 'lisp-float-type) 37 (or (featurep 'lisp-float-type)
38 (error "Floating point was disabled at compile time")) 38 (error "Floating point was disabled at compile time"))
39 39
40 ;; define pi and e via math-lib calls. (much less prone to killer typos.) 40 ;; define pi and e via math-lib calls. (much less prone to killer typos.)
41 ;; XEmacs change (purecopy) 41 (defconst pi (* 4 (atan 1)) "The value of Pi (3.1415926...)")
42 (defconst pi (purecopy (* 4 (atan 1))) "The value of Pi (3.1415926...)") 42 (defconst e (exp 1) "The value of e (2.7182818...)")
43 (defconst e (purecopy (exp 1)) "The value of e (2.7182818...)")
44 43
45 ;; Careful when editing this file ... typos here will be hard to spot. 44 ;; Careful when editing this file ... typos here will be hard to spot.
46 ;; (defconst pi 3.14159265358979323846264338327 45 ;; (defconst pi 3.14159265358979323846264338327
47 ;; "The value of Pi (3.14159265358979323846264338327...)") 46 ;; "The value of Pi (3.14159265358979323846264338327...)")
48 47
49 ;; XEmacs change (purecopy) 48 (defconst degrees-to-radians (/ pi 180.0)
50 (defconst degrees-to-radians (purecopy (/ pi 180.0))
51 "Degrees to radian conversion constant") 49 "Degrees to radian conversion constant")
52 (defconst radians-to-degrees (purecopy (/ 180.0 pi)) 50 (defconst radians-to-degrees (/ 180.0 pi)
53 "Radian to degree conversion constant") 51 "Radian to degree conversion constant")
54 52
55 ;; these expand to a single multiply by a float when byte compiled 53 ;; these expand to a single multiply by a float when byte compiled
56 54
57 (defmacro degrees-to-radians (x) 55 (defmacro degrees-to-radians (x)