package prbnmcn-basic-structures

  1. Overview
  2. Docs
include module type of struct include Std.Complex end
include module type of struct include Stdlib.Complex end
type t = Stdlib__Complex.t = {
  1. re : float;
  2. im : float;
}
val zero : t
val one : t
val i : t
val neg : t -> t
val conj : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val inv : t -> t
val div : t -> t -> t
val sqrt : t -> t
val norm2 : t -> float
val norm : t -> float
val arg : t -> float
val polar : float -> float -> t
val exp : t -> t
val log : t -> t
val pow : t -> t -> t
val pp : Stdlib.Format.formatter -> Stdlib.Complex.t -> unit
val hash : Stdlib.Complex.t -> int
val equal : Stdlib.Complex.t -> Stdlib.Complex.t -> bool
val compare : Stdlib.Complex.t -> Stdlib.Complex.t -> int
include module type of struct include Empty end
type 'a m = 'a

'a m is the type of programs computing a value of type 'a

val of_int : int -> Stdlib.Complex.t
OCaml

Innovation. Community. Security.