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] Integration bug, i think

Search email archive for  

[MUG] Integration bug, i think
Author: Halvor Mehlum    Posted: 27/11/2000 08:08:22 GMT
>> From: Halvor Mehlum

Dear Maple friends

I get the following inconsistency on
my Windows 98 running Maple 6

As part of my work I executed the following code:

>a1 := .9*(.9+8.*exp(-1))*exp(.1*tt)/(1+8*exp(-1)):
>b1:=int(exp(-tt)*ln(a2),tt=t..1):
>c1:=evalf(subs(t=0.5,b1));
>a2:=simplify(a1):
>b2:=int(exp(-tt)*ln(a1),tt=t..1):
>c2:=evalf(subs(t=0.5,b2));

The result was as follows
c1 := -.01387124925
c2 := -.02000179884
which is surprising as they are supposed to be identical. The expressions
b1 and b2 are also different. Does the same problem arise on other machines?

Halvor



============================================
Halvor Mehlum http://www.uio.no/~hmehlum
Ragnar Frisch Centre for Economic Research
Department of Economics, University of Oslo
Box 1095, Blindern
0317 Oslo Norway
Phone : +47 22855156 Fax: +47 22855035
============================================

[MUG] Re: Integration bug, i think
Author: Maple Group    Posted: 29/11/2000 15:23:47 GMT
Subject: Integration bug, i think


Yes, it's a bug. It shows up in a simpler form here:

> f:= exp(-t)*ln(exp(t/2)/(1+exp(1)));
int(f,t);

2 2
- 1/2 exp(- 1/2 t) + 2 exp(- 1/2 t) ln(1 + exp(1))

2
- 1/2 t exp(- 1/2 t)

The 2 in front of the second term should be 1.
The bug seems to be new in Maple 6: it doesn't affect
Maple V Releases 4 to 5.1.

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



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

Date: Tue, 28 Nov 2000 09:55:03 +0900
To:
From: tanaka
Subject: Integration bug, i think



"a2" in "b1"should read "a1" and "a1" in "b2" should read "a2".

>a1 := .9*(.9+8.*exp(-1))*exp(.1*tt)/(1+8*exp(-1)):
>b1:=int(exp(-tt)*ln(a1),tt=t..1):
>c1:=evalf(subs(t=0.5,b1));
>a2:=simplify(a1):
>b2:=int(exp(-tt)*ln(a2),tt=t..1):
>c2:=evalf(subs(t=0.5,b2));

Evaluating the above procedure by Maple V release 5.1, we have

c1 := -.01387125141
c2 := -.01387124687

Evaluating the above by Maple V release 4, we have

c1 := -.013871277
c2 := -.013871131

Therefore, I am sure that integrations in Maple 6 has some bugs.




Dr.TANAKA, Kazuo,
Canon Inc., Tokyo, JAPAN



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

Date: Mon, 27 Nov 2000 17:03:31 -0800
Subject: Integration bug, i think
From: Don Hartig
To:

Halvor,

I assume that the a2 appearing in the expression for b1 should actually be
a1. If that is the case, then I get the same values for c1 and c2. I also
get the same values for b1 and b2.

I am running Maple 6.1 on a Macintosh G4.

regards,

Don Hartig



****************************************************************************
Donald Hartig | Telephone: (805) 756 1684
Professor of Mathematics | Fax: (805) 756 6537
Mathematics Department | e-mail:
California Polytechnic State U. |
San Luis Obispo, CA 93407 |
USA |

Web page: http://www.calpoly.edu/~dhartig
****************************************************************************



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

From: "Nathan Sokalski"
To:
Subject: Integration bug, i think
Date: Mon, 27 Nov 2000 23:08:56 -0500

In b1 you are using a2 before it is defined. Therefore, the first time
through b1 will involve the variable a2. However, if you enter each equation
a second time (in order), you will recieve the same value, because a2 has
already been defined.

Nathan Sokalski


________________________________________________________________________________
_____
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com



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

Date: Tue, 28 Nov 2000 11:03:40 +0100
From: Heike Koch-Beuttenmueller
To:
Subject: Integration bug, i think

Things seems to be even much stranger:
I tried the following on Compac Alpha:

d1 := 9/10*(9/10+8*exp(-1))*exp(1/10*tt)/(1+8*exp(-1));

int(exp(-tt)*log(d1),tt=1/2..1);

-1/5*exp(-1)-2*exp(-1)*ln(3)+3*exp(-1)*ln(2)+3*exp(-1)*ln(5)-2*exp(-1)
*ln(9+80*exp(-1))+2*exp(-1)*ln(1+8*exp(-1))+3/20*exp(-1/2)+2*exp(-1/2)
*ln(3)-3*exp(-1/2)*ln(2)-3*exp(-1/2)*ln(5)+2*exp(-1/2)*ln(9+80*exp(-1)
evalf(%,30);
-.02000179714067499958474512972
int(exp(-tt)*log(d1),tt=0.5..1);
-.01387125093

Mathematica gives the last result. Numerical integration with Maple as
well
--
Mit freundlichen Gruessen


Heike Koch-Beuttenmueller

Previous by date: [MUG] Stopping integration due to what?, Angelique Lamour
Next by date: [MUG] Re: Can cmaple run in a server mode?, Andre Poenitz
Previous thread: [MUG] Laplace Transforms, Chuck Baker
Next thread: [MUG] Can cmaple run in a server mode?,  Carl Eberhart



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