Function reference · Assumptions and sets

forget

Removes the assumptions about a variable, or all assumptions.

forget(x) removes those about x. forget(all) removes every assumption. See assume.

Notation

forget(arg1)

Write it in an expression: nerdamer('assume(x>0); forget(x)'), or in the Playground.

Examples

Remove the assumption about x.

assume(x>0); forget(x)
// → x
Open in Playground

Remove all assumptions.

forget(all)
// → all
Open in Playground

← Back to Function reference