17.  Numbers  

(= z1 z2 ...)
(< z1 z2 ...)
(> z1 z2 ...)
(<= z1 z2 ...)
(>= z1 z2 ...)

See R^4RS.

(1+ z)
(-1+ z)

Returns z plus 1 or z minus 1, respectively.

(1- z)

A synonym for -1+ (for backwards compatibility).

(+ z1 ...)
(* z1 ...)

See R^4RS.

(- z1 z2 ...)
(/ z1 z2 ...)

See R^4RS.

(zero? z)
(positive? z)
(negative? z)
(odd? z)
(even? z)
(exact? z)
(inexact? z)

See R^4RS.

(abs z)

See R^4RS.

(quotient n1 n2)
(remainder n1 n2)
(modulo n1 n2)

See R^4RS.

(gcd n1 ...)
(lcm n1 ...)

See R^4RS.

(floor x)
(ceiling x)
(truncate x)
(round x)

See R^4RS.

(sqrt z)

See R^4RS.

(expt z1 z2)

See R^4RS.

(exp z)
(log z)
(sin z)
(cos z)
(tan z)
(asin z)
(acos z)
(atan z)
(atan y x)

See R^4RS.

(min x1 x2 ...)
(max x1 x2 ...)

See R^4RS.

(random)

Returns an integer pseudo-random number in the range from 0 to 2^31-1.

(srandom n)

Sets the random number generator to the starting point n. srandom returns n.

(number? obj)
(complex? obj)
(real? obj)
(rational? obj)
(integer? obj)

See R^4RS.

(exact->inexact z)
(inexact->exact z)

See R^4RS.

(number->string number)
(number->string number radix)

See R^4RS.

(string->number string)
(string->number string radix)

See R^4RS.


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de