numeric_sum function
Add up an expression over a range, as a decimal.
How to write it
numeric_sum(f, k = a..b)
- f
- The expression or function to work on. Takes an expression.
- k = a..b
- The index and its bounds. Takes a variable with its range.
Examples
numeric_sum(1/k^2, k = 1..100)In the solver,
Open in the solvernumeric_sum(1/k^2, k = 1..100)gives1.6349839001848923.
Related functions
- sum
Sum of an expression over one or more ranges.
- sum_convergence
Test whether the sum of an expression over a variable converges.
- product
Product of an expression over one or more ranges.
- numeric_product
Multiply an expression over a range, as a decimal.
- series
Series expansion of an expression about a point.
- next_terms
The terms that follow a list, given only when a rule explains it and predicts two more.