MathGroup Archive 2004

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

Search the Archive

Re: NIntegrate to arbitrary precision

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49574] Re: NIntegrate to arbitrary precision
  • From: "Alan" <info at optioncity.REMOVETHIS.net>
  • Date: Fri, 23 Jul 2004 06:01:45 -0400 (EDT)
  • References: <cdnq4t$l4n$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Aaron Fude" <aaronfude at yahoo.com> wrote in message
news:cdnq4t$l4n$1 at smc.vnet.net...
> Hi,
>
> Can I integrate a function (that can only be integrated numerically) to,
> say, 20 digits? If yes, can somebody give an example of doing it?

Sure,
g[a_, AG_] := NIntegrate[ Sin[x^2 + 3]/(x^2 + 7), {x, 0, a},
                        AccuracyGoal -> AG, WorkingPrecision -> (AG + 10)]

In[22] := g[2,20]
Out[22] =  -0.0869701268175892780429





  • Prev by Date: Re: Combining vectors to form a matrix
  • Next by Date: NonlinearFit works not so good
  • Previous by thread: Re: NIntegrate to arbitrary precision
  • Next by thread: Combining vectors to form a matrix