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

Function distToIntegerC

src/compute-engine/numerics/numeric-complex.ts:598–601  ·  view source on GitHub ↗

Distance from a complex number to the nearest (real) integer.

(x: Complex)

Source from the content-addressed store, hash-verified

596 return new Complex(re === 0 ? 0 : re, im === 0 ? 0 : im);
597}
598
599/** The principal value of `arcsin z`. Accurate for a large or a small `|z|`. */
600export function complexAsin(z: Complex): Complex {
601 if (!isFiniteComplex(z.re, z.im)) return z.asin();
602 const [re, im] = asinCore(z.re, z.im === 0 ? realAxisZero(z.re) : z.im);
603 return new Complex(re, im);
604}

Callers 1

hypergeometric2F1ComplexFunction · 0.85

Calls 2

isNaNMethod · 0.45
roundMethod · 0.45

Tested by

no test coverage detected