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

Function numericBoundValue

src/compute-engine/assume.ts:1056–1061  ·  view source on GitHub ↗

The numeric (finite, real) value of a bound expression, or undefined.

(b: Expression | undefined)

Source from the content-addressed store, hash-verified

1054 */
1055function assumeElementOfSet(
1056 ce: ComputeEngine,
1057 symbol: string,
1058 setExpr: Expression,
1059 cause?: Expression
1060): AssumeResult {
1061 // 1. Primitive number sets → pure type refinement
1062 const type = domainToType(setExpr);
1063 if (type !== 'unknown') return refineSymbolType(ce, symbol, type, cause);
1064

Callers 3

assumeInequalityFunction · 0.85
checkBoundsAgainstFunction · 0.85
boundsExcludeZeroFunction · 0.85

Calls 2

isNumberFunction · 0.90
isFiniteFunction · 0.85

Tested by

no test coverage detected