This namespace provides a number of functions and constructors for working with [[Complex]] numbers in Clojure and Clojurescript, and installs [[Complex]] into the SICMUtils generic arithmetic system.
For other numeric extensions, see sicmutils.ratio
and [[sicmutils.numbers]].
This namespace provides a number of functions and constructors for working with [[Complex]] numbers in Clojure and Clojurescript, and installs [[Complex]] into the SICMUtils generic arithmetic system. For other numeric extensions, see [[sicmutils.ratio]] and [[sicmutils.numbers]].
(complex re)
(complex re im)
Returns a [[Complex]] number with the supplied real part re
and imaginary
part im
. im
defaults to 0.
Returns a [[Complex]] number with the supplied real part `re` and imaginary part `im`. `im` defaults to 0.
(complex? a)
Returns true if a
is an instance of [[Complex]], false otherwise.
Returns true if `a` is an instance of [[Complex]], false otherwise.
Parser that converts a string representation of a complex number,
like 1 + 3i
, into a [[Complex]] number object in clj or cljs.
Parser that converts a string representation of a complex number, like `1 + 3i`, into a [[Complex]] number object in clj or cljs.
A [[Complex]] value equal to 0 (south pole on the Riemann Sphere).
A [[Complex]] value equal to 0 (south pole on the Riemann Sphere).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close