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

Function longSum

test/compute-engine/benchmarks/parse.benchmark.test.ts:55–57  ·  view source on GitHub ↗

A k-term polynomial-ish LaTeX expression

(k: number)

Source from the content-addressed store, hash-verified

53
54/** A k-term polynomial-ish LaTeX expression */
55function longSum(k: number): string {
56 return Array.from({ length: k }, (_, i) => `${i + 1}x^{${i + 1}}`).join('+');
57}
58
59describe('LaTeX parsing scale benchmarks', () => {
60 it('tokenizer scales ~linearly with input length (non-ASCII path)', () => {

Callers 1

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected