MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

NIntegrate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89176] NIntegrate
  • From: Michael Weyrauch <michael.weyrauch at gmx.de>
  • Date: Wed, 28 May 2008 04:45:19 -0400 (EDT)
  • Reply-to: michael.weyrauch at gmx.de

Hello,

   I evaluate in Mathematica 5.2

Timing[Do[NIntegrate[Sin[x], {x, 0., 1.}], {k, 10000}]]

{1.516 Second, Null}

Doing this on the same computer in Mathematica 6.0.2

Timing[Do[NIntegrate[Sin[x], {x, 0., 1.}], {k, 10000}]]

{84.5, Null}

which does not look like progress.

I realize that Mathematica 6.0.2 may use much more sophisticated 
techniques than 5.2, therefore, I directed it what I think Mathematica 
5.2 may use (??):

Timing[Do[NIntegrate[Sin[x], {x, 0., 1.},
           Method -> {"GaussKronrodRule", "Points" -> 2,
                      "SymbolicProcessing" -> 0}], {k, 10000}]]

{21.391, Null}

Still not very convincing in comparison to 5.2.

What is going on here? And how can I direct Mathematica 6 to be as fast 
as 5.2 in trivial cases as the example above?

Michael Weyrauch


  • Prev by Date: Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?
  • Next by Date: Re: How to programmatically rewrite (x + y/z) as (xz+ y)/z ?
  • Previous by thread: Re: simplify polynomial
  • Next by thread: Re: NIntegrate