MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / exprToString

Function exprToString

test/utils.ts:102–106  ·  view source on GitHub ↗
(expr: ExpressionInput | null | undefined)

Source from the content-addressed store, hash-verified

100 if (typeof expr === 'number') return expr.toString();
101 if (!expr) return '';
102 return exprToStringRecursive(expr, 0);
103}
104
105// export function parse(latex: string): string {
106// return exprToString(engine.parse(latex));
107// }
108
109export function evaluate(latex: string): string {

Callers 14

checkFormsFunction · 0.90
evaluateFunction · 0.90
evaluateFunction · 0.90
evaluateFunction · 0.90
symbolFunction · 0.90
symbols.test.tsFile · 0.90
checkFunction · 0.90
parseFunction · 0.90
numbers.test.tsFile · 0.90
evaluateFunction · 0.85
NFunction · 0.85
simplifyFunction · 0.85

Calls 2

exprToStringRecursiveFunction · 0.85
toStringMethod · 0.65

Tested by 7

checkFormsFunction · 0.72
evaluateFunction · 0.72
evaluateFunction · 0.72
evaluateFunction · 0.72
symbolFunction · 0.72
checkFunction · 0.72
parseFunction · 0.72