Liking cljdoc? Tell your friends :D

sicmutils.value


=clj/smultimethod


add-object-symbols!clj/s

(add-object-symbols! o->syms)

argument-kindclj/s


exact-zero?clj/s

(exact-zero? n)

Returns true if the supplied argument is an exact numerical zero, false otherwise.

Returns true if the supplied argument is an exact numerical zero, false
otherwise.
raw docstring

integral?clj/s

(integral? x)

Returns true if x is an integral number, false otherwise.

Returns true if x is an integral number, false otherwise.
raw docstring

kind-predicateclj/s

(kind-predicate x)

Returns a predicate that returns true if its argument matches the supplied kind-keyword k, false otherwise.

Returns a predicate that returns true if its argument matches the supplied
kind-keyword `k`, false otherwise.
raw docstring

machine-epsilonclj/s


native-integral?clj/s

(native-integral? x)

Returns true if x is an integral number that Clojure's math operations work with, false otherwise.

Returns true if x is an integral number that Clojure's math operations work
with, false otherwise.
raw docstring

number?clj/s

(number? x)

Returns true if x is any number type in the numeric tower:

  • integral
  • floating point
  • complex

false otherwise.

Returns true if `x` is any number type in the numeric tower:

- integral
- floating point
- complex

false otherwise.
raw docstring

object-name-mapclj/s


principal-valueclj/s

(principal-value cuthigh)

real?clj/s

(real? x)

Returns true if x is either an integral number or a floating point number (ie, in the numeric tower but not complex), false otherwise.

Returns true if `x` is either an integral number or a floating point number (ie,
in the numeric tower but not complex), false otherwise.
raw docstring

scalar?clj/s

(scalar? x)

Returns true for anything that derives from ::scalar, ie, any numeric type in the numeric tower that responds true to number?, plus symbolic expressions generated sicmutils.abstract.number/literal-number,

false otherwise.

Returns true for anything that derives from `::scalar`, ie, any numeric type in
the numeric tower that responds true to [[number?]], plus symbolic expressions
generated [[sicmutils.abstract.number/literal-number]],

false otherwise.
raw docstring

seqtypeclj/s


sqrt-machine-epsilonclj/s


twopiclj/s


Valueclj/sprotocol

numerical?clj/s

(numerical? this)

zero-likeclj/s

(zero-like this)

identity?clj/s

(identity? this)

freezeclj/s

(freeze this)

Freezing an expression means removing wrappers and other metadata from subexpressions, so that the result is basically a pure S-expression with the same structure as the input. Doing this will rob an expression of useful information for further computation; so this is intended to be done just before simplification and printing, to simplify those processes.

Freezing an expression means removing wrappers and other metadata from
subexpressions, so that the result is basically a pure S-expression with the
same structure as the input. Doing this will rob an expression of useful
information for further computation; so this is intended to be done just
before simplification and printing, to simplify those processes.

zero?clj/s

(zero? this)

one?clj/s

(one? this)

exact?clj/s

(exact? this)

kindclj/s

(kind this)

identity-likeclj/s

(identity-like this)

one-likeclj/s

(one-like this)

withinclj/s

(within ε)

Returns a function that tests whether two values are within ε of each other.

Returns a function that tests whether two values are within ε of each other.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close