Ops Module

Operations module (automatically opened)

Functions and values

Function or value Description

arsinh x

Full Usage: arsinh x

Parameters:
    x : float

Returns: float
x : float
Returns: float

epsilon

Full Usage: epsilon

Returns: float

Double-precision machine round-off error.

This value is actually different from Double.Epsilon. It is defined as 1.11022302462515654042E-16.

Returns: float

inf

Full Usage: inf

Returns: float

Float positive infinity.

Returns: float

infNeg

Full Usage: infNeg

Returns: float

Float negative infinity.

Returns: float

isInf num

Full Usage: isInf num

Parameters:
    num : ^T

Returns: bool
Modifiers: inline
Type parameters: ^T

Returs true if x is infinity (generics)

num : ^T
Returns: bool

Example

isNan num

Full Usage: isNan num

Parameters:
    num : 'c

Returns: bool
Modifiers: inline
Type parameters: 'c

Returs true if x is nan (generics) equality

num : 'c
Returns: bool

isNegInf num

Full Usage: isNegInf num

Parameters:
    num : ^T

Returns: bool
Modifiers: inline
Type parameters: ^T

Returs true if x is positive infinity (generics)

num : ^T
Returns: bool

Example

isPosInf num

Full Usage: isPosInf num

Parameters:
    num : ^T

Returns: bool
Modifiers: inline
Type parameters: ^T

Returs true if x is positive infinity (generics)

num : ^T
Returns: bool

Example

log10 x

Full Usage: log10 x

Parameters:
    x : float -

Returns: float

Returns the logarithm for x in base 10.

x : float

Returns: float

Example

log2 x

Full Usage: log2 x

Parameters:
    x : float -

Returns: float

Returns the logarithm for x in base 2.

x : float

Returns: float

Example

logMax

Full Usage: logMax

Returns: float

Maximum log (def: 7.09782712893383996732E2).

Returns: float

logMin

Full Usage: logMin

Returns: float

Minimum log (def: -7.451332191019412076235E2)

Returns: float

multByInt32 x n

Full Usage: multByInt32 x n

Parameters:
    x : ^T
    n : int

Returns: ^T
Modifiers: inline
x : ^T
n : int
Returns: ^T

nthroot n A

Full Usage: nthroot n A

Parameters:
    n : int
    A : ^T

Returns: ^T
Modifiers: inline
n : int
A : ^T
Returns: ^T

pi

Full Usage: pi

Returns: float

The constant pi = 3.141596...

Returns: float

retype x

Full Usage: retype x

Parameters:
    x : 'T

Returns: 'U
Modifiers: inline
Type parameters: 'T, 'U
x : 'T
Returns: 'U

revLog2 x

Full Usage: revLog2 x

Parameters:
    x : float -

Returns: float

Returns the reverted log2 (2^x)

x : float

Returns: float

Example

round digits x

Full Usage: round digits x

Parameters:
    digits : int -
    x : float -

Returns: float

Rounds a double-precision floating-point value to a specified number of fractional digits.

digits : int

x : float

Returns: float

Example

signum a b

Full Usage: signum a b

Parameters:
    a : float -
    b : float -

Returns: float

Signum function, assigns a positive sign to a with respect to the signing of b.

a : float

b : float

Returns: float

Example

square x

Full Usage: square x

Parameters:
    x : ^a -

Returns: ^b
Modifiers: inline
Type parameters: ^a, ^b

Returns x squared (x^2)

x : ^a

Returns: ^b

Example