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

Function acoth

src/compute-engine/interval/trigonometric.ts:537–545  ·  view source on GitHub ↗
(x: Interval | IntervalResult)

Source from the content-addressed store, hash-verified

535}
536
537/**
538 * Inverse hyperbolic cotangent: acoth(x) = atanh(1/x).
539 *
540 * Domain: |x| > 1. Has a singularity at x = 0.
541 */
542export function acoth(x: Interval | IntervalResult): IntervalResult {
543 const unwrapped = unwrapOrPropagate(x);
544 if (!Array.isArray(unwrapped)) return unwrapped;
545 const [xVal] = unwrapped;
546 if (containsZero(xVal)) {
547 return { kind: 'singular', at: 0 };
548 }

Callers 1

Calls 5

unwrapOrPropagateFunction · 0.90
containsZeroFunction · 0.90
divFunction · 0.90
okFunction · 0.90
atanhFunction · 0.85

Tested by

no test coverage detected