This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


evaluates in parallel the sum .
starts with .
uses steps .
uses successive values , , .....
evaluates in parallel the multiple sum .
  • ParallelSum is a parallel version of Sum, which automatically distributes partial summations among different kernels and processors.
  • ParallelSum will give the same results as Sum, except for side effects during the computation.
  • If an instance of ParallelSum cannot be parallelized it is evaluated using Sum.
Click for copyable input
Click for copyable input
Calculations with vastly differing runtimes should be parallelized as finely as possible:
A large number of simple calculations should be distributed into as few batches as possible:
By default, definitions in the current context are distributed automatically:
Do not distribute any definitions of functions:
Distribute definitions for all symbols in all contexts appearing in a parallel computation:
Distribute only definitions in the given contexts:
Restore the value of the DistributedContexts option to its default:
Sums with trivial terms may be slower in parallel than sequentially:
Splitting the computation into as few pieces as possible decreases the parallel overhead:
Sum may employ symbolic methods that are faster than an iterative addition of all terms:
New in 7 | Last modified in 8