Liking cljdoc? Tell your friends :D

org.soulspace.math.complex

Functions for complex numbers in cartesian or polar representation.

Complex numbers are represented as maps with the keys ':real' and ':img' in cartesian representation and ':r' and ':phi' in polar representation.

Functions for complex numbers in cartesian or polar representation.

Complex numbers are represented as maps with the keys ':real' and ':img'
in cartesian representation and ':r' and ':phi' in polar representation.
raw docstring

addclj/s

(add c1 c2)

Adds two complex numbers 'c1' and 'c2' given in cartesian representation.

Adds two complex numbers 'c1' and 'c2' given in cartesian representation.
sourceraw docstring

conjugateclj/s

(conjugate c)

Calculates the conjugate of the complex number 'c' given in cartesian representation.

Calculates the conjugate of the complex number 'c' given in cartesian representation.
sourceraw docstring

div-polarclj/s

(div-polar p1 p2)

Divides the complex numbers given in polar representation.

Divides the complex numbers given in polar representation.
sourceraw docstring

divideclj/s

(divide c1 c2)

Multiplies two complex numbers 'c1' and 'c2' given in cartesian representation.

Multiplies two complex numbers 'c1' and 'c2' given in cartesian representation.
sourceraw docstring

Iclj/s

The complex number i in cartesian representation

The complex number i in cartesian representation
sourceraw docstring

inverseclj/s

(inverse c)

Calculates the conjugate of the complex number 'c' given in cartesian representation. If c is zero, an exception is thrown.

Calculates the conjugate of the complex number 'c' given in cartesian representation.
If c is zero, an exception is thrown.
sourceraw docstring

mult-polarclj/s

(mult-polar p1 p2)

Multiplies the complex numbers given in polar representation.

Multiplies the complex numbers given in polar representation.
sourceraw docstring

multiplyclj/s

(multiply c1 c2)

Multiplies two complex numbers 'c1' and 'c2' given in cartesian representation.

Multiplies two complex numbers 'c1' and 'c2' given in cartesian representation.
sourceraw docstring

normclj/s

(norm c)

Calculates the norm or absolute value of the complex number 'c' given in cartesian representation.

Calculates the norm or absolute value of the complex number 'c' given in cartesian representation.
sourceraw docstring

ONEclj/s

The complex number one in cartesian representation.

The complex number one in cartesian representation.
sourceraw docstring

scalar-productclj/s

(scalar-product c x)

Calculates the scalar product of the complex number 'c' with the real number 'x'

Calculates the scalar product of the complex number 'c' with the real number 'x'
sourceraw docstring

sqrclj/s

(sqr c)

Calculates the square of the complex number 'c' given in cartesian repmresentation.

Calculates the square of the complex number 'c' given in cartesian repmresentation.
sourceraw docstring

sqrtclj/s

(sqrt c)

Calculates the principal square root of the complex number 'c' given in cartesian representation.

Calculates the principal square root of the complex number 'c' given in cartesian representation.
sourceraw docstring

sqrt-polarclj/s

(sqrt-polar p)

Calculates the principal square root of the complex number 'p' given in polar representation.

Calculates the principal square root of the complex number 'p' given in polar representation.
sourceraw docstring

substractclj/s

(substract c1 c2)

Substracts two complex numbers 'c1' and 'c2' given in cartesian representation'.

Substracts two complex numbers 'c1' and 'c2' given in cartesian representation'.
sourceraw docstring

to-cartesianclj/s

(to-cartesian p)

Retuns the cartesian representation of the complex number 'p' given in polar representation.

Retuns the cartesian representation of the complex number 'p' given in polar representation.
sourceraw docstring

to-polarclj/s

(to-polar c)

Retuns the polar representation of the complex number 'c' given in cartesian representation.

Retuns the polar representation of the complex number 'c' given in cartesian representation.
sourceraw docstring

ZEROclj/s

The complex number zero in cartesian representation.

The complex number zero in cartesian representation.
sourceraw docstring

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

× close