(*)
(* 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.
(+)
(+ 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.
(- 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.
(/ 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.
(abs a)
Takes a complex or real number and returns its absolute value.
Takes a complex or real number and returns its absolute value.
(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.
(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.
(conjugate a)
Returns the complex conjugate of a complex number.
Returns the complex conjugate of a complex number.
(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.
(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.
(divide2c a b)
Divides two complex numbers.
Divides two complex numbers.
(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.
(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.
(imaginary-part a)
Returns the imaginary part of a complex number.
Returns the imaginary part of a complex number.
(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.
(multiply2c a b)
Multiplies two complex numbers.
Multiplies two complex numbers.
(negate a)
Returns the negative of a complex number.
Returns the negative of a complex number.
(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.
(polar-form a)
Gives a complex number in polar form in a map.
Gives a complex number in polar form in a map.
(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.
(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.
(real-part a)
Returns the real part of a complex number.
Returns the real part of a complex number.
(reciprocal a)
Returns the reciprocal of a number as a complex number.
Returns the reciprocal of a number as a complex number.
(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.
(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.
(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.
(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.
(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.
(subtract2c a b)
Subtracts two complex numbers.
Subtracts two complex numbers.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close