@holgerengels/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
12 lines (11 loc) • 576 B
TypeScript
/* 0.26.0-alpha2 */
import type { BoxedExpression } from './public';
export type AsciiMathSerializer = (expr: BoxedExpression, precedence?: number) => string;
export type AsciiMathOptions = {
symbols: Record<string, string>;
operators: Record<string, [
string | ((expr: BoxedExpression) => string),
number
]>;
functions: Record<string, string | ((expr: BoxedExpression, serialize: AsciiMathSerializer) => string)>;
};
export declare function toAsciiMath(expr: BoxedExpression, options?: Partial<AsciiMathOptions>, precedence?: number): string;