double
Sum(
double
[]
values
)
Compute the sum of the values.
S
=
x
i
n
i
Example
=
Block
{
ShowSum
([5, 7, 25]);
ShowSum
(1
..
10
step
2);
};
The sum of 5, 7 and 25 is 37
The sum of 1, 3, 5, 7, 9 and 10 is 35