Base.Complex =============================================================================== This document is auto-generated for Owl's APIs. #70 entries have been extracted. timestamp: 2018-04-16 13:12:54 Github: `{Signature} `_ `{Implementation} `_ Type definition and constants ------------------------------------------------------------------------------- .. code-block:: ocaml type t = Complex.t Type definition of a complex number. .. code-block:: ocaml val zero : t Constant value zero. .. code-block:: ocaml val one : t Constant value one. .. code-block:: ocaml val i : t Constant value i. `source code `__ Unary functions ------------------------------------------------------------------------------- .. code-block:: ocaml val neg : t -> t TODO .. code-block:: ocaml val abs : t -> float TODO `source code `__ .. code-block:: ocaml val abs2 : t -> float TODO `source code `__ .. code-block:: ocaml val logabs : t -> float TODO `source code `__ .. code-block:: ocaml val conj : t -> t TODO .. code-block:: ocaml val inv : t -> t TODO .. code-block:: ocaml val sqrt : t -> t TODO .. code-block:: ocaml val exp : t -> t TODO .. code-block:: ocaml val log : t -> t TODO .. code-block:: ocaml val sin : t -> t TODO `source code `__ .. code-block:: ocaml val cos : t -> t TODO `source code `__ .. code-block:: ocaml val tan : t -> t TODO `source code `__ .. code-block:: ocaml val cot : t -> t TODO `source code `__ .. code-block:: ocaml val sec : t -> t TODO `source code `__ .. code-block:: ocaml val csc : t -> t TODO `source code `__ .. code-block:: ocaml val sinh : t -> t TODO `source code `__ .. code-block:: ocaml val cosh : t -> t TODO `source code `__ .. code-block:: ocaml val tanh : t -> t TODO `source code `__ .. code-block:: ocaml val sech : t -> t TODO `source code `__ .. code-block:: ocaml val csch : t -> t TODO `source code `__ .. code-block:: ocaml val coth : t -> t TODO `source code `__ .. code-block:: ocaml val asin : t -> t TODO `source code `__ .. code-block:: ocaml val acos : t -> t TODO `source code `__ .. code-block:: ocaml val atan : t -> t TODO `source code `__ .. code-block:: ocaml val asec : t -> t TODO `source code `__ .. code-block:: ocaml val acsc : t -> t TODO `source code `__ .. code-block:: ocaml val acot : t -> t TODO `source code `__ .. code-block:: ocaml val asinh : t -> t TODO `source code `__ .. code-block:: ocaml val acosh : t -> t TODO `source code `__ .. code-block:: ocaml val atanh : t -> t TODO `source code `__ .. code-block:: ocaml val asech : t -> t TODO `source code `__ .. code-block:: ocaml val acsch : t -> t TODO `source code `__ .. code-block:: ocaml val acoth : t -> t TODO `source code `__ .. code-block:: ocaml val arg : t -> float ``arg x`` returns the angle of a complex number ``x``. .. code-block:: ocaml val phase : t -> float ``phase x`` returns the phase of a complex number ``x``. `source code `__ Binary functions ------------------------------------------------------------------------------- .. code-block:: ocaml val add : t -> t -> t TODO .. code-block:: ocaml val sub : t -> t -> t TODO .. code-block:: ocaml val mul : t -> t -> t TODO .. code-block:: ocaml val div : t -> t -> t TODO .. code-block:: ocaml val add_re : t -> float -> t TODO `source code `__ .. code-block:: ocaml val add_im : t -> float -> t TODO `source code `__ .. code-block:: ocaml val sub_re : t -> float -> t TODO `source code `__ .. code-block:: ocaml val sub_im : t -> float -> t TODO `source code `__ .. code-block:: ocaml val mul_re : t -> float -> t TODO `source code `__ .. code-block:: ocaml val mul_im : t -> float -> t TODO `source code `__ .. code-block:: ocaml val div_re : t -> float -> t TODO `source code `__ .. code-block:: ocaml val div_im : t -> float -> t TODO `source code `__ .. code-block:: ocaml val pow : t -> t -> t TODO .. code-block:: ocaml val polar : float -> float -> t TODO .. code-block:: ocaml val rect : float -> float -> t ``rect r phi`` return a complex number with polar coordinates ``r`` and ``phi``. `source code `__ Comparison functions ------------------------------------------------------------------------------- .. code-block:: ocaml val equal : t -> t -> bool TODO `source code `__ .. code-block:: ocaml val not_equal : t -> t -> bool TODO `source code `__ .. code-block:: ocaml val less : t -> t -> bool TODO `source code `__ .. code-block:: ocaml val greater : t -> t -> bool TODO `source code `__ .. code-block:: ocaml val less_equal : t -> t -> bool TODO `source code `__ .. code-block:: ocaml val greater_equal : t -> t -> bool TODO `source code `__ Helper functions ------------------------------------------------------------------------------- .. code-block:: ocaml val complex : float -> float -> t ``complex re im`` returns a complex number ``{re; im}``. `source code `__ .. code-block:: ocaml val of_tuple : float * float -> t ``of_tuple (re, im)`` returns a complex number ``{re; im}``. `source code `__ .. code-block:: ocaml val to_tuple : t -> float * float ``to_tuple x`` converts a complex number to tuple ``(x.re; x.im)``. `source code `__ .. code-block:: ocaml val is_nan : t -> bool ``is_nan x`` returns ``true`` if ``x.re`` is ``nan`` or ``x.im`` is ``nan``. `source code `__ .. code-block:: ocaml val is_inf : t -> bool ``is_inf x`` returns ``true`` if either ``x.re`` or ``x.im`` is ``infinity`` or ``neg_infinity``. `source code `__