summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-09-26 21:11:05 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-09-26 21:11:05 -0400
commit2c470b2b570484ead8402e062bf42538b021a1d2 (patch)
tree1ba0b171478fd490ab621151e59000e6b354b995
parent11a5fa552c9fe39f0978a3df2aeb59cb171f37cf (diff)
math: Add 2pi constant.
* sly/math.scm (2pi): New variable.
-rw-r--r--sly/math.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/sly/math.scm b/sly/math.scm
index 0f7ede3..4169ae4 100644
--- a/sly/math.scm
+++ b/sly/math.scm
@@ -23,7 +23,7 @@
;;; Code:
(define-module (sly math)
- #:export (pi pi/2
+ #:export (pi 2pi pi/2
degrees->radians
radians->degrees
sin-degrees
@@ -61,6 +61,7 @@
;; 817488 152092096
;;
(define pi 3.141592654)
+(define 2pi (* pi 2))
(define pi/2 (/ pi 2))
(define (degrees->radians angle)