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

Function firstRootValue

test/compute-engine/solve-rules.test.ts:21–24  ·  view source on GitHub ↗
(result: any)

Source from the content-addressed store, hash-verified

19};
20
21const ARCOTH_3 = 0.34657359027997264; // arcoth(3), root of coth(x) - 3 = 0
22
23function firstRootValue(result: any): number | undefined {
24 if (!Array.isArray(result) || result.length === 0) return undefined;
25 return result[0].N().re;
26}
27

Callers 1

Calls 1

NMethod · 0.65

Tested by

no test coverage detected