Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Precision issues

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73510] Re: Precision issues
  • From: Scott Hemphill <hemphill at hemphills.net>
  • Date: Wed, 21 Feb 2007 01:35:54 -0500 (EST)
  • References: <erelv2$7ol$1@smc.vnet.net>
  • Reply-to: hemphill at alumni.caltech.edu

mickey <micky at hotmail.com> writes:

> Hi,
> 
> I am calculating certain integrals numerically and get back a number. 
> Now, is it possible to determine how many digits is that answer accurate 
> to?
> 
> E.g.,
> 
> NIntegrate[ Exp[-p^2 - q^2], {p, 0, 10}, {q, 0, 10}, Method ->
>      MonteCarlo[24], MaxPoints -> 1000000]
> 
> Gives,
> 
> 0.791249
> 
> How many digits is this answer accurate to?

About two.  Hint: your integral can be separated into the product of two
integrals, one in "p" and the other in "q".

Scott
-- 
Scott Hemphill	hemphill at alumni.caltech.edu
"This isn't flying.  This is falling, with style."  -- Buzz Lightyear


  • Prev by Date: Limit of Error function Erf
  • Next by Date: Re: Showing that ArcSinh[2]/ArcCsch[2] is 3?
  • Previous by thread: Precision issues
  • Next by thread: Re: Precision issues