INT FROM ... TO
Syntax
INT FROM symbol = expression TO { expression} { expression differential(symbol)}
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Create an integral from the lower bound to the upper bound. The integral can then be symbolically evaluated with the simplification type integrate
. If the upper bound is a number or a variable then the curly braces around it can be omitted. The differential can be contained in the expression and iMath will find it (you might have to expand the expression first). But if there is no differential matching the integration variable anywhere, then you will get strange results.
Example
@int@ EQDEF z = INT FROM x = -%pi to %pi { sin(x) differential(x)}
defines the integral and @simp@ EQDEF SIMPLIFY(@int@, "integrate")
will evaluate it to the value 0.
See also
{{{4}}}