(convert magnitude u1 u2)
Convert a magnitude from unit u1
to u2
. Throw exception if not dimensionally equivalent.
Convert a magnitude from unit `u1` to `u2`. Throw exception if not dimensionally equivalent.
(dim-eq u)
(dim-eq u1 u2)
Check if the units are dimensionally equivalent.
Check if the units are dimensionally equivalent.
(dimensionless? u)
Test whether the unit is dimensionless.
Test whether the unit is dimensionless.
(div u)
(div u1 u2)
(div u1 u2 & rest)
The relative change operation.
The relative change operation.
(exp u k)
The k exponentiation operation.
The k exponentiation operation.
(from-si magnitude u)
Convert a magnitude from SI to a unit u
.
Convert a magnitude from SI to a unit `u`.
(make-unit dimensions slope)
(make-unit dimensions slope y-intercept)
(make-unit dimensions slope y-intercept prefix?)
(mult u)
(mult u1 u2)
(mult u1 u2 & rest)
The mutliplicative change operation.
The mutliplicative change operation.
(to-si magnitude u)
Convert a magnitude from a unit u
to the SI equivalent.
Convert a magnitude from a unit `u` to the SI equivalent.
(to-unit s)
Given a (optionally prefixed) unit symbol return a unit object or nil if no match. Throw exception on unsupported prefix or if a unit does not accept a prefix.
Given a (optionally prefixed) unit symbol return a unit object or nil if no match. Throw exception on unsupported prefix or if a unit does not accept a prefix.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close