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

Function compile

src/compute-engine/free-functions.ts:169–174  ·  view source on GitHub ↗
(
  expr: LatexString | ExpressionInput,
  options?: Parameters<typeof compileExpr>[1] & { to?: T } & FreeFunctionOptions
)

Source from the content-addressed store, hash-verified

167}
168
169export function compile<T extends string = 'javascript'>(
170 expr: LatexString | ExpressionInput,
171 options?: Parameters<typeof compileExpr>[1] & { to?: T } & FreeFunctionOptions
172): ReturnType<typeof compileExpr> {
173 return compileExpr(toExpression(expr, options), options);
174}

Calls 1

toExpressionFunction · 0.85

Tested by

no test coverage detected