help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Origin of 2nd round-off term "dy" in function central_der


From: Rene Girard
Subject: Re: [Help-gsl] Origin of 2nd round-off term "dy" in function central_deriv.c
Date: Tue, 20 Feb 2007 20:53:19 -0500 (EST)

Brian,

  Thanks for your reply. I think that you gave me by your reply a
good indication where I need to look. I did look in a similar direction but I
stop because it was not leading near the expression for "dy" as in the function 
. Now, if I understood you well, it appears that the expression for "dy" may be 
incorrect. However, I agree with that what need to be done is to derive a term 
that will estimate the round-off in the derivative due to the round-off error 
in the step xp - xm. I will explore further the avenue I started to look into 
earlier and I will get back to you in a few days . "Few days" => I am looking 
into this on  my own time as I have a full time job as an engineer at a major 
public utility in the province of Quebec, Canada.

Regards

Rene Girard
 I 
Brian Gough <address@hidden> wrote: At Mon, 19 Feb 2007 20:28:09 -0500 (EST),
Rene Girard wrote:
> "I think the dy contribution is trying to capture the rounding error
> from terms like x+h which is O(|x|*DBL_EPSILON)," Is "dy" not rather
> trying to express the round-off due to cancellation caused by taking
> difference like "f(x+h) - f(x-h)" ?  Note that in the expression for
> "dy" we have max between absolute value of r3 and r5 which are
> differences. I do not agree that the expression for "dy" should be
> divided by h^2.

In machine arithmetic the difference f(xp=x+h)-f(xm=x-h) is not
computed with a step of 2*h unless x+h and x-h are exactly
representable.

Due to rounding the step is xp-xh = 2*h + O(eps*x) where eps is the
precision.  I think that is the effect that was trying to be captured
(incorrectly).

-- 
Brian Gough

Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/


                
---------------------------------
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]