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

Method tuple

src/compute-engine/index.ts:1803–1812  ·  view source on GitHub ↗
(...elements: ReadonlyArray<number | Expression>)

Source from the content-addressed store, hash-verified

1801 if (n.isPositive() && n.lte(this._numericConfiguration.bignumTolerance))
1802 return 0;
1803 if (
1804 n.isNegative() &&
1805 n.gte(this._numericConfiguration.negBignumTolerance)
1806 )
1807 return 0;
1808 if (n.isZero()) return 0;
1809 return n;
1810 }
1811
1812 if (
1813 n instanceof Complex &&
1814 Math.abs(n.re) <= tolerance &&
1815 Math.abs(n.im) <= tolerance

Callers

nothing calls this directly

Calls 2

numberMethod · 0.95
mapMethod · 0.65

Tested by

no test coverage detected