module ComplexL:sig..end
type t
The type of long double complex values
val make : LDouble.t -> LDouble.t -> tmake x y creates the long double complex value x + y * i
val of_complex : Stdlib.Complex.t -> tcreate a long double complex from a Complex.t
val to_complex : t -> Stdlib.Complex.tConvert a long double complex to a Complex.t. The real and imaginary components
are converted by calling LDouble.to_float which can produce unspecified results.
val zero : t0 + i0
val one : t1 + i0
val i : t0 + i
val re : t -> LDouble.treturn the real part of the long double complex
val im : t -> LDouble.treturn the imaginary part of the long double complex
val neg : t -> tUnary negation
val conj : t -> tConjugate: given the complex x + i.y, returns x - i.y.
val add : t -> t -> tAddition
val sub : t -> t -> tSubtraction
val mul : t -> t -> tMultiplication
val div : t -> t -> tDivision
val inv : t -> tMultiplicative inverse (1/z).
val sqrt : t -> tSquare root.
val norm2 : t -> LDouble.tNorm squared: given x + i.y, returns x^2 + y^2.
val norm : t -> LDouble.tNorm: given x + i.y, returns sqrt(x^2 + y^2).
val polar : LDouble.t -> LDouble.t -> tpolar norm arg returns the complex having norm norm and argument arg.
val arg : t -> LDouble.tArgument. The argument of a complex number is the angle in the complex plane between the positive real axis and a line passing through zero and the number.
val exp : t -> tExponentiation. exp z returns e to the z power.
val log : t -> tNatural logarithm (in base e).
val pow : t -> t -> tPower function. pow z1 z2 returns z1 to the z2 power.