SUM FROM ... TO

From iMath
Revision as of 18:30, 30 June 2017 by Jrheinlaender (talk | contribs) (Created page with "{{Keyword |1= <code>SUM FROM variable = expression TO expression { expression }</code> | 2= Create a sum function summing up the expression in curly brackets f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

Implemented in iMath since version 2.2.0 or earlier.

Explanation

Create a sum function summing up the expression in curly brackets from the lower bound to the upper bound. The function can then be symbolically evaluated with SIMPLIFY.

Example

EQDEF S = SUM FROM x = 1 to 100 {x}

EQDEF SIMPLIFY(@prev@ , "sum")

This will calculate the value of S as 5050.

See also

{{{4}}}