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

Function isNaNResult

src/compute-engine/boxed-expression/apply.ts:147–153  ·  view source on GitHub ↗
(r: typeof result)

Source from the content-addressed store, hash-verified

145 * Routing:
146 * - any complex operand → `complexFn`
147 * - bignum preferred and `bigFn` available → `bigFn`
148 * - otherwise → machine `fn`; if `fn` returns NaN on finite inputs and a
149 * `complexFn` is available, retry it (the value may be complex for real
150 * inputs, e.g. EllipticK(m) for m > 1).
151 *
152 * A NaN result on finite inputs yields `undefined` (the expression stays
153 * symbolic) rather than a NaN literal: the kernels use NaN to signal
154 * "outside the implemented domain", not a mathematical result.
155 */
156export function applyN(

Callers 1

applyNFunction · 0.85

Calls 1

isNaNMethod · 0.45

Tested by

no test coverage detected