UOR Math-JS Library A JavaScript implementation of the Prime Framework for universal number representation

Methods

(inner) configure(options) → {Object}

Update configuration with custom settings

Parameters:
NameTypeDescription
optionsObject

Configuration options to update

Returns:

The updated configuration object

Type: 
Object

(inner) createAsync(operation, options) → {Promise}

Creates an asynchronous processor for expensive operations

Parameters:
NameTypeDescription
operationfunction

The operation to perform asynchronously

optionsObject

Options for the async operation

Returns:

A promise that resolves with the operation result

Type: 
Promise

(inner) createStream(transformer) → {Object}

Creates a stream processor for handling sequences of UniversalNumbers

Parameters:
NameTypeDescription
transformerfunction

Function to apply to each number in the stream

Returns:

A stream processing object with methods: pipe, map, filter, reduce

Type: 
Object

(inner) getPlugin(name) → {Object}

Get a registered plugin by name

Parameters:
NameTypeDescription
namestring

The name of the plugin to retrieve

Returns:

The plugin instance

Type: 
Object

(inner) registerPlugin(name, plugin)

Register a plugin with the library

Parameters:
NameTypeDescription
namestring

Unique name for the plugin

pluginObject

Plugin implementation