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

Function csch

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

Source from the content-addressed store, hash-verified

511}
512
513/**
514 * Hyperbolic cosecant: csch(x) = 1/sinh(x).
515 *
516 * Has a singularity at x = 0.
517 */
518export function csch(x: Interval | IntervalResult): IntervalResult {
519 const unwrapped = unwrapOrPropagate(x);
520 if (!Array.isArray(unwrapped)) return unwrapped;
521 const [xVal] = unwrapped;
522 if (containsZero(xVal)) {
523 return { kind: 'singular', at: 0 };
524 }

Callers 1

Calls 5

unwrapOrPropagateFunction · 0.90
containsZeroFunction · 0.90
divFunction · 0.90
okFunction · 0.90
sinhFunction · 0.85

Tested by

no test coverage detected