API

ExpressionInput

src/core/types.ts:23
ExpressionInput: number | string | Rational | Expression | bigint | Decimal

Values accepted by Nerdamer's expression-oriented parsing APIs.

remarks

Strings are interpreted as parser notation. Primitive numbers,

`bigint`

, and

`Decimal`

instances are converted through their textual form; Rational values are converted directly, and existing Expression values retain their symbolic structure. An existing expression may be reused by identity by APIs such as Expression.create; request a copy at the receiving API when independent mutation is required.