lux/math/complex

Complex arithmetic.

Types

Complex

(type: Complex
  {#real lux;Real
   #imaginary lux;Real})

Macros

complex

## Complex literals.
(complex real imaginary)

## The imaginary part can be omitted if it's 0.
(complex real)

Structs

Codec<Text,Complex>

(lux/control/codec;Codec lux;Text Complex)

Eq<Complex>

(lux/control/eq;Eq Complex)

Values

(acos input)

(-> Complex Complex)

(argument (^slots [#real #imaginary]))

(-> Complex lux;Real)

(asin input)

(-> Complex Complex)

(atan input)

(-> Complex Complex)

(c.* param input)

(-> Complex Complex Complex)

(c.*' param input)

(-> lux;Real Complex Complex)

(c.+ param input)

(-> Complex Complex Complex)

(c.- param input)

(-> Complex Complex Complex)

(c./ param input)

(-> Complex Complex Complex)

(c./' param subject)

(-> lux;Real Complex Complex)

(c.= param input)

(-> Complex Complex lux;Bool)

(c.abs subject)

(-> Complex lux;Real)

c.negate

(-> Complex Complex)

c.signum

(-> Complex Complex)

conjugate

(-> Complex Complex)

(cos subject)

(-> Complex Complex)

(cosh subject)

(-> Complex Complex)

(exp subject)

(-> Complex Complex)

i

Complex

(log subject)

(-> Complex Complex)

(nan? complex)

(-> Complex lux;Bool)

(nth-roots nth input)

(-> lux;Nat Complex (lux;List Complex))

one

Complex

(pow param input)

(-> Complex Complex Complex)

(pow' param input)

(-> lux;Real Complex Complex)

(reciprocal (^slots [#real #imaginary]))

(-> Complex Complex)

(sin subject)

(-> Complex Complex)

(sinh subject)

(-> Complex Complex)

(sqrt (^@ input (^slots [#real #imaginary])))

(-> Complex Complex)

(sqrt-1z input)

(-> Complex Complex)

(tan subject)

(-> Complex Complex)

(tanh subject)

(-> Complex Complex)

zero

Complex