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

Function apply

test/compute-engine/trig-rewrite.test.ts:68–70  ·  view source on GitHub ↗
(op: string, latex: string)

Source from the content-addressed store, hash-verified

66}
67
68function apply(op: string, latex: string): BoxedExpression {
69 return ce.function(op, [ce.parse(latex)]).evaluate();
70}
71
72/** Does the JSON of `expr` contain any non-integer (decimal) numeric literal? */
73function hasDecimalLiteral(expr: BoxedExpression): boolean {

Callers 1

Calls 3

evaluateMethod · 0.65
functionMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected