Below is the API for the OCaml standard library. It's directly copied over from the OCaml Manual, formatted to the Reason syntax and styled accordingly. The API docs are work-in-progress; we'll be polishing these gradually!
If you're targeting JavaScript, the API docs for BuckleScript includes all of below, plus JS-specific APIs.
sig
type t = { re : float; im : float; }
val zero : Complex.t
val one : Complex.t
val i : Complex.t
val neg : Complex.t -> Complex.t
val conj : Complex.t -> Complex.t
val add : Complex.t -> Complex.t -> Complex.t
val sub : Complex.t -> Complex.t -> Complex.t
val mul : Complex.t -> Complex.t -> Complex.t
val inv : Complex.t -> Complex.t
val div : Complex.t -> Complex.t -> Complex.t
val sqrt : Complex.t -> Complex.t
val norm2 : Complex.t -> float
val norm : Complex.t -> float
val arg : Complex.t -> float
val polar : float -> float -> Complex.t
val exp : Complex.t -> Complex.t
val log : Complex.t -> Complex.t
val pow : Complex.t -> Complex.t -> Complex.t
end