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

Function carlsonRDComplex

src/compute-engine/numerics/numeric-complex.ts:473–475  ·  view source on GitHub ↗
(x: Complex, y: Complex, z: Complex)

Source from the content-addressed store, hash-verified

471 */
472export function complexSqrt(z: Complex): Complex {
473 if (!isFiniteComplex(z.re, z.im)) return z.sqrt();
474 const [re, im] = sqrtParts(z.re, z.im === 0 ? 0 : z.im);
475 return new Complex(re, im);
476}
477
478/**

Callers 1

Calls 1

carlsonRJComplexFunction · 0.85

Tested by

no test coverage detected