Liking cljdoc? Tell your friends :D

org.soulspace.math.types.complex

Contains the protocols and implementations for complex numbers.

Contains the protocols and implementations for complex numbers.
raw docstring

complexclj

(complex m)
(complex r i)

Creates a complex number from real and imaginary parts.

Creates a complex number from real and imaginary parts.
sourceraw docstring

Iclj

The complex number i

The complex number i
sourceraw docstring

IComplexcljprotocol

Protocol for complex numbers in algebraic/cartesian form.

Protocol for complex numbers in algebraic/cartesian form.

addclj

(add this c2)

Addition of complex 'this' number with the complex number 'c2'.

Addition of complex 'this' number with the complex number 'c2'.

substractclj

(substract this c2)

Substraction of 'this' complex number with the complex number 'c2'.

Substraction of 'this' complex number with the complex number 'c2'.

conjugateclj

(conjugate this)

Conjugate of 'this' complex number.

Conjugate of 'this' complex number.

divideclj

(divide this c2)

Division of 'this' complex number with the complex number 'c2'.

Division of 'this' complex number with the complex number 'c2'.

to-polarclj

(to-polar this)

Polar form of 'this' complex number.

Polar form of 'this' complex number.

sqrtclj

(sqrt this)

Square root of 'this' complex number.

Square root of 'this' complex number.

normclj

(norm this)

Absolute or norm of 'this' complex number.

Absolute or norm of 'this' complex number.

sqrclj

(sqr this)

Square of 'this' complex number.

Square of 'this' complex number.

multiplyclj

(multiply this c2)

Multiplication of 'this' complex number with the complex number 'c2'.

Multiplication of 'this' complex number with the complex number 'c2'.

scalar-productclj

(scalar-product this c2)

Division of 'this' complex number with the real number 'x'.

Division of 'this' complex number with the real number 'x'.
sourceraw docstring

IPolarComplexcljprotocol

Protocol for complex numbers in polar form.

Protocol for complex numbers in polar form.

sqrt-polarclj

(sqrt-polar p)

to-cartesianclj

(to-cartesian p)
sourceraw docstring

ONEclj

The complex number one.

The complex number one.
sourceraw docstring

polarclj

(polar m)
(polar r phi)

Creates a complex number from polar coordinates.

Creates a complex number from polar coordinates.
sourceraw docstring

ZEROclj

The complex number zero.

The complex number zero.
sourceraw docstring

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

× close