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

Function div

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

Source from the content-addressed store, hash-verified

112 * If inputs are IntervalResults, propagates errors (empty, entire, singular).
113 */
114export function div(
115 a: Interval | IntervalResult,
116 b: Interval | IntervalResult
117): IntervalResult {
118 const unwrapped = unwrapOrPropagate(a, b);
119 if (!Array.isArray(unwrapped)) return unwrapped;
120 const [aVal, bVal] = unwrapped;
121 return _div(aVal, bVal);
122}
123
124/**
125 * Internal division that works on plain Intervals.

Callers 10

remainderFunction · 0.90
acscFunction · 0.90
asecFunction · 0.90
cothFunction · 0.90
cschFunction · 0.90
sechFunction · 0.90
acothFunction · 0.90
acschFunction · 0.90
asechFunction · 0.90

Calls 2

unwrapOrPropagateFunction · 0.90
_divFunction · 0.85

Tested by

no test coverage detected