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] Re: Evaluation problem

Search email archive for  

[MUG] Re: Evaluation problem
Author: Maple User Group    Posted: Fri, 13 Dec 2002 16:54:24 -0500

>> From: Maple User Group "maple_gr"

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

Date: Thu, 12 Dec 2002 15:54:35 -0500
From: Bill Bauldry "BauldryWC"
Subject: Evaluation problem
To: "maple-list"


>>> From: Colin Campbell - IST "campbell"
> This problem actually arose recently in a Calculus assignment on
> exploring limits with the help of Maple.
>
> 1. Here is the function:
>
> f := (x) -> ( x - 8 ) /
> ( x^(1/3) - 2 );
>
> 2. We evaluate the function at x=8, (Maple 8, Win XP)
>
> f(8);
>
> but instead of getting: "Error, numeric exception: division by zero"
> we get: "0" as the result.
[snip]


Colin,

The problem is that Maple works in the Complex domain while your students
are working in the Real domain. In C, the "first" cube root of 8 isn't
necessarily 2 (branch choice matters), so the 0 can be correct.

If you have your students enter:
> with(RealDomain):
at the beginning of a session, they'll get what they expect.

Happy Holidays,
Bill
______________________________________
Wm C Bauldry, PhD
Professor and Chairperson
Department of Mathematical Sciences
Appalachian State University
121 Bodenheimer Dr
Boone, NC 28608-2092
_____________________
phone: (828) 262-3050
fax: (828) 265-8617
"mailto:BauldryWC"
http://www.mathsci.appstate.edu/~wmcb/
______________________________________




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

Date: Fri, 13 Dec 2002 08:38:50 +1000
To: "maple-list"
From: "W.Whiten" (Bill Whiten)
Subject: Evaluation problem

Note this expression can be simplified to x^(2/3)+2*x^(1/3)+4 which gives
the value 12 at x=8 in real arithmetic, and 0 for the complex roots of 8 :

> eq1:=( x - 8 ) /( x^(1/3) - 2 );

x - 8
eq1 := ----------
(1/3)
x - 2

> factor(y^3-8);

2
(y - 2) (y + 2 y + 4)

> eq2:=x^(2/3)+2*x^(1/3)+4;

(2/3) (1/3)
eq2 := x + 2 x + 4

> testeq(eq1,eq2);

true
> s1:=solve(y^3=8);

s1 := 2, -1 + I sqrt(3), -1 - I sqrt(3)

> eq3:=y^2+2*y+4;

2
eq3 := y + 2 y + 4

> subs(y=s1[1],eq3);

12

> simplify(subs(y=s1[2],eq3));

0

> simplify(subs(y=s1[3],eq3));

0


Regards,


-----------
Bill Whiten, "W.Whiten"
Julius Kruttschnitt Mineral Research Centre,
The University Of Queensland, Tel: int +61 7 3365 5888
Isles Rd, Indooroopilly, Fax: int +61 7 3365 5999
Brisbane Qld 4068, AUSTRALIA.



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

From: "Dr Francis J. Wright" "F.J.Wright"
To: "campbell"
Subject: Evaluation problem
Date: Fri, 13 Dec 2002 16:00:13 -0000

I think the question is really this: "Should Maple simplify 0/X to 0?"
There is probably no right answer to this. Currently, Maple does simplify
0/X to 0, which I guess is what users want in the majority of cases.
However, when further information shows that X is, in fact, zero, one
realizes that the simplification was not justified, by which time it is too
late to go back and fix things because the X has gone.

Here is another way to avoid the problem, which should make sense to
students who are studying limits:

> F := X -> simplify(limit(( x - 8 ) / ( x^(1/3) - 2 ), x=X));

> F(8);
12

Francis


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

Date: Thu, 12 Dec 2002 14:37:06 -0400
From: C W "sylvester7"
To: "maple-list"
Subject: Evaluation problem

No evaluation problem :

plot(`@`(proc (x3) options operator, arrow; x3^2+2*x3+4 end,proc (x) options
operator, arrow; surd(x,3) end),-10..10);


Chris

[View Complete Thread]



Previous by date: [MUG] Re: Curious simplification,  Greg Gamble
Next by date: [MUG] Re: Forcing Maple Output with Simplifying, Maple User Group
Previous thread: [MUG] Two bugs in evalapply(), Helmut Kahovec
Next thread: [MUG] Forcing Maple Output with Simplifying, Fraser Murray



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