(=== number)(=== number1 number2)(=== number1 number2 & more)Equality for numbers that works with NaN.
Equality for numbers that works with NaN.
(abs number)Returns absolute value of number.
Returns absolute value of `number`.
(abs' number)Returns absolute value of number as a long if possible.
Returns absolute value of `number` as a long if possible.
(acos number)Returns inverse cosine of number.
Returns inverse cosine of `number`.
(acosh number)Returns inverse hyperbolic cosine of number.
Returns inverse hyperbolic cosine of `number`.
(angle->radians' angle)Returns the reduced radians from the angle, where
radians = angle × PI / 180. Returns a long if possible.
Returns the reduced radians from the `angle`, where radians = `angle` × PI / 180. Returns a long if possible.
(asin number)Returns inverse sine of number.
Returns inverse sine of `number`.
(asinh number)Returns inverse hyperbolic sine of number.
Returns inverse hyperbolic sine of `number`.
(atan number)Returns inverse tangent of number.
Returns inverse tangent of `number`.
(atan2 number1 number2)Returns inverse tangent with two arguments.
Returns inverse tangent with two arguments.
(atanh number)Returns inverse hyperbolic tangent.
Returns inverse hyperbolic tangent.
(ceil' number)Rounds up. Returns a long if possible, otherwise a double.
Rounds up. Returns a long if possible, otherwise a double.
(corr? x)Returns true if x is between -1 and 1, inclusive.
Returns true if `x` is between -1 and 1, inclusive.
(cube' number)Returns cube of number as a long if possible.
Returns cube of `number` as a long if possible.
(div number2)(div number1 number2)(div number1 number2 zero-div-by-zero)Returns number1 divided by number2. Or 1 divided by number2. Dividing a
positive number divided by zero returns Inf+. Dividing a negative number
divided by zero returns Inf-. Dividing zero by zero will return NaN by
default. Optionally, can include alternative return value for 0/0,
zero-div-by-zero.
Returns `number1` divided by `number2`. Or 1 divided by `number2`. Dividing a positive number divided by zero returns Inf+. Dividing a negative number divided by zero returns Inf-. Dividing zero by zero will return NaN by default. Optionally, can include alternative return value for 0/0, `zero-div-by-zero`.
(double-finite? x)Returns true if x is a double and finite.
Returns true if `x` is a double and finite.
(finite+? x)Returns true if x is a positive finite number.
Returns true if `x` is a positive finite number.
(finite-? x)Returns true if x is a negative finite number.
Returns true if `x` is a negative finite number.
(finite-non+? x)Returns true if x is a non-positive finite number.
Returns true if `x` is a non-positive finite number.
(finite-non-? x)Returns true if x is a non-negative finite number.
Returns true if `x` is a non-negative finite number.
(finite? x)Returns true if x is a finite number.
Returns true if `x` is a finite number.
(floor number)Rounds down. Returns a double.
Rounds down. Returns a double.
(floor' number)Rounds down. Returns a long if possible, otherwise a double.
Rounds down. Returns a long if possible, otherwise a double.
(hypot number1 number2)Returns hypotenuse with sides number1 and number2.
Returns hypotenuse with sides `number1` and `number2`.
(inf? x)Returns true if x is Inf+ or Inf-.
Returns true if `x` is Inf+ or Inf-.
(int+? x)Returns true if x is an int and is positive.
Returns true if `x` is an int and is positive.
(int-? x)Returns true if x is an int and is negative.
Returns true if `x` is an int and is negative.
(int-non+? x)Returns true if x is an int and is non-positive.
Returns true if `x` is an int and is non-positive.
(int-non-? x)Returns true if x is an int and is non-negative.
Returns true if `x` is an int and is non-negative.
(int? x)Returns true is x is an integer that is within the int range.
Returns true is `x` is an integer that is within the int range.
(log10 number)Returns base 10 log of number.
Returns base 10 log of `number`.
(log2 number)Returns base 2 log of number.
Returns base 2 log of `number`.
(logn number base)Returns base log of number.
Returns `base` log of `number`.
(long+? x)Returns true if x is a long and is positive.
Returns true if `x` is a long and is positive.
(long-? x)Returns true if x is a long and is negative.
Returns true if `x` is a long and is negative.
(long-able+? x)Returns true if x is a number that can be converted to a long, and is
positive.
Returns true if `x` is a number that can be converted to a long, and is positive.
(long-able-? x)Returns true if x is a number that can be converted to a long, and is
negative.
Returns true if `x` is a number that can be converted to a long, and is negative.
(long-able-non+? x)Returns true if x is a number that can be converted to a long, and is
non+.
Returns true if `x` is a number that can be converted to a long, and is non+.
(long-able-non-? x)Returns true if x is a number that can be converted to a long, and is
non-.
Returns true if `x` is a number that can be converted to a long, and is non-.
(long-able? x)Returns true if x is a number that can be converted to a long.
Returns true if `x` is a number that can be converted to a long.
(long-non+? x)Returns true if x is a long and is non-positive.
Returns true if `x` is a long and is non-positive.
(long-non-? x)Returns true if x is a long and is non-negative.
Returns true if `x` is a long and is non-negative.
(maybe-long-able x)Returns x as a long if possible. Otherwise returns x.
Returns `x` as a long if possible. Otherwise returns x.
(mod' numerator divisor)Modulus of numerator and divisor. Truncates toward negative infinity. Has
sign of divisor unless numerical rounding error with quot'. Will stay
consistent with quot'. Returns a long if possible.
Modulus of `numerator` and `divisor`. Truncates toward negative infinity. Has sign of `divisor` unless numerical rounding error with [[quot']]. Will stay consistent with [[quot']]. Returns a long if possible.
(neg? x)Returns true if x is a number that is negative.
Returns true if `x` is a number that is negative.
(next-down number)Returns number minus smallest amount to make a change.
Returns `number` minus smallest amount to make a change.
(next-up number)Returns number plus smallest amount to make a change.
Returns `number` plus smallest amount to make a change.
(non+? x)Returns true if x is non-positive.
Returns true if `x` is non-positive.
(non-? x)Returns true if x is non-negative.
Returns true if `x` is non-negative.
(num? x)Returns true if x is a number and not NaN.
Returns true if `x` is a number and not NaN.
(numbers? x)Returns true if a collection of numbers.
Returns true if a collection of numbers.
(one- number)(one- number & numbers)Returns (1 - number). Will always return a double if numbers is used.
Returns (1 - `number`). Will always return a double if `numbers` is used.
(one? x)Returns true if x if equal to one.
Returns true if `x` if equal to one.
(open-corr? x)Returns true if x is between -1 and 1, exclusive.
Returns true if `x` is between -1 and 1, exclusive.
(open-prob? x)Returns true if x is between 0 and 1, exclusive.
Returns true if `x` is between 0 and 1, exclusive.
(pos? x)Returns true if x is a number that is positive.
Returns true if `x` is a number that is positive.
(pow number1 number2)Returns number1 to the power of number2.
Returns `number1` to the power of `number2`.
(prob? x)Returns true if x is between 0 and 1, inclusive.
Returns true if `x` is between 0 and 1, inclusive.
(quot' numerator divisor)Quotient of dividing numerator by divisor. Returns a long if possible.
Quotient of dividing `numerator` by `divisor`. Returns a long if possible.
(quot-and-mod' numerator divisor)Returns a tuple of longs if possible. Quotient of dividing numerator by
divisor. Modulus of numerator and divisor. Truncates toward negative
infinity. Has sign of divisor unless numerical rounding error with
quot'. Will stay consistent with quot'.
Returns a tuple of longs if possible. Quotient of dividing `numerator` by `divisor`. Modulus of `numerator` and `divisor`. Truncates toward negative infinity. Has sign of `divisor` unless numerical rounding error with [[quot']]. Will stay consistent with [[quot']].
(quot-and-rem' numerator divisor)Returns a tuple of longs if possible. Quotient of dividing numerator by
divisor. Remainder of dividing numerator by divisor. Has sign of
numerator unless numerical rounding error with quot'. Will stay
consistent with quot'.
Returns a tuple of longs if possible. Quotient of dividing `numerator` by `divisor`. Remainder of dividing `numerator` by `divisor`. Has sign of `numerator` unless numerical rounding error with [[quot']]. Will stay consistent with [[quot']].
(radians->angle' radians)Returns the reduced angle from radians, where
angles = 180 × radians / PI. Returns a long if possible.
Returns the reduced angle from `radians`, where angles = 180 × `radians` / PI. Returns a long if possible.
(reduce-angle' angle)Returns an angle between 0 and 360. Returns a long if possible.
Returns an `angle` between 0 and 360. Returns a long if possible.
(reduce-radians' radians)Returns radians between 0 and 2 × PI. Returns a long if possible.
Returns `radians` between 0 and 2 × PI. Returns a long if possible.
(rem' numerator divisor)Remainder of dividing numerator by divisor. Has sign of numerator
unless numerical rounding error with quot'. Will stay consistent with
quot'. Returns a long if possible.
Remainder of dividing `numerator` by `divisor`. Has sign of `numerator` unless numerical rounding error with [[quot']]. Will stay consistent with [[quot']]. Returns a long if possible.
(roughly-ceil number accu)Rounds up unless within accu, then rounds down. Returns a double.
Rounds up unless within `accu`, then rounds down. Returns a double.
(roughly-ceil' number accu)Rounds up unless within accu, then rounds down. Returns a long if possible,
otherwise a double.
Rounds up unless within `accu`, then rounds down. Returns a long if possible, otherwise a double.
(roughly-corr? number accu)Returns true if number is a corr or within accu of a corr.
Returns true if `number` is a corr or within `accu` of a corr.
(roughly-floor number accu)Rounds down unless within accu, then rounds up. Returns a double.
Rounds down unless within `accu`, then rounds up. Returns a double.
(roughly-floor' number accu)Rounds down unless within accu, then rounds up. Returns a long if possible,
otherwise a double.
Rounds down unless within `accu`, then rounds up. Returns a long if possible, otherwise a double.
(roughly-non+? number accu)Returns true if number is negative or within accu to zero.
Returns true if `number` is negative or within `accu` to zero.
(roughly-non-? number accu)Returns true if number is positive or within accu to zero.
Returns true if `number` is positive or within `accu` to zero.
(roughly-prob? number accu)Returns true if number is a prob or within accu of a prob.
Returns true if `number` is a prob or within `accu` of a prob.
(roughly-round+? number accu)Returns true if number is positive and roughly a whole number, or within
double accuracy.
Returns true if `number` is positive and roughly a whole number, or within double accuracy.
(roughly-round-? number accu)Returns true if number is negative and roughly a whole number, or within
double accuracy.
Returns true if `number` is negative and roughly a whole number, or within double accuracy.
(roughly-round-non+? number accu)Returns true if number is non+ and roughly a whole number, or within
double accuracy.
Returns true if `number` is non+ and roughly a whole number, or within double accuracy.
(roughly-round-non-? number accu)Returns true if number is non- and roughly a whole number, or within
double accuracy.
Returns true if `number` is non- and roughly a whole number, or within double accuracy.
(roughly-round? number accu)Returns true if number is equal to a whole number or within accu of a
whole number, or within double accuracy.
Returns true if `number` is equal to a whole number or within `accu` of a whole number, or within double accuracy.
(roughly? number1 number2 accu)Returns true if number1 and number2 are within accu of each other, or
within double accuracy.
Returns true if `number1` and `number2` are within `accu` of each other, or within double accuracy.
(round number type)Returns a long if possible. Otherwise, returns number.
type:
:up
:down
:away-from-zero
:toward-zero.
Returns a long if possible. Otherwise, returns `number`. `type`: `:up` `:down` `:away-from-zero` `:toward-zero`.
(sgn number)Returns 1 if number positive, 0 if 0, -1 if negative.
Returns 1 if `number` positive, 0 if 0, -1 if negative.
(single-finite? x)Returns true if x is a single and finite.
Returns true if `x` is a single and finite.
(single? x)Returns true if x is a single.
Returns true if `x` is a single.
(sq' number)Returns square of number as a long if possible.
Returns square of `number` as a long if possible.
(sqrt number)Returns square root of number.
Returns square root of `number`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |