summaryrefslogtreecommitdiff
path: root/sly/math.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-06-29 17:50:11 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-06-29 17:50:11 -0400
commita836ff8926768d7ab4393fc4b99344515d681814 (patch)
tree4bace1eb26ee41ffba1520f2d3bbb7aa1d369be7 /sly/math.scm
parent64eabfdff82631e34170810a7be8ebf89341eb33 (diff)
Add pi/2 variable.
* sly/math.scm (pi/2): New variable.
Diffstat (limited to 'sly/math.scm')
-rw-r--r--sly/math.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/sly/math.scm b/sly/math.scm
index 8f7ce71..073a399 100644
--- a/sly/math.scm
+++ b/sly/math.scm
@@ -22,7 +22,7 @@
;;; Code:
(define-module (sly math)
- #:export (pi
+ #:export (pi pi/2
degrees->radians
radians->degrees
sin-degrees
@@ -57,6 +57,7 @@
;; 817488 152092096
;;
(define pi 3.141592654)
+(define pi/2 (/ pi 2))
(define (degrees->radians angle)
"Convert ANGLE in degrees to radians."