Liking cljdoc? Tell your friends :D

complex.core


*clj

(*)
(* a)
(* a b)
(* a b & more)

Multiplies two numbers, which may or may not be complex and produces a complex result.

Multiplies two numbers, which may or may not be complex and produces a complex result.
sourceraw docstring

+clj

(+)
(+ a)
(+ a b)
(+ a b & more)

Adds two numbers, which may or may not be complex and produces a complex result.

Adds two numbers, which may or may not be complex and produces a complex result.
sourceraw docstring

-clj

(- a)
(- a b)
(- a b & more)

Subtracts the first argument from the second, either of which may or may not be complex and produces a complex result.

Subtracts the first argument from the second, either of which may or may not be complex and produces a complex result.
sourceraw docstring

/clj

(/ a)
(/ a b)
(/ a b & more)

Divides the first argument by the second, either of which may or may not be complex and produces a complex result.

Divides the first argument by the second, either of which may or may not be complex and produces a complex result.
sourceraw docstring

absclj

(abs a)

Takes a complex or real number and returns its absolute value.

Takes a complex or real number and returns its absolute value.
sourceraw docstring

add2cclj

(add2c a b)

Adds two complex numbers.

Adds two complex numbers.
sourceraw docstring

argumentclj

(argument a)

Gives the angle in the polar form of a number that may be complex or real.

Gives the angle in the polar form of a number that may be complex or real.
sourceraw docstring

complexclj

(complex a)
(complex a b)

Takes one or two numbers and returns a complex number. If only one argument is supplied then the argument is the real part of the complex number and the imaginary part is zero. If two arguments are supplied, then the first is the real part and the second is the imaginary part.

Takes one or two numbers and returns a complex number.
If only one argument is supplied then the argument is the real part of the complex number and the imaginary part is zero.
If two arguments are supplied, then the first is the real part and the second is the imaginary part.
sourceraw docstring

conjugateclj

(conjugate a)

Returns the complex conjugate of a complex number.

Returns the complex conjugate of a complex number.
sourceraw docstring

cosclj

(cos a)

Computes the cosine of the argument, which may or may not be complex, as a complex number.

Computes the cosine of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

coshclj

(cosh a)

Computes the cosh of the argument, which may or may not be complex, as a complex number.

Computes the cosh of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

divide2cclj

(divide2c a b)

Divides two complex numbers.

Divides two complex numbers.
sourceraw docstring

equalsclj

(equals a b)
(equals a b eps)

With two arguments, returns true if two complex numbers are equal, and false otherwise. With three arguments, returns true if the difference between the respective parts of the first two arguments is less than the third argument, which is a double.

With two arguments, returns true if two complex numbers are equal, and false otherwise.
With three arguments, returns true if the difference between the respective parts of
the first two arguments is less than the third argument, which is a double.
sourceraw docstring

expclj

(exp a)

Computes e^(the argument) where the argument may or may not be complex and returns a complex number.

Computes e^(the argument) where the argument may or may not be complex and returns a complex number.
sourceraw docstring

imaginary-partclj

(imaginary-part a)

Returns the imaginary part of a complex number.

Returns the imaginary part of a complex number.
sourceraw docstring

logclj

(log a)

Computes the natural logarithm of the argument, which may or may not be complex, as a complex number.

Computes the natural logarithm of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

multiply2cclj

(multiply2c a b)

Multiplies two complex numbers.

Multiplies two complex numbers.
sourceraw docstring

negateclj

(negate a)

Returns the negative of a complex number.

Returns the negative of a complex number.
sourceraw docstring

nth-rootclj

(nth-root a n)

Computes the nth root of the first argument, which should be a complex number. The second argument should be a real number.

Computes the nth root of the first argument, which should be a complex number.
The second argument should be a real number.
sourceraw docstring

polar-formclj

(polar-form a)

Gives a complex number in polar form in a map.

Gives a complex number in polar form in a map.
sourceraw docstring

powclj

(pow a b)

Converts numbers to complex numbers and then raises the first to the power of the second.

Converts numbers to complex numbers and then raises the first to the power of the second.
sourceraw docstring

powcclj

(powc a b)

Raises the first argument to the power of the second, where both are complex numbers.

Raises the first argument to the power of the second, where both are complex numbers.
sourceraw docstring

real-partclj

(real-part a)

Returns the real part of a complex number.

Returns the real part of a complex number.
sourceraw docstring

reciprocalclj

(reciprocal a)

Returns the reciprocal of a number as a complex number.

Returns the reciprocal of a number as a complex number.
sourceraw docstring

sinclj

(sin a)

Computes the sine of the argument, which may or may not be complex, as a complex number.

Computes the sine of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

sinhclj

(sinh a)

Computes the sinh of the argument, which may or may not be complex, as a complex number.

Computes the sinh of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

sqrtclj

(sqrt a)

Computes the square root of the argument, which may or may not be complex, as a complex number.

Computes the square root of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

sqrt1zclj

(sqrt1z a)

Computes sqrt(1-argument^2) as a complex number, where the argument may or may not be complex.

Computes sqrt(1-argument^2) as a complex number, where the argument may or may not be complex.
sourceraw docstring

stringifyclj

(stringify a)

Prints a complex number a+bi in the format (a,b). Converts other kinds of arguments to strings as usual.

Prints a complex number a+bi in the format (a,b).
Converts other kinds of arguments to strings as usual.
sourceraw docstring

subtract2cclj

(subtract2c a b)

Subtracts two complex numbers.

Subtracts two complex numbers.
sourceraw docstring

tanclj

(tan a)

Computes the tangent of the argument, which may or may not be complex, as a complex number.

Computes the tangent of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

tanhclj

(tanh a)

Computes the tanh of the argument, which may or may not be complex, as a complex number.

Computes the tanh of the argument, which may or may not be complex, as a complex number.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close