Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

release_hold function

Evaluate an expression that was held.

How to write it

release_hold(expr)

expr
Any expression: a number, a formula, a list or a matrix. Takes an expression.

Examples

  • release_hold⁡(1+1)=2\displaystyle \operatorname{release\_hold}(1+1) = 2
    release_hold(hold(1 + 1))

    In the solver, release_hold(hold(1 + 1)) gives 2.

    Open in the solver
  • set

    Assign a value to a name; also written name := value.

  • pre_increment

    Add 1 to a variable in place and return the new value.

  • set_delayed

    Define a function; also written f(x) := body.

  • pre_decrement

    Subtract 1 from a variable in place and return the new value.

  • slot

    The n-th argument of a function with no name: inside function(body), slot(1) is the first.

  • piecewise

    Cases written value if condition, with an optional otherwise case.