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]].

Implementation checks for ##Inf, ##NaN and some of the function distinguish +0.0 and -0.0

Complex numbers functions.

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

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

Implementation checks for ##Inf, ##NaN and some of the function distinguish +0.0 and -0.0
raw docstring

-Iclj

source

absclj

(abs z)

Absolute value, magnitude

Absolute value, magnitude
sourceraw docstring

acosclj

(acos z)

acos

acos
sourceraw docstring

acoshclj

(acosh z)

acosh

acosh
sourceraw docstring

acotclj

(acot z)

acot

acot
sourceraw docstring

acothclj

(acoth z)
source

acscclj

(acsc z)

acsc

acsc
sourceraw docstring

acschclj

(acsch z)
source

addclj

(add z1 z2)

Sum of two complex numbers

Sum of two complex numbers
sourceraw docstring

argclj

(arg z)

Argument (angle) of the complex number

Argument (angle) of the complex number
sourceraw docstring

asecclj

(asec z)

asec

asec
sourceraw docstring

asechclj

(asech z)
source

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

cotclj

(cot z)

csc

csc
sourceraw docstring

cothclj

(coth z)

coth

coth
sourceraw docstring

cscclj

(csc z)

csc

csc
sourceraw docstring

cschclj

(csch z)

csch

csch
sourceraw docstring

csgnclj

(csgn z)
(csgn re im)

Complex sgn.

Returns 0 for 0+0i or calls m/sgn on real part otherwise.

Complex sgn.

Returns `0` for `0+0i` or calls `m/sgn` on real part otherwise.
sourceraw docstring

delta-eqclj

(delta-eq q1 q2)
(delta-eq q1 q2 accuracy)

Compare complex numbers with given accuracy (10e-6 by default)

Compare complex numbers with given accuracy (10e-6 by default)
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

imaginary?clj

(imaginary? z)

Is z is a pure imaginary number?

Is z is a pure imaginary number?
sourceraw docstring

inf?clj

(inf? z)

Is infinite?

Is infinite?
sourceraw docstring

logclj

(log z)

log, principal value

log, principal value
sourceraw docstring

logbclj

(logb z b)

log with base b

log with base b
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

nan?clj

(nan? z)

Is NaN?

Is NaN?
sourceraw docstring

negclj

(neg z)

Negate complex number. \(-z\)

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

normclj

(norm z)

Norm (Guass) of the complex number, absolute value squared

Norm (Guass) of the complex number, absolute value squared
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

real?clj

(real? z)

Is z is a real number?

Is z is a real number?
sourceraw docstring

reciprocalclj

(reciprocal z)

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

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

scaleclj

(scale z v)

Multiply by real number

Multiply by real number
sourceraw docstring

secclj

(sec z)

sec

sec
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

(sub z1 z2)

Difference of two complex numbers

Difference of two complex numbers
sourceraw docstring

tanclj

(tan z)

tan

tan
sourceraw docstring

tanhclj

(tanh z)

tanh

tanh
sourceraw docstring

TWOclj

source

ZEROclj

source

zero?clj

(zero? z)

Is zero?

Is zero?
sourceraw docstring

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

× close