with_effort function
Evaluate a body at quick, standard, deep or exhaustive effort.
How to write it
with_effort(effort, body)
- effort
- How hard to search: quick, standard, deep or exhaustive. Takes one of the words it lists.
- body
- The expression to evaluate. Takes an expression.
Examples
with_effort(deep, integrate(x^2, x))In the solver,
Open in the solverwith_effort(deep, integrate(x^2, x))givesx^3/3.
Functions its examples use
- integrate
Antiderivative of an expression, or its definite integral over a range.
Related functions
- add_to
Add a value to a variable in place and return the new value.
- times_by
Multiply a variable by a value in place and return the new value.
- construct
Apply a head that is itself computed to arguments, as in f'(0) or (x => body)(a).
- subtract_from
Subtract a value from a variable in place and return the new value.
- decrement
Subtract 1 from a variable in place and return its old value.
- subs_repeated
Apply substitution rules again and again until nothing changes.