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

Function N

test/compute-engine/calculus.test.ts:6–10  ·  view source on GitHub ↗
(expr: string)

Source from the content-addressed store, hash-verified

4function evaluate(expr: string): string {
5 return engine.parse(expr).evaluate().toString();
6}
7function N(expr: string): number {
8 const result = engine.parse(expr).N();
9 if (result.operator === 'Measurement') return result.op1.re;
10 return result.re;
11}
12
13describe('DERIVATION', () => {

Callers 3

calculus.test.tsFile · 0.70

Calls 2

NMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected