Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Watch Maple Video Demonstrations
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request a Brochure
• Request an Evaluation
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 16 Overview
Maple 16 Professional
Maple 16 Academic
Maple 16 Student Use
What's New in Maple 16
Maple New Features
Datasheet

Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes

Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
Maple Features
The Maple Reporter Online

Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Bug in sum ?

Search email archive for  

[MUG] Bug in sum ?
Author: Jean Brillet    Posted: 28/11/2000 18:19:07 GMT
>> From: Jean Brillet

Hi,

Is there a bug in sum() ? (MAPLE 5 and MAPLE 6.01)

> restart:
> Sum(exp(-k)/k,k=1..infinity):%=value(%);
infinity
-----
\ exp(-k)
) ------- = -ln(1 - exp(-1))
/ k
-----
k = 1

This result seems correct but what does the following meens ?

> Sum(exp(k)/k,k=1..infinity):%=value(%);
infinity
-----
\ exp(k)
) ------ = -ln(1 - exp(1))
/ k
-----
k = 1
> evalc(rhs(%));
-ln(exp(1) - 1) - I Pi
>

I expect infinity.

Jean Brillet

http://www.observ.u-bordeaux.fr
Tel : 05 57 77 61 57
Observatoire de Bordeaux
B.P. 89
33270 Floirac (France)

[MUG] Re: Bug in sum ?
Author: Maple Group    Posted: 01/12/2000 20:13:46 GMT
Subject: Bug in sum ?



On Tue, 28 Nov 2000, Jean Brillet wrote:

| Is there a bug in sum() ? (MAPLE 5 and MAPLE 6.01)

| > Sum(exp(-k)/k,k=1..infinity):%=value(%);
| infinity
| -----
| \ exp(-k)
| ) ------- = -ln(1 - exp(-1))
| / k
| -----
| k = 1

Totally correct.

| This result seems correct but what does the following meens ?
|
| > Sum(exp(k)/k,k=1..infinity):%=value(%);
| infinity
| -----
| \ exp(k)
| ) ------ = -ln(1 - exp(1))
| / k
| -----
| k = 1
| > evalc(rhs(%));
| -ln(exp(1) - 1) - I Pi
| >
|
| I expect infinity.

The help page for "sum" says:
------------------------------
Note that sum knows about various resummation methods and will thus be
able to give the 'correct' value for various classes of divergent sums. If
one wants to restrict summation to convergent sums, then explicit
convergence checks must be done.
------------------------------

Actually I think this is a bit misleading: Maple is not really using fancy
summability methods, it is just not checking for convergence and thus
uses formulas such as (in this case) sum(r^k/k, k=1..infinity) = -ln(1-r)
outside the region where the sum converges.

I have a procedure "csum" in my Maple Advisor Database that attempts to
check whether a sum converges. For example:

> csum(exp(-k)/k, k);
true

> csum(exp(k)/k, k);
false

See http://www.math.ubc.ca/~israel/advisor

Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2



-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Thu, 30 Nov 2000 11:12:16 +0900
To:
From: tanaka
Subject: Fwd: Bug in sum ?

When we evaluate

Sum[Exp[k]/k, {k, 1, Infinity}]

by using Mathematica ver.4, we have a messege
"Sum ::div: sum does not converge";
this must be the one that Monsieur Brillet expects.

Therefore, I think there must be a bug in Sum in Maple.
- - - - - - - - - - - - - - - - - - - - - - - - - - -
ps. If we evaluate

Sum[Exp[-k]/k, {k, 1, Infinity}]

by employing Mathematica ver4, it yields

-Log[1 - 1/e],

which is identical with the result by Maple.

Previous by date: [MUG] Re: printing plots with G-4, Roberto A Sussman
Next by date: [MUG] Re: NEWBY with problems with Maple 6.01 and Linux, Desmond Johnston
Previous thread: [MUG] Simplification problem, Carl Eberhart
Next thread: [MUG] NEWBY with problems with Maple 6.01 and Linux, Andre Estel



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Maple 16 & MapleSim 5 Professional Brochure
Maple 16 Academic Datasheet
Maple 16 & MapleSim 5 Academic Brochure
Maple 16 What is New datasheet
Maple 16 Professional Datasheet
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper - Technological Superiority in Multi-Domain Physical Modelling and Simulation

Latest Downloads

Maple 16 Programming Guide
Maple 16 User Manual
Maple 16 Academic Datasheet
Maple 16 Professional Datasheet
Maple 16 & MapleSim 5 Academic Brochure

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks

Latest News

Connectivity to major CAD systems extended in Maple 16
MapleSim Breaks New Ground in Hardware-in-the-Loop real-time simulation for planetary rovers
MapleSim Breaks New Ground in Hardware-in-the-Loop real-time simulation for planetary rovers
Maths software usability reaches new heights with Maple 16
"MapleSim was an eye-opener for us.
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055