package prbnmcn-basic-structures

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Reals.FloatSource

Real numbers implemented as floating point numbers

include Basic_intf.Field_std with type t = float
Sourcetype t = float
Sourceval zero : t
Sourceval add : t -> t -> t
Sourceval neg : t -> t
Sourceval one : t
Sourceval mul : t -> t -> t
Sourceval sub : t -> t -> t
Sourceval div : t -> t -> t
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval pp : Format.formatter -> t -> unit
Sourceval hash : t -> int
Sourceval lebesgue : Random.State.t -> t

Lebesgue on the interval 0;1

Sourceval (+) : t -> t -> t
Sourceval (-) : t -> t -> t
Sourceval (*) : t -> t -> t
Sourceval (/) : t -> t -> t
include Basic_intf.Infix_order with type t := t and type 'a m := 'a
Sourceval (<) : t -> t -> bool
Sourceval (>) : t -> t -> bool
Sourceval (<=) : t -> t -> bool
Sourceval (>=) : t -> t -> bool
Sourceval (=) : t -> t -> bool
Sourceval (<>) : t -> t -> bool
Sourceval npow : t -> int -> t

npow x n is x tp the power of n.

Sourceval to_float : t -> float
Sourceval of_float : float -> t
Sourceval of_int : int -> t
OCaml

Innovation. Community. Security.