Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • ∫x2 dx=x33+C\displaystyle \int x^{2} \, dx = \frac{x^{3}}{3} + C
    with_effort(deep, integrate(x^2, x))

    In the solver, with_effort(deep, integrate(x^2, x)) gives x^3/3.

    Open in the solver

Functions its examples use

  • integrate

    Antiderivative of an expression, or its definite integral over a range.

  • 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.