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

Method assume

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

* Add an assumption. * * Note that the assumption is put into canonical form before being added. * * Returns: * - `contradiction` if the new assumption is incompatible with previous * ones. * - `tautology` if the new assumption is redundant with previous ones. * - `ok` if the

(predicate: Expression | string)

Source from the content-addressed store, hash-verified

2014 * - `toward-positive-infinity`: `Round(-2.5)` is `-2` (JavaScript
2015 * `Math.round`)
2016 * - `toward-negative-infinity`: `Round(2.5)` is `2`
2017 *
2018 * The rule applies to the evaluation of `Round` at every precision and to
2019 * the code that `compile()` makes. A function compiled before a change
2020 * keeps the rule that was in effect when it was compiled.
2021 *

Callers 1

assumeIntegerFunction · 0.95

Calls

no outgoing calls

Tested by 1

assumeIntegerFunction · 0.76