Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Numerical Summation
Calling Sequence
evalf(Sum(f, x=a..b))
evalf(sum(f, x=a..b))
evalf(Sum(f, x=RootOf(g(_Z))))
evalf(sum(f, x=RootOf(g(_Z))))
Parameters
f
-
algebraic expression; the summand
x
name; the variable of summation
a, b
endpoints of the interval of summation (can be infinite)
g(_Z)
algebraic expression with a finite number of roots in Z
Description
The most common command for numerical summation is evalf(Sum(f, x=a..b)) where the summation command is expressed in inert form to avoid first invoking the symbolic summation routines. It is also possible to invoke evalf on an unevaluated sum returned by the symbolic sum command, as in evalf(sum(f, x=a..b)), if it happens that symbolic sum fails (returns an unevaluated sum).
You can enter the command evalf/Sum using either the 1-D or 2-D calling sequence. For example, evalf(Sum(1/(x^2+1), x=-5..5)) is equivalent to
The evalf(Sum()) command attempts to compute a result that is accurate to within 1 ulp at the current setting of Digits, so increasing Digits increases the requested accuracy of the result.
The summand f may be another unevaluated sum or integral, that is, nested forms are supported.
Method
In the case of finite sums, or sums over RootOfs, the sum is computed directly through numerical evaluation of the summand.
In the case of infinite sums, Levin's u-transform is used, which has the additional effect that sums that formally diverge may return a result that can be interpreted as evaluation of the analytic extension of the series for the sum (see the examples below).
This behavior can be controlled through the use of the _EnvFormal environment variable. If this variable is assigned the value false, then this command will apply some (numeric) convergence tests to determine if the infinite sum in question is convergent, divergent, or otherwise non-convergent.
Examples
Below are evaluation of sums over RootOf.
Here are some examples of finite sums approaching infinity, and an infinite sum.
An example with nesting.
The following is a case where Levin's u-transform computes the values for the analytic extension of the sum.
The infinite sum diverges.
This can be seen as a sum from the analytic extension of Zeta:
or using 'sum':
See Also
Digits, evalf, Sum, sum
References
Fessler, T.; Ford, W.F.; and Smith, D.A. "HURRY: An acceleration algorithm for scalar sequences and series." ACM Trans. Math. Software, Vol. 9, (1983): 346-354.
Levin, D. "Development of non-linear transformations for improving convergence of sequences". Internat. J. Comput. Math, Vol. B3, (1973): 371-388.
Download Help Document