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

Function tanh

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

Source from the content-addressed store, hash-verified

372}
373
374/**
375 * Hyperbolic tangent.
376 *
377 * Domain: all reals, Range: (-1, 1), monotonically increasing.
378 */
379export function tanh(x: Interval | IntervalResult): IntervalResult {
380 const unwrapped = unwrapOrPropagate(x);
381 if (!Array.isArray(unwrapped)) return unwrapped;
382 const [xVal] = unwrapped;

Callers 2

gen_solve.pyFile · 0.85

Calls 3

unwrapOrPropagateFunction · 0.90
okFunction · 0.90
tanhMethod · 0.80

Tested by

no test coverage detected