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

Function add

src/compute-engine/interval/arithmetic.ts:18–26  ·  view source on GitHub ↗
(
  a: Interval | IntervalResult,
  b: Interval | IntervalResult
)

Source from the content-addressed store, hash-verified

16} from './rounding.js';
17
18/**
19 * Add two intervals (or IntervalResults).
20 *
21 * [a, b] + [c, d] = [a + c, b + d]
22 *
23 * Addition is always defined and produces a valid interval.
24 * If inputs are IntervalResults, propagates errors (empty, entire, singular).
25 */
26function addRaw(
27 a: Interval | IntervalResult,
28 b: Interval | IntervalResult
29): IntervalResult {

Callers

nothing calls this directly

Calls 2

unwrapOrPropagateFunction · 0.90
okFunction · 0.90

Tested by

no test coverage detected