| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
+ z ...
* z ...
(+) yields 0 and (*) yields 1.
- z1 z2 ...
/ z1 z2 ...
If more than one number are given, returns:
z1 - z2 - z3 ... z1 / z2 / z3 ... |
(- 3) => -3 (- -3.0) => 3.0 (- 5+2i) => -5.0-2.0i (/ 3) => 0.333333333333333 (/ 5+2i) => 0.172413793103448-0.0689655172413793i (- 5 2 1) => 2 (- 5 2.0 1) => 2.0 (- 5+3i -i) => 5.0+2.0i (/ 6+2i 2) => 3.0+1.0i |
(abs -1) => 1 (abs -1.0) => 1.0 (abs 1+i) => 1.4142135623731 |
Remainder and modulo differ when either one of the arguments is negative. Remainder R and quotient Q have the following relationship.
n1 = Q * n2 + R |
abs(Q) = floor(abs(n1)/abs(n2)).
Consequently, R's sign is always the same as n1's.
On the other hand, modulo works as expected for positive n2,
regardless of the sign of n1
(e.g. (modulo -1 n2) == n2 - 1).
If n2 is negative, it is mapped to the positive case by
the following relationship.
modulo(n1, n2) = -modulo(-n1, -n2) |
(remainder 10 3) => 1 (modulo 10 3) => 1 (remainder -10 3) => -1 (modulo -10 3) => 2 (remainder 10 -3) => 1 (modulo 10 -3) => -2 (remainder -10 -3) => -1 (modulo -10 -3) => -1 |
numerator
always returns q and denominator always return 1.
Floor and ceiling return a minimum integer that
is greater than x and a maximim integer that is less than x,
respectively. Truncate returns an integer that truncates
x towards zero. Round returns an integer that is closest
to x. If fractional part of x is exactly 0.5, round
returns the closest even integer.
min if x |
#f, it is regarded
as -infinity or +infinity, respectively.
Returns an exact integer only if all the given numbers are exact integers.
(clamp 3.1 0.0 1.0) => 1.0 (clamp 0.5 0.0 1.0) => 0.5 (clamp -0.3 0.0 1.0) => 0.0 (clamp -5 0) => 0 (clamp 3724 #f 256) => 256 |
atan(y/x).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |