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

Function acsch

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

Source from the content-addressed store, hash-verified

550}
551
552/**
553 * Inverse hyperbolic cosecant: acsch(x) = asinh(1/x).
554 *
555 * Domain: x != 0.
556 */
557export function acsch(x: Interval | IntervalResult): IntervalResult {
558 const unwrapped = unwrapOrPropagate(x);
559 if (!Array.isArray(unwrapped)) return unwrapped;
560 const [xVal] = unwrapped;
561 if (containsZero(xVal)) {
562 return { kind: 'singular', at: 0 };
563 }

Callers 1

Calls 5

unwrapOrPropagateFunction · 0.90
containsZeroFunction · 0.90
divFunction · 0.90
okFunction · 0.90
asinhFunction · 0.85

Tested by

no test coverage detected