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.
Graphs are generated as follows, background is based on:
with transformed points painted white.
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. Graphs are generated as follows, background is based on: * argument as HUE * absolute value as BRIGHTNESS with transformed points painted white. Complex plane (identity) looks as follows: ![identity](images/c/identity.jpg)
(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 is a website building & hosting documentation for Clojure/Script libraries
× close