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

Method simplificationRules

src/compute-engine/index.ts:1105–1107  ·  view source on GitHub ↗

* The rules used by `.simplify()` when no explicit `rules` option is passed. * Initialized to a copy of the built-in simplification rules. * * Add custom rules with `push()`: * ```ts * ce.simplificationRules.push({ * match: ['Power', ['Sin', '_x'], 2], * replace: ['Subtract'

()

Source from the content-addressed store, hash-verified

1103 }
1104
1105 /** The source of the `id` of an assumption record. Monotone for the
1106 * lifetime of the engine, so two assertions of the same normalized fact
1107 * never share an id.
1108 * @internal */
1109 _nextFactId(): number {
1110 this._factIdCounter += 1;

Callers

nothing calls this directly

Calls 1

invalidateMethod · 0.80

Tested by

no test coverage detected