Difference between revisions of "INT FROM ... TO"

From iMath
Jump to: navigation, search
 
Line 13: Line 13:
 
3=
 
3=
 
<code>@int@ EQDEF z = INT FROM x = -%pi to %pi { sin(x) differential(x)}</code> defines the integral and <code>@simp@ EQDEF SIMPLIFY(@int@, "integrate")</code> will evaluate it to the value 0.
 
<code>@int@ EQDEF z = INT FROM x = -%pi to %pi { sin(x) differential(x)}</code> defines the integral and <code>@simp@ EQDEF SIMPLIFY(@int@, "integrate")</code> will evaluate it to the value 0.
 +
|4=
 +
[[INT]] [[INTEGRATE]]
 
}}
 
}}
 
[[Category:Definition]]
 
[[Category:Definition]]

Latest revision as of 19:21, 27 June 2017

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.

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 from the evaluation.

The integrand must be enclosed in curly brackets. If the upper bound is a number or a variable then the curly braces around it can be omitted.

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

INT INTEGRATE