UniversalNumber class for the UOR Math-JS library Represents integers using their prime factorization (universal coordinates) Implements the Prime Framework for lossless arithmetic

Classes

UniversalNumber

Type Definitions

Coordinates

Type:
  • Object
Properties
NameTypeAttributesDescription
factorizationMap.<BigInt, BigInt>

Map where keys are prime factors and values are their exponents

isNegativeboolean

Whether the number is negative

isZeroboolean<optional>

Whether the number is zero

FiberAlgebra

Type:
  • Object
Properties
NameTypeDescription
referencePointstring

The reference point in manifold (default: "standard")

gradedComponentsMap.<number, Array.<number>>

The graded components (by base) of the representation

PartialFactorization

Support for partial factorization of very large numbers

Type:
  • Object
Properties
NameTypeDescription
knownFactorsMap.<BigInt, BigInt>

Factors that have been found

remainingPartBigInt

Part that hasn't been factorized yet

ReferenceFrame

Type:
  • Object
Properties
NameTypeDescription
idstring

Unique identifier for the reference frame

transformationRulesObject

Rules for transforming between frames