summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/math.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/sly/math.scm b/sly/math.scm
index 8dc5cbf..55d176e 100644
--- a/sly/math.scm
+++ b/sly/math.scm
@@ -32,7 +32,8 @@
atan-degrees
cotan
clamp
- linear-scale))
+ linear-scale
+ half))
;; Dave was editing this module on Pi Approximation Day.
;;
@@ -102,3 +103,6 @@ actually less than MAX."
(+ a
(/ (* (- b a) (- n min))
(- max min))))
+
+(define (half x)
+ (/ x 2))