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(hold(1 + 1))In the solver,
Open in the solverrelease_hold(hold(1 + 1))gives2.
Related functions
- 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.