Skip to content

Commit

Permalink
Added blank lines between paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Engelberg committed Oct 22, 2011
1 parent ee7e34c commit 0132808
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 0132808

Please sign in to comment.