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

Function integerPoints

src/compute-engine/interval/elementary.ts:894–902  ·  view source on GitHub ↗

Integer points in [round(lo), round(hi)], or `null` if wider than `cap`.

(lo: number, hi: number, cap: number)

Source from the content-addressed store, hash-verified

892 return {
893 kind: 'partial',
894 value: { lo: -Infinity, hi: Math.log10(xVal.hi) },
895 domainClipped: 'lo',
896 };
897}
898
899/**
900 * Base-2 logarithm.
901 */
902function log2Raw(x: Interval | IntervalResult): IntervalResult {
903 const unwrapped = unwrapOrPropagate(x);
904 if (!Array.isArray(unwrapped)) return unwrapped;
905 const [xVal] = unwrapped;

Callers 1

enumerateInteger2Function · 0.85

Calls 2

roundMethod · 0.45
isFiniteMethod · 0.45

Tested by

no test coverage detected