summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)