scalar.number

class tinychain.scalar.number.Bool(form=None)[source]

Bases: Number, Boolean

A boolean Value.

logical_and(other)[source]

Boolean AND

logical_not()[source]

Boolean NOT

logical_or(other)[source]

Boolean OR

logical_xor(other)[source]

Boolean XOR

class tinychain.scalar.number.C32(form, imag=None)[source]

Bases: Complex

A complex 32-bit floating point number.

class tinychain.scalar.number.C64(form, imag=None)[source]

Bases: Complex

A complex 64-bit floating point number.

class tinychain.scalar.number.Complex(form, imag=None)[source]

Bases: Number, Complex

A complex number.

conj()[source]

Return the conjugate of this Complex number.

property imag

The imaginary component of this Complex Numeric

norm()[source]

Return the linear norm of this Complex number.

property real

The real component of this Complex Numeric

class tinychain.scalar.number.F32(form=None)[source]

Bases: Float

A 32-bit floating point number.

class tinychain.scalar.number.F64(form=None)[source]

Bases: Float

A 64-bit floating point number.

class tinychain.scalar.number.Float(form=None)[source]

Bases: Number

A floating-point decimal number.

class tinychain.scalar.number.I16(form=None)[source]

Bases: Int

A 16-bit integer.

class tinychain.scalar.number.I32(form=None)[source]

Bases: Int

A 32-bit integer.

class tinychain.scalar.number.I64(form=None)[source]

Bases: Int

A 64-bit integer.

class tinychain.scalar.number.Int(form=None)[source]

Bases: Number

An integer.

classmethod max_value()[source]

Return the maximum allowed value of this Int type.

classmethod min_value()[source]

Return the minimum allowed value of this Int type.

class tinychain.scalar.number.Number(form=None)[source]

Bases: Value, Numeric, Trigonometric

A numeric Value.

acos()[source]

Arccosine

acosh()[source]

Hyperbolic arccosine

add(other)[source]

Return the sum of self and other.

asin()[source]

Arcsine

asinh()[source]

Hyperbolic arcsine

atan()[source]

Arctangent

atanh()[source]

Hyperbolic arctangent

cos()[source]

Cosine

cosh()[source]

Hyperbolic cosine

div(other)[source]

Return the quotient of self and other.

exp()[source]

Calculate e**self

modulo(other)[source]

Return the remainder of self divided by other.

mul(other)[source]

Return the product of self and other.

pow(other)[source]

Raise self to the power of other.

property shape

The shape of this Numeric state

sin()[source]

Sine

sinh()[source]

Hyperbolic sine

sub(other)[source]

Return the difference between self and other.

tan()[source]

Tangent

tanh()[source]

Hyperbolic tangent

class tinychain.scalar.number.U16(form=None)[source]

Bases: UInt

A 16-bit unsigned integer.

class tinychain.scalar.number.U32(form=None)[source]

Bases: UInt

A 32-bit unsigned integer.

class tinychain.scalar.number.U64(form=None)[source]

Bases: UInt

A 64-bit unsigned integer.

class tinychain.scalar.number.U8(form=None)[source]

Bases: UInt

An 8-bit unsigned integer (a byte).

class tinychain.scalar.number.UInt(form=None)[source]

Bases: Number

An unsigned integer.

classmethod max_value()[source]

Return the maximum allowed value of this Int type.

classmethod min_value()[source]

Return the minimum allowed value of this Int type.