Liking cljdoc? Tell your friends :D

unit.core


Bclj/s

source

calorieclj/s

source

celsiusclj/s

source

const-dimensionsclj/s

source

convertclj/s

(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.
sourceraw docstring

dayclj/s

source

defunitclj/smacro

(defunit unit kw body)
source

dim-eqclj/s

(dim-eq u)
(dim-eq u1 u2)

Check if the units are dimensionally equivalent.

Check if the units are dimensionally equivalent.
sourceraw docstring

dimension-property-mapclj/s

source

dimensionless?clj/s

(dimensionless? u)

Test whether the unit is dimensionless.

Test whether the unit is dimensionless.
sourceraw docstring

dimensionsclj/s

(dimensions unit)
source

divclj/s

(div u)
(div u1 u2)
(div u1 u2 & rest)

The relative change operation.

The relative change operation.
sourceraw docstring

dynclj/s

source

expclj/s

(exp u k)

The k exponentiation operation.

The k exponentiation operation.
sourceraw docstring

fahrenheitclj/s

source

source

from-siclj/s

(from-si magnitude u)

Convert a magnitude from SI to a unit u.

Convert a magnitude from SI to a unit `u`.
sourceraw docstring

GBclj/s

source

gramclj/s

source

hertzclj/s

source

hourclj/s

source

inchclj/s

source

jouleclj/s

source

KBclj/s

source

kelvinclj/s

source

kilopondclj/s

source

km-per-hourclj/s

source

make-unitclj/s

(make-unit dimensions slope)
(make-unit dimensions slope y-intercept)
(make-unit dimensions slope y-intercept prefix?)
source

MBclj/s

source

measuresclj/s

(measures unit)
source

meterclj/s

source

mileclj/s

source

miles-per-hourclj/s

source

minuteclj/s

source

multclj/s

(mult u)
(mult u1 u2)
(mult u1 u2 & rest)

The mutliplicative change operation.

The mutliplicative change operation.
sourceraw docstring

mult-identityclj/s

source

newtonclj/s

source

ounceclj/s

source

poundclj/s

source

poundalclj/s

source

poundforceclj/s

source

prefixclj/s

(prefix u pk)

The prefix operation.

The prefix operation.
sourceraw docstring

prefix?clj/s

(prefix? unit)
source

prefixesclj/s

source

property-dimension-mapclj/s

source

secondclj/s

source

slopeclj/s

(slope unit)
source

TBclj/s

source

to-siclj/s

(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.
sourceraw docstring

to-unitclj/s

(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.
sourceraw docstring

unitsclj/s

source

valid-literal-dimensions?clj/s

(valid-literal-dimensions? dims)
source

valid-slope?clj/s

source

wattclj/s

source

y-interceptclj/s

(y-intercept unit)
source

yardclj/s

source

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

× close