diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-08-01 07:26:15 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-08-01 07:26:15 -0400 |
commit | 06d9fc69fdf0988aceea64fa2310c22deddb107d (patch) | |
tree | f45dc6c8c46015c77870b593460a8b61c790f06b | |
parent | b93d91239564f4eece6a5ff2a2b7ba2bd1acf983 (diff) |
Tweak docstring for linear-scale.
* sly/math.scm (linear-scale): Tweak docstring.
-rw-r--r-- | sly/math.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sly/math.scm b/sly/math.scm index c25e24d..1a5f2c6 100644 --- a/sly/math.scm +++ b/sly/math.scm @@ -92,8 +92,8 @@ actually less than MAX." ((> x max) max) (else x))) -(define (linear-scale min max a b val) - "Map a VAL in the range [MIN,MAX] to numbers in [A,B]" +(define (linear-scale min max a b n) + "Map a number N in the range [MIN,MAX] to the range [A,B]." (+ a - (/ (* (- b a) (- val min)) + (/ (* (- b a) (- n min)) (- max min)))) |