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

Function conj

src/compute-engine/numerics/numeric-complex.ts:404–405  ·  view source on GitHub ↗
(a: Complex, b: Complex)

Source from the content-addressed store, hash-verified

402 }
403 const [ar, ai] = sqrtParts(1 - x, -y); // √(1 − z)
404 const [br, bi] = sqrtParts(1 + x, y); // √(1 + z)
405 // Re: 2·atan2(Re √(1 − z), Re √(1 + z))
406 // Im: arsinh(Im(conj(√(1 + z))·√(1 − z)))
407 return [2 * Math.atan2(ar, br), Math.asinh(br * ai - bi * ar)];
408}

Callers 1

carlsonRJComplexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected