UNPKG

@extra2001/compute-engine

Version:

Symbolic computing and numeric evaluations for JavaScript and Node.js

17 lines (16 loc) 727 B
/* 0.28.0 */ import { Type } from '../../common/type/types'; import { BoxedType } from '../../common/type/boxed-type'; import type { BoxedExpression, ComputeEngine } from '../global-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: ComputeEngine, ops: ReadonlyArray<BoxedExpression>): BoxedExpression; export declare function addType(args: ReadonlyArray<BoxedExpression>): Type | BoxedType; export declare function add(...xs: ReadonlyArray<BoxedExpression>): BoxedExpression; export declare function addN(...xs: ReadonlyArray<BoxedExpression>): BoxedExpression;