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

Function term

test/compute-engine/benchmarks/parse.benchmark.test.ts:65–65  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

63 // the remaining input per token (the ASCII string path was already
64 // effectively linear thanks to V8's SlicedString ropes).
65 const term = (i: number) => `${i + 1}θ^{${i + 1}}`;
66 const small = Array.from({ length: 50 }, (_, i) => term(i)).join('+');
67 const large = Array.from({ length: 500 }, (_, i) => term(i)).join('+');
68

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected