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

-Iclj

source

absclj

Absolute value

Absolute value
sourceraw docstring

acosclj

(acos z)

acos

acos
sourceraw docstring

acosechclj

(acosech z)

acosech

acosech
sourceraw docstring

acoshclj

(acosh z)

acosh

acosh
sourceraw docstring

acothclj

(acoth z)

sech

sech
sourceraw docstring

acschclj

(acsch z)

sech

sech
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

asechclj

(asech z)

sech

sech
sourceraw docstring

asinclj

(asin z)

asin

asin
sourceraw docstring

asinhclj

(asinh z)

asinh

asinh
sourceraw docstring

atanclj

(atan z)

atan

atan
sourceraw docstring

atanhclj

(atanh z)

atanh

atanh
sourceraw docstring

complexclj

(complex)
(complex a)
(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

cothclj

(coth z)

coth

coth
sourceraw docstring

cscclj

(csc z)

cosecant

cosecant
sourceraw docstring

cschclj

(csch z)

cosech

cosech
sourceraw docstring

divclj

(div z1 z2)

Divide two complex numbers.

Divide two complex numbers.
sourceraw docstring

expclj

(exp z)

exp

exp
sourceraw docstring

flipclj

(flip z)

Exchange imaginary and real parts

Exchange imaginary and real parts
sourceraw docstring

Iclj

source

I-clj

source

imclj

(im z)

Imaginary part

Imaginary part
sourceraw docstring

logclj

(log z)

log

log
sourceraw docstring

multclj

(mult z1 z2)

Multiply two complex numbers.

Multiply two complex numbers.
sourceraw docstring

mult-Iclj

(mult-I z)
source

mult-I-clj

(mult-I- z)
source

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

reclj

(re z)

Real part

Real part
sourceraw docstring

reciprocalclj

(reciprocal z)

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

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

scaleclj

Scale number

Scale number
sourceraw docstring

secclj

(sec z)

secant

secant
sourceraw docstring

sechclj

(sech z)

sech

sech
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