Liking cljdoc? Tell your friends :D

com.gfredericks.z

A simple implementation of complex numbers. The real/imaginary components can be anything that clojure's core arithmetic functions handle.

A simple implementation of complex numbers. The real/imaginary
components can be anything that clojure's core arithmetic functions
handle.
raw docstring

*clj

source

+clj

source

-clj

source

/clj

source

abs-squaredclj

(abs-squared z)

Returns the square of the absolute value of the argument.

Returns the square of the absolute value of the argument.
sourceraw docstring

conjugateclj

(conjugate z)
source

Iclj

source

imag->zclj

(imag->z i)
source

magnitudeclj

(magnitude z)
source

ONEclj

source

polar->zclj

(polar->z mag arg)
source

real->zclj

(real->z r)
source

separationclj

(separation z1 z2)

Returns a double representing the absolute value of the difference between the two given numbers.

Returns a double representing the absolute value of the difference
between the two given numbers.
sourceraw docstring

zclj

(z r i)
source

z->imagclj

(z->imag z)
source

z->realclj

(z->real z)
source

ZEROclj

source

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

× close