@holgerengels/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
16 lines (15 loc) • 660 B
TypeScript
/* 0.26.0-alpha2 */
import type { BoxedExpression, IComputeEngine } from '../public';
import { Type } from '../../common/type/types';
/**
*
* The canonical form of `Add`:
* - canonicalize the arguments
* - remove `0`
* - capture complex numbers (`a + ib` or `ai + b`)
* - sort the terms
*
*/
export declare function canonicalAdd(ce: IComputeEngine, ops: ReadonlyArray<BoxedExpression>): BoxedExpression;
export declare function addType(args: ReadonlyArray<BoxedExpression>): Type;
export declare function add(...xs: ReadonlyArray<BoxedExpression>): BoxedExpression;
export declare function addN(...xs: ReadonlyArray<BoxedExpression>): BoxedExpression;