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:
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)
(complex)
(complex a)
(complex a b)
Create complex number. Represented as Vec2
.
Create complex number. Represented as `Vec2`.
(conjugate z)
Complex conjugate. \(\bar{z}\)
Complex conjugate. \\(\bar{z}\\)
(flip z)
Exchange imaginary and real parts
Exchange imaginary and real parts
(sqrt z)
Sqrt of complex number. \(\sqrt{z}\)
Sqrt of complex number. \\(\sqrt{z}\\)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close