Sum of a series: Difference between revisions

Content deleted Content added
Forth, generic on bounds and function
Riemann zeta(2)
Line 1: Line 1:
{{task}}Display the sum of a finite series for a given range.
{{task}}Display the sum of a finite series for a given range.


For this task, use S(x) = 1/x^2, from 1 to 1000.
For this task, use S(x) = 1/x^2, from 1 to 1000. (This approximates the Riemann zeta function. The Basel problem solved this: zeta(2) = π<sup>2</sup>/6.)


=={{header|C++}}==
=={{header|C++}}==