nerdamer/assumptions
Assumptions attached to symbols and helpers for reading or clearing them.
nerdamer/assumptions. For the functions you write inside nerdamer('...'), see the function reference.Functions
assume(expr: string): AssumptionFunctionRegisters a numeric interval assumption in Nerdamer's global assumption state.
clearAssumptions(): voidFunctionClears Nerdamer's process-wide assumption registry. This does not modify expressions that have already been constructed; it only changes the assumptions consulted by later comparison and simplification work.
forgetAssumptionFor(x: string | Expression): voidFunctionRemoves the registered assumption for one plain variable.
getAssumptionFor(x: string | Expression): Assumption | undefinedFunctionFunction exported by Nerdamer.
getAssumptions(): Map<string, Assumption>FunctionReturns a snapshot of all currently registered assumptions. Changing the returned Map does not change Nerdamer's active assumptions.
Class
APIs
AssumptionComparison: true | false | undefinedAPIResult of a comparison involving an interval-constrained value. true means the relation holds for every value allowed by the assumption. false means the opposite relation holds for every allowed value. undefined means both outcomes remain possible, so the relation cannot be proved from the available interval information.
AssumptionValue: Decimal | Rational | Expression | string | numberAPIExact real expressions are accepted as finite interval endpoints.
Bound: Readonly<{ … }>APIOne endpoint of an Assumption interval. Infinity is always represented as an open endpoint because it is not itself a member of a real interval. value remains Decimal-facing for API compatibility; finite bounds retain exact rational or real-power expressions internally. Its Decimal value may be rounded; use the interval methods for proofs.
ParsedAssumption: Readonly<{ … }>APIResult returned by Assumption.parse.
