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

Function sub

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

Source from the content-addressed store, hash-verified

34}
35
36/**
37 * Subtract two intervals (or IntervalResults).
38 *
39 * [a, b] - [c, d] = [a - d, b - c]
40 *
41 * Subtraction is always defined and produces a valid interval.
42 * If inputs are IntervalResults, propagates errors (empty, entire, singular).
43 */
44function subRaw(
45 a: Interval | IntervalResult,
46 b: Interval | IntervalResult
47): IntervalResult {

Callers 4

remainderFunction · 0.90
determinantFunction · 0.50
inverseFunction · 0.50

Calls 2

unwrapOrPropagateFunction · 0.90
okFunction · 0.90

Tested by

no test coverage detected