Liking cljdoc? Tell your friends :D

fastmath.complex

Complex numbers functions.

Complex number is represented as Vec2 type (from [[clojure2d.math.vector]] namespace).

To create complex number use complex, [[vec2]] or [[->Vec2]].

Simplified implementation based on Apache Commons Math. Functions don't check NaNs or INF values.

Complex plane (identity) looks as follows:

identity

Complex numbers functions.

Complex number is represented as `Vec2` type (from [[clojure2d.math.vector]] namespace).

To create complex number use [[complex]], [[vec2]] or [[->Vec2]].

Simplified implementation based on Apache Commons Math. Functions don't check NaNs or INF values.

Complex plane (identity) looks as follows:

![identity](images/c/identity.jpg)
raw docstring

absclj

Absolute value

Absolute value
sourceraw docstring

acosclj

(acos z)

acos

acos
sourceraw docstring

addclj

Sum of two complex numbers.

Sum of two complex numbers.
sourceraw docstring

argclj

Argument (angle) of complex number.

Argument (angle) of complex number.
sourceraw docstring

asinclj

(asin z)

asin

asin
sourceraw docstring

atanclj

(atan z)

atan

atan
sourceraw docstring

complexclj

(complex a b)

Create complex number. Represented as Vec2.

Create complex number. Represented as `Vec2`.
sourceraw docstring

conjugateclj

(conjugate z)

Complex conjugate. \(\bar{z}\)

Complex conjugate. \\(\bar{z}\\)
sourceraw docstring

cosclj

(cos z)

cos

cos
sourceraw docstring

coshclj

(cosh z)

cosh

cosh
sourceraw docstring

cscclj

(csc z)

cosecant

cosecant
sourceraw docstring

divclj

(div z1 z2)

Divide two complex numbers.

Divide two complex numbers.
sourceraw docstring

expclj

(exp z)

exp

exp
sourceraw docstring

Iclj

source

I-clj

source

logclj

(log z)

log

log
sourceraw docstring

multclj

(mult z1 z2)

Multiply two complex numbers.

Multiply two complex numbers.
sourceraw docstring

negclj

(neg z)

Negate complex number. \(-z\)

Negate complex number. \\(-z\\)
sourceraw docstring

ONEclj

source

powclj

(pow z1 z2)

Power. \(z_1^{z_2}\)

Power. \\(z_1^{z_2}\\)
sourceraw docstring

reciprocalclj

(reciprocal z)

\(\frac{1}{z}\)

\\(\frac{1}{z}\\)
sourceraw docstring

secclj

(sec z)

secant

secant
sourceraw docstring

sinclj

(sin z)

sin

sin
sourceraw docstring

sinhclj

(sinh z)

sinh

sinh
sourceraw docstring

sqclj

(sq z)

Square complex number. \(z^2\)

Square complex number. \\(z^2\\)
sourceraw docstring

sqrtclj

(sqrt z)

Sqrt of complex number. \(\sqrt{z}\)

Sqrt of complex number. \\(\sqrt{z}\\)
sourceraw docstring

sqrt1zclj

(sqrt1z z)

\(\sqrt{1-z^2}\)

\\(\sqrt{1-z^2}\\)
sourceraw docstring

subclj

Subtraction of two complex numbers.

Subtraction of two complex numbers.
sourceraw docstring

tanclj

(tan z)

tan

tan
sourceraw docstring

tanhclj

(tanh z)

tanh

tanh
sourceraw docstring

TWOclj

source

ZEROclj

source

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

× close