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

Function gcd

test/compute-engine/arithmetic.test.ts:1864–1865  ·  view source on GitHub ↗
(...ops: ReturnType<typeof ce.parse>[])

Source from the content-addressed store, hash-verified

1862 expect(
1863 ce.parse('\\prod_{n=1}^{b}(n+1)').simplify().toString()
1864 ).toMatchInlineSnapshot(`(b + 1)! / 1!`);
1865 });
1866
1867 it('should evaluate product with index shift (n+1)', () => {
1868 // 2*3*4*5 = 120

Callers 2

arithmetic.test.tsFile · 0.70
mainFunction · 0.50

Calls 3

toStringMethod · 0.65
evaluateMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected