SUM FROM ... TO: Difference between revisions
Jump to navigation
Jump to search
(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...") |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Keyword | {{Keyword | ||
|1= | |1= | ||
<code>SUM FROM [[ | <code>SUM FROM [[symbol]] = [[expression]] TO [[expression]] { [[expression]] }</code> | ||
| | | | ||
2= | 2= | ||
Line 13: | Line 13: | ||
This will calculate the value of <code>S</code> as 5050. | This will calculate the value of <code>S</code> as 5050. | ||
| | | | ||
4= | |||
}} | }} | ||
[[Category:Manipulation]] | [[Category:Manipulation]] |
Latest revision as of 15:32, 2 July 2017
Syntax
SUM FROM symbol = expression TO expression { expression }
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.