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

Function ev

test/compute-engine/combinatorics.test.ts:11–11  ·  view source on GitHub ↗
(expr: any)

Source from the content-addressed store, hash-verified

9 const loose = new ComputeEngine();
10 loose.strict = false;
11 const ev = (expr: any) => loose.box(expr).evaluate().toString();
12
13 test('Factorial2/Subfactorial/BellNumber do not round non-integers', () => {
14 expect(ev(['Factorial2', 5.5])).toEqual('Factorial2(5.5)');

Callers 1

Calls 3

toStringMethod · 0.65
evaluateMethod · 0.65
boxMethod · 0.65

Tested by

no test coverage detected