Browse files

Added blank lines between paragraphs

  • Loading branch information...
1 parent ee7e34c commit 0132808328ac62481129b405554563b8e6b3d44d @Engelberg Engelberg committed Oct 22, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0
@@ -11,8 +11,11 @@ commonly found in Scheme implementations.
expt - (expt x y) is x to the yth power, returns an exact number
if the base is an exact number, and the power is an integer,
otherwise returns a double.
abs - (abs n) is the absolute value of n
gcd - (gcd m n) returns the greatest common divisor of m and n
lcm - (lcm m n) returns the least common multiple of m and n
When floor, ceil, and round are passed doubles, we just defer to
@@ -25,9 +28,11 @@ but it seems best to match Java's semantics. On exact numbers
floor - (floor n) returns the greatest integer less than or equal to n.
If n is an exact number, floor returns an integer,
otherwise a double.
ceil - (ceil n) returns the least integer greater than or equal to n.
If n is an exact number, ceil returns an integer,
otherwise a double.
round - (round n) rounds to the nearest integer.
round always returns an integer. round rounds up for values
exactly in between two integers.
@@ -44,6 +49,7 @@ sqrt - Implements the sqrt behavior I'm accustomed to from PLT Scheme,
convert your input to a double before calling this sqrt function.
If Clojure ever gets complex numbers, then this function will
need to be updated (so negative inputs yield complex outputs).
exact-integer-sqrt - Implements a math function from the R6RS Scheme
standard. (exact-integer-sqrt k) where k is a non-negative integer,
returns [s r] where k = s^2+r and k < (s+1)^2. In other words, it

0 comments on commit 0132808

Please sign in to comment.