The home of most of the SICMUtils extensible generic operations. The bulk of
the others live in sicmutils.value
.
See the Generics
cljdocs
for a detailed discussion of how to use and extend the generic operations
defined in sicmutils.generic
and sicmutils.value
.
The home of most of the SICMUtils extensible generic operations. The bulk of the others live in [[sicmutils.value]]. See [the `Generics` cljdocs](https://cljdoc.org/d/sicmutils/sicmutils/CURRENT/doc/basics/generics) for a detailed discussion of how to use and extend the generic operations defined in [[sicmutils.generic]] and [[sicmutils.value]].
(cross-product a b)
generic cross-product
generic cross-product
(determinant a)
generic determinant
generic determinant
(dot-product a b)
generic dot-product
generic dot-product
(exact-divide a b)
generic exact-divide
generic exact-divide
(exp a)
generic exp.
Returns the base-e exponential of x
. Equivalent to (expt e x)
, given
some properly-defined e
symbol.
generic exp. Returns the base-e exponential of `x`. Equivalent to `(expt e x)`, given some properly-defined `e` symbol.
(exp10 a)
generic exp10.
Returns the base-10 exponential of x
. Equivalent to (expt 10 x)
.
generic exp10. Returns the base-10 exponential of `x`. Equivalent to `(expt 10 x)`.
(exp2 a)
generic exp2.
Returns the base-2 exponential of x
. Equivalent to (expt 2 x)
.
generic exp2. Returns the base-2 exponential of `x`. Equivalent to `(expt 2 x)`.
(factorial n)
Returns the factorial of n
, ie, the product of 1 to n inclusive.
Returns the factorial of `n`, ie, the product of 1 to n inclusive.
(gcd a b)
generic gcd.
Returns the greatest common
divisor of the two
inputs a
and b
.
generic gcd. Returns the [greatest common divisor](https://en.wikipedia.org/wiki/Greatest_common_divisor) of the two inputs `a` and `b`.
(inner-product a b)
generic inner-product
generic inner-product
(lcm a b)
generic lcm.
Returns the least common
multiple of the two
inputs a
and b
.
generic lcm. Returns the [least common multiple](https://en.wikipedia.org/wiki/Least_common_multiple) of the two inputs `a` and `b`.
(Lie-derivative a)
generic Lie-derivative
generic Lie-derivative
(log a)
generic log.
Returns the natural logarithm of x
.
generic log. Returns the natural logarithm of `x`.
(log10 a)
generic log10.
Returns the base-10 logarithm of x
, ie, $log_10(x)$.
generic log10. Returns the base-10 logarithm of `x`, ie, $log_10(x)$.
(log2 a)
generic log2.
Returns the base-2 logarithm of x
, ie, $log_2(x)$.
generic log2. Returns the base-2 logarithm of `x`, ie, $log_2(x)$.
(make-rectangular a b)
generic make-rectangular
generic make-rectangular
(negate a)
generic negate.
Returns the negation of a
. Equivalent to ([[sub]] 0 a)
.
generic negate. Returns the negation of `a`. Equivalent to `([[sub]] 0 a)`.
(negative? a)
generic negative?.
Returns true if the argument a
is less than ([[value/zero-like]] a)
,
false otherwise. The default implementation depends on a proper Comparable
implementation on the type.`
generic negative?. Returns true if the argument `a` is less than `([[value/zero-like]] a)`, false otherwise. The default implementation depends on a proper Comparable implementation on the type.`
(outer-product a b)
generic outer-product
generic outer-product
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close