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

Function lx

benchmarks/audit/audit.ts:266–266  ·  view source on GitHub ↗
(mj: any)

Source from the content-addressed store, hash-verified

264 if (typeof c.latex === 'string' && c.latex.length) return c.latex;
265 const inp = c.ce;
266 const lx = (mj: any) => ce.box(mj, { canonical: false }).latex;
267 try {
268 if (inp.op === 'integrate') return `\\int ${lx(inp.mathjson)}\\,d${inp.var || 'x'}`;
269 if (inp.op === 'limit') return `\\lim_{${inp.var || 'x'} \\to ${pointLatex(inp.point)}} ${lx(inp.mathjson)}`;

Callers 1

caseLatexFunction · 0.85

Calls 1

boxMethod · 0.65

Tested by

no test coverage detected