Contains the protocols and implementations for complex numbers.
Contains the protocols and implementations for complex numbers.
(complex m)
(complex r i)
Creates a complex number from real and imaginary parts.
Creates a complex number from real and imaginary parts.
Protocol for complex numbers in algebraic/cartesian form.
Protocol for complex numbers in algebraic/cartesian form.
(add this c2)
Addition of complex 'this' number with the complex number 'c2'.
Addition of complex 'this' number with the complex number 'c2'.
(substract this c2)
Substraction of 'this' complex number with the complex number 'c2'.
Substraction of 'this' complex number with the complex number 'c2'.
(conjugate this)
Conjugate of 'this' complex number.
Conjugate of 'this' complex number.
(divide this c2)
Division of 'this' complex number with the complex number 'c2'.
Division of 'this' complex number with the complex number 'c2'.
(to-polar this)
Polar form of 'this' complex number.
Polar form of 'this' complex number.
(sqrt this)
Square root of 'this' complex number.
Square root of 'this' complex number.
(norm this)
Absolute or norm of 'this' complex number.
Absolute or norm of 'this' complex number.
(sqr this)
Square of 'this' complex number.
Square of 'this' complex number.
(multiply this c2)
Multiplication of 'this' complex number with the complex number 'c2'.
Multiplication of 'this' complex number with the complex number 'c2'.
(scalar-product this c2)
Division of 'this' complex number with the real number 'x'.
Division of 'this' complex number with the real number 'x'.
Protocol for complex numbers in polar form.
Protocol for complex numbers in polar form.
(sqrt-polar p)
(to-cartesian p)
(polar m)
(polar r phi)
Creates a complex number from polar coordinates.
Creates a complex number from polar coordinates.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close