Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Science > Re: Bug in Math...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 1766 of 1945
Post > Topic >>

Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)

by quasi <quasi@[EMAIL PROTECTED] > Jan 26, 2008 at 06:54 AM

On Sat, 26 Jan 2008 06:39:09 -0500, quasi <quasi@[EMAIL PROTECTED]
> wrote:

>On Sat, 26 Jan 2008 03:07:45 -0800 (PST), Vladimir Bondarenko
><vb@[EMAIL PROTECTED]
> wrote:
>
>>----------------------------------------------------------------
>>
>>An exact 1-D integration challenge - 48 -
>>(go and give a kick to all stupid CASs!)
>>
>>http://groups.google.com/group/sci.math.symbolic/browse_thread/thread/28416525f0de8f90/1d8cd83e96cb7f63?#1d8cd83e96cb7f63
>>
>>----------------------------------------------------------------
>>
>>N[Integrate[
>>
>>  Sqrt[Sqrt[2] + Sqrt[z] + Sqrt[2 + 2 Sqrt[2] Sqrt[z] + 2 z]],
>>
>>                                                     {z, 0, 1}]]
>>
>>----------------------------------------------------------------
>>VERSION           OUTPUT                              RESOLUTION
>>----------------------------------------------------------------
>>
>>Mathematica 6.0   2.67602  <-------------------------------- BUG
>>
>>Mathematica 5.2   3.66533  <-------------------------------- BUG
>
>Let f(z) = sqrt(sqrt(2) + sqrt(z) + sqrt(2 + 2*sqrt(2)*sqrt(z) + 2*z))
>
>Then it's completely obvious that f has domain [0,infinity) and that
>is strictly increasing.
>
>Hence the integral of f on the interval [0,1] must be strictly between
>f(0) and f(1).
>
>Approximately, we have 
>
>   f(0) = 1.681792831 
>
>and
>
>   f(1) = 2.242172940
>
>which makes it clear that Mathematica's outputs are ridiculous.
>
>Maple 9.5 gives a result of 2.062759840, which at least seems
>reasonable. Whether it's correct or not, I'm not sure.
>
>quasi

A CAS should never return a wrong answer. Returning no answer is
better than a wrong one.

For this example in particular, Mathematica really has no excuse for
getting it wrong. It's not like the function has wild variations which
might throw off a numerical integration. This is a positive,
increasing function, easily evaluated. For a CAS, the numerical
integration of such a function should be effortless.

quasi
 




 8 Posts in Topic:
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
quasi <quasi@[EMAIL PR  2008-01-26 06:39:09 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
quasi <quasi@[EMAIL PR  2008-01-26 06:54:38 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
Axel Vogt <&norepl  2008-01-26 15:34:54 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
quasi <quasi@[EMAIL PR  2008-01-26 09:53:21 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
Axel Vogt <&norepl  2008-01-26 17:59:25 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
Christopher Creutzig <  2008-01-27 20:01:35 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
quasi <quasi@[EMAIL PR  2008-01-27 15:44:00 
Re: Bug in Mathematica 6 - Integrate - 63 (Sqrt, regression bug)
Christopher Creutzig <  2008-01-29 09:49:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 17:57:19 CST 2008.