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
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 12 Professional
Maple 12 Academic
Maple 12 Student Use
Recorded Online Seminars
FREE Training Resources
Maple Application Briefs
Maple Adoption Program

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

Latest Information

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


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] Problem using evalf(Int)

Search email archive for  

[MUG] Problem using evalf(Int)
Author: Maple User Group    Posted: Mon, 17 Feb 2003 22:16:33 -0500

>> From: Maple User Group "maple_gr"

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

Date: Sat, 15 Feb 2003 16:48:55 -0400
From: C W "sylvester7"
To: "maple-list"
Subject: Problem using evalf(Int(..)) to verify density function

Hi !

Using Maple V R4 I obtained the following value of the integral for
y=y0..infinity :
1-1/2*erf(1/2*y0^(1/2)*2^(1/2)/sigma-1/2/sigma*mu*2^(1/2))-1/2*erf(1/2*y0^(1/2)*2^(1/2)/sigma+1/2/sigma*mu*2^(1/2))


Chris


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

From: "Dr Francis J. Wright" "F.J.Wright"
To: "Jay.Porter"
Subject: Problem using evalf(Int(..)) to verify density function
Date: Sat, 15 Feb 2003 19:10:09 -0000

From: "Jay Porter" "Jay.Porter"
To: "maple-list"
Sent: Friday, January 31, 2003 6:14 PM
Subject: [MUG] Problem using evalf(Int(..)) to verify density function


> The following function represents a probability density for a random
> variable that can take values from zero to infinity (the RV is the
> square of a gaussian RV with parameters mu and sigma):
>
> pdf := y ->
> 1/4*(exp(-1/2*(y^(1/2)-mu)^2/sigma^2)+exp(-1/2*(-y^(1/2)-mu)^2/sigma^2))
> /sigma*2^(1/2)/(Pi*y)^(1/2)
>
> As a density, the integral of pdf over (0,infinity) should be 1 (when mu
> and sigma are assigned numerical values).
>
> Letting mu := 33, sigma := 1, and evaluating from 0 to infinity gives
> nonsense; .8113159769e-27


The problem appears to lie in the NAG routine that is used by default and
one solution (in Maple 8) is explicitly to avoid using it:

evalf(Int(pdf(y), y = 0..infinity, method = _NoNAG));

1.000000000

Francis

Previous by date: [MUG] scope of `setoptions' command, Erik Leunissen
Next by date: [MUG] maple printing question, Maple User Group
Previous thread: [MUG] Re: Bug in Eigenvectors?, David Linder
Next thread: [MUG] maple printing question,  Clearthink



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