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: 
(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}\\)
(sqrt z)Sqrt of complex number. \(\sqrt{z}\)
Sqrt of complex number. \\(\sqrt{z}\\)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |