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

Function numericallyUnstable

src/compute-engine/symbolic/limit.ts:1029–1041  ·  view source on GitHub ↗

Recursive `hasCancellation`: true if `e` or any subexpression cancels/overflows.

(
  e: Expression,
  x: string,
  ce: ComputeEngine,
  depth: number
)

Source from the content-addressed store, hash-verified

1027 }
1028 if (!ENTIRE_HEADS.has(op)) return false;
1029 return e.ops.every((arg) => isEntireIn(arg, x));
1030}
1031
1032const ENTIRE_HEADS = new Set([
1033 'Add',
1034 'Subtract',
1035 'Negate',
1036 'Multiply',
1037 'Exp',
1038 'Sin',
1039 'Cos',
1040 'Sinh',
1041 'Cosh',
1042]);
1043
1044/**

Callers 1

limitDispatchFunction · 0.85

Calls 3

hasCancellationFunction · 0.85
ooFunction · 0.70
hasMethod · 0.65

Tested by

no test coverage detected