Adept Scientific - English
The world's best software 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  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

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 funding the reduced form of functions?

Search email archive for  

[MUG] bug in funding the reduced form of functions?
Author: Antony Davies, Ph D    Posted: Sat, 9 Nov 2002 15:04:58 -0500

>> From: "Antony Davies, Ph.D." "antony"

When I issue the command:

sum ( ( 1 / exp ( r ) ) ^ ( n * i ) , i = 0 .. infinity );

Maple simply returns this same function in its original summation notation.

However, when I issue the command:

sum ( ( exp ( r ) ) ^ ( -n * i ) , i = 0 .. infinity );

(which is an equivalent function) I get the correct reduced form:

( exp ( r ) ^ n ) / ( exp ( r ) ^ n - 1 )

I don't like to second-guess the software, but shouldn't I be getting this
result for both forms of the function?

Antony Davies

[MUG] Re: bug in funding the reduced form of functions
Author: Maple User Group    Posted: Fri, 15 Nov 2002 10:46:17 -0500

>> From: Maple User Group "maple_gr"

|>> From: "Antony Davies, Ph.D." "antony"
| When I issue the command:
| > sum ( ( 1 / exp ( r ) ) ^ ( n * i ) , i = 0 .. infinity );
| Maple simply returns this same function in its original summation notation.
| However, when I issue the command:
| > sum ( ( exp ( r ) ) ^ ( -n * i ) , i = 0 .. infinity );
| (which is an equivalent function) I get the correct reduced form:
|
| ( exp ( r ) ^ n ) / ( exp ( r ) ^ n - 1 )

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

Date: Mon, 11 Nov 2002 16:10:05 -0800 (PST)
From: Robert Israel "israel"
To: "maple-list"
Subject: bug in funding the reduced form of functions?

One could say you shouldn't get it for either one unless you make
assumptions sufficient to ensure that the sum converges. Yes, I know,
Maple is supposed to use "summability methods", which in this case
simply means it doesn't check for convergence. Convergence is not
relevant to the distinction between the two results here.

What seems to be happening here is that using normal and expand,
`sum/hgpossib2` fails to simplify exp(-r)^(n*(i+1))/exp(-r)^(n*i) to
exp(-r)^n, but it does simplify exp(r)^(-n*(i+1))/exp(r)^(-n*i) to
1/(exp(r)^n). Ultimately, it seems to me the source is a weakness
in expand:

> expand(a^(b+c));
b c
a a

but

> expand((1/a)^(b+c));
(b + c)
(1/a)


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



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

Date: Tue, 12 Nov 2002 08:10:50 -0400
From: Vladimir Bondarenko "vvb"
To: "maple-list"
Subject: bug in funding the reduced form of functions?


Please take my congratulation.
You has just identified a bug in Maple.

> kernelopts(version);

`Maple 8.00, IBM INTEL NT, Apr 22 2002 Build ID 110847`

> sum ( ( 1 / exp ( r ) ) ^ ( n * i ) , i = 0 .. infinity );

sum ( ( 1 / exp ( r ) ) ^ ( n * i ) , i = 0 .. infinity );

# This is non-informative but correct as the behavior of the
# sum depends drastically on the choice of r and n

> sum ( ( exp ( r ) ) ^ ( -n * i ) , i = 0 .. infinity );

exp(r)^n/(exp(r)^n-1)

> subs(r=1, n=-1, s);

1/exp(1)/(1/exp(1)-1)

> evalf(%);

-.5819767069

# This is wrong because actually the sum diverges to plus infinity

> r:=1: n:=-1:

> sum ( ( exp ( r ) ) ^ ( -n * i ) , i = 0 .. infinity );

infinity


By the way, if you are interested in bugs in Maple, you may wish to
visit my upcoming sites

http://maple.bug-list.org/ Maple Bugs Encyclopaedia
http://www.CAS-testing.org/ GEMM project

Please note that, at the moment, the GEMM if off.

There is many interesting discussions on the point at the Maple 8 Group
at http://groups.yahoo.com/group/maple8/ .

Best wishes,

Vladimir Bondarenko
Mathematical and Production Director
Symbolic Testing Group
Email: "vvb"

Web : http://www.CAS-testing.org/ (under development, 95% ready)
http://maple.bug-list.org/ (under development, 20% ready)

Voice: (380)-652-447325 Mon-Fri 6 a.m. - 3 p.m. GMT
ICQ : 173050619
Mail : 76 Zalesskaya Str, Simferopol, Crimea, Ukraine

Previous by date: [MUG] Lebesgue-Integral,  Classen, Manfred
Next by date: [MUG] Maple crashing with odeplot, John Robert Kitchin
Previous thread: [MUG] Limit Superior & Limit Inferior,  Classen, Manfred
Next thread: [MUG] Maple crashing with odeplot, John Robert Kitchin



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

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
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

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